PictureInPictureAdPresentationScope

@ExperimentalApi
public enum PictureInPictureAdPresentationScope extends Enum


Defines the presentation scope for a picture-in-picture (PiP) ad.

Summary

Enum Values

APPLICATION

The PiP ad persists globally across the application.

SCREEN

The PiP ad is scoped to a single screen (Activity).

Public methods

final @NonNull EnumEntries<@NonNull PictureInPictureAdPresentationScope>

Defines the presentation scope for a picture-in-picture (PiP) ad.

final @NonNull PictureInPictureAdPresentationScope

Returns the enum constant of this type with the specified name.

final @NonNull PictureInPictureAdPresentationScope[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

APPLICATION

@ExperimentalApi
PictureInPictureAdPresentationScope PictureInPictureAdPresentationScope.APPLICATION

The PiP ad persists globally across the application.

SCREEN

@ExperimentalApi
PictureInPictureAdPresentationScope PictureInPictureAdPresentationScope.SCREEN

The PiP ad is scoped to a single screen (Activity).

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull PictureInPictureAdPresentationScope> getEntries()

Defines the presentation scope for a picture-in-picture (PiP) ad.

valueOf

public final @NonNull PictureInPictureAdPresentationScope valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull PictureInPictureAdPresentationScope[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.