Udostępnij za pośrednictwem


Fragment.OnPictureInPictureModeChanged Method

Definition

Overloads

OnPictureInPictureModeChanged(Boolean)

Called by the system when the activity changes to and from picture-in-picture mode.

OnPictureInPictureModeChanged(Boolean, Configuration)

Called by the system when the activity changes to and from picture-in-picture mode.

OnPictureInPictureModeChanged(Boolean)

Called by the system when the activity changes to and from picture-in-picture mode.

[Android.Runtime.Register("onPictureInPictureModeChanged", "(Z)V", "GetOnPictureInPictureModeChanged_ZHandler", ApiSince=24)]
public virtual void OnPictureInPictureModeChanged (bool isInPictureInPictureMode);
[<Android.Runtime.Register("onPictureInPictureModeChanged", "(Z)V", "GetOnPictureInPictureModeChanged_ZHandler", ApiSince=24)>]
abstract member OnPictureInPictureModeChanged : bool -> unit
override this.OnPictureInPictureModeChanged : bool -> unit

Parameters

isInPictureInPictureMode
Boolean

True if the activity is in picture-in-picture mode.

Attributes

Remarks

Called by the system when the activity changes to and from picture-in-picture mode. This is generally tied to Activity#onPictureInPictureModeChanged of the containing Activity.

This member is deprecated. Use #onPictureInPictureModeChanged(boolean, Configuration) instead.

Java documentation for android.app.Fragment.onPictureInPictureModeChanged(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

OnPictureInPictureModeChanged(Boolean, Configuration)

Called by the system when the activity changes to and from picture-in-picture mode.

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

Parameters

isInPictureInPictureMode
Boolean

True if the activity is in picture-in-picture mode.

newConfig
Configuration

The new configuration of the activity with the state .

Attributes

Remarks

Called by the system when the activity changes to and from picture-in-picture mode. This is generally tied to Activity#onPictureInPictureModeChanged 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.onPictureInPictureModeChanged(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