PictureInPictureConfiguration

data class PictureInPictureConfiguration(val enable: Boolean, val autoEnterEnabled: Boolean = Build.VERSION.SDK_INT <= Build.VERSION_CODES.VANILLA_ICE_CREAM) : Parcelable

Configuration for controlling Picture-in-Picture (PiP) behavior within a call UI.

Constructors

Link copied to clipboard
constructor(enable: Boolean, autoEnterEnabled: Boolean = Build.VERSION.SDK_INT <= Build.VERSION_CODES.VANILLA_ICE_CREAM)

Properties

Link copied to clipboard

Determines whether to call android.app.PictureInPictureParams.Builder.setAutoEnterEnabled when configuring the PiP parameters. When true, the system automatically enters PiP mode when the user presses the home button or performs an equivalent action. Set this to false if you prefer to manually control when PiP mode should be entered. It should be set to false for Android 16

Link copied to clipboard

Indicates whether Picture-in-Picture mode should be enabled for this call. When true, the SDK will handle entering PiP mode automatically when appropriate (for example, when the user navigates away from the app during an active call).

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)