-
- All Implemented Interfaces:
public final class CloudyKt
-
-
Method Summary
Modifier and Type Method Description final static UnitCloudy(Modifier modifier, @IntRange(from = 0, to = 25) Integer radius, Object key1, Object key2, Function1<CloudyState, Boolean> allowAccumulate, Function1<CloudyState, Unit> onStateChanged, Function1<BoxScope, Unit> content)Cloudy is a replacement of the blur modifier (under Android 12), which draws content blurred with the specified radius. -
-
Method Detail
-
Cloudy
@Composable() final static Unit Cloudy(Modifier modifier, @IntRange(from = 0, to = 25) Integer radius, Object key1, Object key2, Function1<CloudyState, Boolean> allowAccumulate, Function1<CloudyState, Unit> onStateChanged, Function1<BoxScope, Unit> content)
Cloudy is a replacement of the blur modifier (under Android 12), which draws content blurred with the specified radius.
History: The blur modifier supports only Android 12 and higher, and RenderScript was also deprecated.
- Parameters:
modifier- Adjust the drawing layout or drawing decoration of the content.radius- Radius of the blur along both the x and y axis.key1- Key value for trigger recomposition.key2- Key value for trigger recomposition.onStateChanged- Lambda function that will be invoked when the blur process has been updated.content- Composable content that will be applied blur effect.
-
-
-
-