Språk

Fragment.OnMultiWindowModeChanged Method

Definition

Overloads

Name Description
OnMultiWindowModeChanged(Boolean)

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

OnMultiWindowModeChanged(Boolean, Configuration)

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

OnMultiWindowModeChanged(Boolean)

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

[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

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 enters or leaves multi-window mode. This is generally tied to OnMultiWindowModeChanged(Boolean) 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

True if the activity is in multi-window mode.

newConfig
Configuration

The new configuration of the activity with the state isInMultiWindowMode.

Attributes

Remarks

Called when the fragment's activity enters or leaves multi-window mode. This is generally tied to OnMultiWindowModeChanged(Boolean, Configuration) of the containing activity. If OnConfigurationChanged(Configuration) follows, it receives the same configuration.

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