共用方式為


Fragment.OnMultiWindowModeChanged Method

Definition

Overloads

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

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 member is deprecated. Use #onMultiWindowModeChanged(boolean, Configuration) instead.

Java documentation for android.app.Fragment.onMultiWindowModeChanged(boolean).

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 .

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.

Java documentation for android.app.Fragment.onMultiWindowModeChanged(boolean, android.content.res.Configuration).

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