WakeLockPolicy

What the media notification keeps awake while the player plays or buffers.

Once the screen is off, Android may put the processor to sleep and Wi-Fi into power saving. Sound that is already playing keeps the processor awake, but a stream that is waiting for data does not, and after BufferPolicy.stallTimeout without data the session ends. The locks are held only while the player plays or buffers, never while it is paused.

Entries

Link copied to clipboard

Holds nothing.

Link copied to clipboard

Keeps the processor awake. Enough for media on the device.

Link copied to clipboard

Keeps the processor awake and Wi-Fi at full power. For media streamed over the network.

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
Link copied to clipboard

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.