BackgroundPolicy

What playback should do when the application leaves the screen.

A picture in picture window that the background handler was given counts as the screen while it shows, because the viewer is still watching the picture there.

Entries

Link copied to clipboard

Keep the sound, park video decoding while away, and resume it on return.

Link copied to clipboard

Pause on leaving, and play again on return only when this policy was the one that paused.

Link copied to clipboard

Do nothing.

Properties

Link copied to clipboard

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

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

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.)

Link copied to clipboard

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