Android.Views.View.OnApplyWindowInsets Method
Called when the view should apply Android.Views.WindowInsets according to its internal policy.

Syntax

[Android.Runtime.Register("onApplyWindowInsets", "(Landroid/view/WindowInsets;)Landroid/view/WindowInsets;", "GetOnApplyWindowInsets_Landroid_view_WindowInsets_Handler")]
public virtual WindowInsets OnApplyWindowInsets (WindowInsets insets)

Parameters

insets
Insets to apply

Returns

Documentation for this section has not yet been entered.

Remarks

Called when the view should apply Android.Views.WindowInsets according to its internal policy.

This method should be overridden by views that wish to apply a policy different from or in addition to the default behavior. Clients that wish to force a view subtree to apply insets should call View.DispatchApplyWindowInsets(WindowInsets).

Clients may supply an NoType:android/view/View$OnApplyWindowInsetsListener;Href=../../../reference/android/view/View.OnApplyWindowInsetsListener.html to a view. If one is set it will be called during dispatch instead of this method. The listener may optionally call this method from its own implementation if it wishes to apply the view's default insets policy in addition to its own.

Implementations of this method should either return the insets parameter unchanged or a new Android.Views.WindowInsets cloned from the supplied insets with any insets consumed that this view applied itself. This allows new inset types added in future platform versions to pass through existing implementations unchanged without being erroneously consumed.

By default if a view's View.SetFitsSystemWindows(bool) property is set then the view will consume the system window insets and apply them as padding for the view.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1