PictureInPictureAdPosition

@ExperimentalApi
public enum PictureInPictureAdPosition extends Enum


Position of a Picture-in-Picture ad on the screen.

Summary

Enum Values

BOTTOM_LEFT

The bottom-left corner of the screen.

BOTTOM_RIGHT

The bottom-right corner of the screen.

DEFAULT

Uses the SDK's default ad position.

TOP_LEFT

The top-left corner of the screen.

TOP_RIGHT

The top-right corner of the screen.

Public methods

final @NonNull EnumEntries<@NonNull PictureInPictureAdPosition>

Position of a Picture-in-Picture ad on the screen.

final @NonNull PictureInPictureAdPosition

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

final @NonNull PictureInPictureAdPosition[]

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

Enum Values

BOTTOM_LEFT

@ExperimentalApi
PictureInPictureAdPosition PictureInPictureAdPosition.BOTTOM_LEFT

The bottom-left corner of the screen.

BOTTOM_RIGHT

@ExperimentalApi
PictureInPictureAdPosition PictureInPictureAdPosition.BOTTOM_RIGHT

The bottom-right corner of the screen.

DEFAULT

@ExperimentalApi
PictureInPictureAdPosition PictureInPictureAdPosition.DEFAULT

Uses the SDK's default ad position. Currently resolves to the ad's last known position or the bottom-right corner if there is no last known position.

Use DEFAULT when you want the SDK to manage placement; use an explicit position when your layout depends on a specific, stable location.

Public methods

getEntries

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

Position of a Picture-in-Picture ad on the screen.

valueOf

public final @NonNull PictureInPictureAdPosition 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 PictureInPictureAdPosition[] 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.