Package 

Interface WindowInsets.Type

  • All Implemented Interfaces:
    com.google.accompanist.insets.Insets

    @Stable()@Deprecated(message = accompanist/insets is deprecated, replaceWith = @ReplaceWith(imports = {androidx.compose.foundation.layout.WindowInsets}, expression = WindowInsets)) 
    public interface WindowInsets.Type
     implements Insets
                        

    Represents the values for a type of insets, and stores information about the layout insets, animating insets, and visibility of the insets.

    WindowInsets.Type instances are commonly stored in a WindowInsets instance.

    • Method Detail

      • getLayoutInsets

         abstract Insets getLayoutInsets()

        The layout insets for this WindowInsets.Type. These are the insets which are defined from the current window layout.

        You should not normally need to use this directly, and instead use left, top, right, and bottom to return the correct value for the current state.

      • getAnimatedInsets

         abstract Insets getAnimatedInsets()

        The animated insets for this WindowInsets.Type. These are the insets which are updated from any on-going animations. If there are no animations in progress, the returned Insets will be empty.

        You should not normally need to use this directly, and instead use left, top, right, and bottom to return the correct value for the current state.

      • getAnimationFraction

        @FloatRange(from = 0.0.toDouble(), to = 1.0.toDouble()) abstract Float getAnimationFraction()

        The progress of any ongoing animations, in the range of 0 to 1. If there is no animation in progress, this will return 0.