The Developer Preview for Android 11 is now available; test it out and share your feedback.

ClipOp

enum class ClipOp
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.graphics.ClipOp>
   ↳ androidx.ui.graphics.ClipOp

Defines how a new clip region should be merged with the existing clip region.

Used by Canvas.clipRect.

Summary

Enum values

Subtract the new region from the existing region.

Intersect the new region from the existing region.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Enum values

difference

enum val difference : ClipOp

Subtract the new region from the existing region.

intersect

enum val intersect : ClipOp

Intersect the new region from the existing region.