-
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWindowInsets.Type.Companion
-
Method Summary
Modifier and Type Method Description abstract InsetsgetLayoutInsets()The layout insets for this WindowInsets.Type. abstract InsetsgetAnimatedInsets()The animated insets for this WindowInsets.Type. abstract BooleangetIsVisible()Whether the insets are currently visible. abstract BooleangetAnimationInProgress()Whether this insets type is being animated at this moment. IntegergetLeft()IntegergetTop()IntegergetRight()IntegergetBottom()abstract FloatgetAnimationFraction()The progress of any ongoing animations, in the range of 0 to 1. -
-
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.
-
getIsVisible
abstract Boolean getIsVisible()
Whether the insets are currently visible.
-
getAnimationInProgress
abstract Boolean getAnimationInProgress()
Whether this insets type is being animated at this moment.
-
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.
-
-
-
-