Package 

Class CloudyKt

  • All Implemented Interfaces:

    
    public final class CloudyKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.