-
public final class TranslateDeferringInsetsAnimationCallback extends WindowInsetsAnimationCompat.Callback
A WindowInsetsAnimationCompat.Callback which will translate/move the given view during any inset animations of the given inset type.
This class works in tandem with RootViewDeferringInsetsCallback to support the deferring of certain WindowInsetsCompat.Type values during a WindowInsetsAnimationCompat, provided in deferredInsetTypes. The values passed into this constructor should match those which the RootViewDeferringInsetsCallback is created with.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerpersistentInsetTypesprivate final IntegerdeferredInsetTypesprivate final WindowInsetsmDispachedInsets
-
Constructor Summary
Constructors Constructor Description TranslateDeferringInsetsAnimationCallback(View view, Integer persistentInsetTypes, Integer deferredInsetTypes, Integer dispatchMode)
-
Method Summary
Modifier and Type Method Description final IntegergetPersistentInsetTypes()final IntegergetDeferredInsetTypes()WindowInsetsCompatonProgress(WindowInsetsCompat insets, List<WindowInsetsAnimationCompat> runningAnimations)UnitonEnd(WindowInsetsAnimationCompat animation)-
-
Constructor Detail
-
TranslateDeferringInsetsAnimationCallback
TranslateDeferringInsetsAnimationCallback(View view, Integer persistentInsetTypes, Integer deferredInsetTypes, Integer dispatchMode)
- Parameters:
view- the view to translate from it's start to end statepersistentInsetTypes- the bitmask of any inset types which were handled as part of the layoutdeferredInsetTypes- the bitmask of insets types which should be deferred until after any WindowInsetsAnimationCompats have endeddispatchMode- The dispatch mode for this callback.
-
-
Method Detail
-
getPersistentInsetTypes
final Integer getPersistentInsetTypes()
-
getDeferredInsetTypes
final Integer getDeferredInsetTypes()
-
onProgress
WindowInsetsCompat onProgress(WindowInsetsCompat insets, List<WindowInsetsAnimationCompat> runningAnimations)
-
onEnd
Unit onEnd(WindowInsetsAnimationCompat animation)
-
-
-
-