AutoMediaPlaybackPolicy enum Null safety

Specifies possible restrictions on automatic media playback.

This is typically used in WebView.initialMediaPlaybackPolicy.


always_allow → const AutoMediaPlaybackPolicy

Starting any kind of media playback is always allowed.

For example: JavaScript code that's triggered when the page is loaded can start playing video or audio.

const AutoMediaPlaybackPolicy(1)
require_user_action_for_all_media_types → const AutoMediaPlaybackPolicy

Starting any kind of media playback requires a user action.

For example: JavaScript code cannot start playing media unless the code was executed as a result of a user action (like a touch event).

const AutoMediaPlaybackPolicy(0)
values → const List<AutoMediaPlaybackPolicy>

A constant List of the values in this enum, in order of their declaration.

const List<AutoMediaPlaybackPolicy>


hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]