PictureInPictureAdPosition

@ExperimentalApi
enum PictureInPictureAdPosition : 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 functions

PictureInPictureAdPosition
valueOf(value: String)

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

Array<PictureInPictureAdPosition>

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

Public properties

EnumEntries<PictureInPictureAdPosition>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Enum Values

BOTTOM_LEFT

@ExperimentalApi
val PictureInPictureAdPosition.BOTTOM_LEFT: PictureInPictureAdPosition

The bottom-left corner of the screen.

BOTTOM_RIGHT

@ExperimentalApi
val PictureInPictureAdPosition.BOTTOM_RIGHT: PictureInPictureAdPosition

The bottom-right corner of the screen.

DEFAULT

@ExperimentalApi
val PictureInPictureAdPosition.DEFAULT: PictureInPictureAdPosition

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.

TOP_LEFT

@ExperimentalApi
val PictureInPictureAdPosition.TOP_LEFT: PictureInPictureAdPosition

The top-left corner of the screen.

TOP_RIGHT

@ExperimentalApi
val PictureInPictureAdPosition.TOP_RIGHT: PictureInPictureAdPosition

The top-right corner of the screen.

Public functions

valueOf

fun valueOf(value: String): PictureInPictureAdPosition

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

fun values(): Array<PictureInPictureAdPosition>

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.

Public properties

entries

val entries: EnumEntries<PictureInPictureAdPosition>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.