Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IView2

interface IView2
Extends IView This interface extends IView with additional functionalities to configure clipping behaviour.

Methods

setContentClipping()

void setContentClipping(bool enabled)
Controls whether this view clips its content to its bounds. When enabled, this view restricts its visual content and that of its descendants to its own rectangular bounds. When disabled, its content including its children views may render outside its bounds. Note: This controls only whether this view applies a clipping mask to its own content and not whether it clips its children.

Parameters

enabled
bool — Required True to enable content clipping, false to allow content outside bounds. Default is true.

isContentClippingEnabled()

bool isContentClippingEnabled()
Returns whether content clipping is enabled for this view. Refer IView2::setContentClipping

Returns

bool True if content is clipped to this view’s bounds, false if content may render outside this view’s bounds.
Last modified on October 29, 2026