Fragment.OnMultiWindowModeChanged Method

Definition

Overloads

Name Description
OnMultiWindowModeChanged(Boolean)

This method was deprecated in API level 26.

OnMultiWindowModeChanged(Boolean, Configuration)

Called when the Fragment's activity changes from fullscreen mode to multi-window mode and visa-versa.

OnMultiWindowModeChanged(Boolean)

This method was deprecated in API level 26.

[Android.Runtime.Register("onMultiWindowModeChanged", "(Z)V", "GetOnMultiWindowModeChanged_ZHandler", ApiSince=24)]
public virtual void OnMultiWindowModeChanged(bool isInMultiWindowMode);
[<Android.Runtime.Register("onMultiWindowModeChanged", "(Z)V", "GetOnMultiWindowModeChanged_ZHandler", ApiSince=24)>]
abstract member OnMultiWindowModeChanged : bool -> unit
override this.OnMultiWindowModeChanged : bool -> unit

Parameters

isInMultiWindowMode
Boolean

boolean: True if the activity is in multi-window mode.

Attributes

Remarks

This method was deprecated in API level 26. Use onMultiWindowModeChanged(boolean,Configuration) instead.

Called when the Fragment's activity changes from fullscreen mode to multi-window mode and visa-versa. This is generally tied to Activity.onMultiWindowModeChanged of the containing Activity.

Android reference for android.app.Fragment.onMultiWindowModeChanged.

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

OnMultiWindowModeChanged(Boolean, Configuration)

Called when the Fragment's activity changes from fullscreen mode to multi-window mode and visa-versa.

[Android.Runtime.Register("onMultiWindowModeChanged", "(ZLandroid/content/res/Configuration;)V", "GetOnMultiWindowModeChanged_ZLandroid_content_res_Configuration_Handler", ApiSince=26)]
public virtual void OnMultiWindowModeChanged(bool isInMultiWindowMode, Android.Content.Res.Configuration? newConfig);
[<Android.Runtime.Register("onMultiWindowModeChanged", "(ZLandroid/content/res/Configuration;)V", "GetOnMultiWindowModeChanged_ZLandroid_content_res_Configuration_Handler", ApiSince=26)>]
abstract member OnMultiWindowModeChanged : bool * Android.Content.Res.Configuration -> unit
override this.OnMultiWindowModeChanged : bool * Android.Content.Res.Configuration -> unit

Parameters

isInMultiWindowMode
Boolean

boolean: True if the activity is in multi-window mode.

newConfig
Configuration

Configuration: The new configuration of the activity with the state isInMultiWindowMode.

Attributes

Remarks

Called when the Fragment's activity changes from fullscreen mode to multi-window mode and visa-versa. This is generally tied to Activity.onMultiWindowModeChanged of the containing Activity. This method provides the same configuration that will be sent in the following onConfigurationChanged(Configuration) call after the activity enters this mode.

Android reference for android.app.Fragment.onMultiWindowModeChanged.

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