View.IOnApplyWindowInsetsListener.OnApplyWindowInsets 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.
When View#setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener) set
on a View, this listener method will be called instead of the view's own
View#onApplyWindowInsets(WindowInsets) onApplyWindowInsets
method.
[Android.Runtime.Register("onApplyWindowInsets", "(Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;", "GetOnApplyWindowInsets_Landroid_view_View_Landroid_view_WindowInsets_Handler:Android.Views.View/IOnApplyWindowInsetsListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.WindowInsets OnApplyWindowInsets (Android.Views.View v, Android.Views.WindowInsets insets);
[<Android.Runtime.Register("onApplyWindowInsets", "(Landroid/view/View;Landroid/view/WindowInsets;)Landroid/view/WindowInsets;", "GetOnApplyWindowInsets_Landroid_view_View_Landroid_view_WindowInsets_Handler:Android.Views.View/IOnApplyWindowInsetsListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnApplyWindowInsets : Android.Views.View * Android.Views.WindowInsets -> Android.Views.WindowInsets
Parameters
- v
- View
The view applying window insets
- insets
- WindowInsets
The insets to apply
Returns
The insets supplied, minus any insets that were consumed
- Attributes
Remarks
When View#setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener) set
on a View, this listener method will be called instead of the view's own View#onApplyWindowInsets(WindowInsets) onApplyWindowInsets
method.
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.