clip

fun Style.clip(outlineProvider: ViewOutlineProvider?): Style

Sets a ViewOutlineProvider on the View this Component mounts to. Setting this property will cause the Component to be represented as a View at mount time if it wasn't going to already.

Note: This only sets the outline provider. To also clip to the outline, use clipToOutline or prefer the clip function with a Shape parameter which handles both.

See android.view.View.setOutlineProvider


fun Style.clip(shape: Shape): Style

Clips the Component to the specified Shape. Setting this property will cause the Component to be represented as a View at mount time if it wasn't going to already.

See android.view.View.setClipToOutline