Activity.OnPictureInPictureModeChanged Method

Definition

Overloads

Name Description
OnPictureInPictureModeChanged(Boolean)

This method was deprecated in API level 26.

OnPictureInPictureModeChanged(Boolean, Configuration)

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

OnPictureInPictureModeChanged(Boolean)

This method was deprecated in API level 26.

[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

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

Attributes

Remarks

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

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

See also:

Android reference for android.app.Activity.onPictureInPictureModeChanged.

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

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

newConfig
Configuration

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

Attributes

Remarks

Called by the system when the activity changes to and from picture-in-picture mode. This method provides the same configuration that will be sent in the following onConfigurationChanged(Configuration) call after the activity enters this mode.

See also:

Android reference for android.app.Activity.onPictureInPictureModeChanged.

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