View.IOnApplyWindowInsetsListener.OnApplyWindowInsets Method

Definition

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.

Java documentation for android.view.View.OnApplyWindowInsetsListener.onApplyWindowInsets(android.view.View, android.view.WindowInsets).

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.

Applies to