Composable Function

currentProfileSupportsPathClip

Whether the current creation androidx.compose.remote.creation.profile.Profile supports clipping to an arbitrary path, for example with androidx.compose.remote.creation.compose.layout.RemoteDrawScope.clipPath.

currentProfileSupportsPathClip

Source set: JvmAndAndroid
@Composable
public fun currentProfileSupportsPathClip(): Boolean

Whether the current creation androidx.compose.remote.creation.profile.Profile supports clipping to an arbitrary path, for example with androidx.compose.remote.creation.compose.layout.RemoteDrawScope.clipPath.

Without it, clipping is limited to the rectangle and rounded rectangle shapes supported by the clip modifier, so components can check this before clipping drawn content, such as a background image, to a custom shape.

Return

true if the current profile supports clipping to an arbitrary path, false otherwise

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: