WindowInsetsAnimation.Callback.OnProgress Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the insets change as part of running an animation.
[Android.Runtime.Register("onProgress", "(Landroid/view/WindowInsets;Ljava/util/List;)Landroid/view/WindowInsets;", "GetOnProgress_Landroid_view_WindowInsets_Ljava_util_List_Handler", ApiSince=30)]
public abstract Android.Views.WindowInsets OnProgress (Android.Views.WindowInsets insets, System.Collections.Generic.IList<Android.Views.WindowInsetsAnimation> runningAnimations);
[<Android.Runtime.Register("onProgress", "(Landroid/view/WindowInsets;Ljava/util/List;)Landroid/view/WindowInsets;", "GetOnProgress_Landroid_view_WindowInsets_Ljava_util_List_Handler", ApiSince=30)>]
abstract member OnProgress : Android.Views.WindowInsets * System.Collections.Generic.IList<Android.Views.WindowInsetsAnimation> -> Android.Views.WindowInsets
Parameters
- insets
- WindowInsets
The current insets.
- runningAnimations
- IList<WindowInsetsAnimation>
The currently running animations.
Returns
The insets to dispatch to the subtree of the hierarchy.
- Attributes
Remarks
Called when the insets change as part of running an animation. Note that even if multiple animations for different types are running, there will only be one progress callback per frame. The insets
passed as an argument represents the overall state and will include all types, regardless of whether they are animating or not.
Note that insets dispatch is hierarchical: It will start at the root of the view hierarchy, and then traverse it and invoke the callback of the specific View
being traversed. The method may return a modified instance by calling WindowInsets#inset(int, int, int, int)
to indicate that a part of the insets have been used to offset or clip its children, and the children shouldn't worry about that part anymore. Furthermore, if #getDispatchMode()
returns #DISPATCH_MODE_STOP
, children of this view will not receive the callback anymore.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.