IDLeDOM
DOM interfaces automatically generated from WebIDL
Loading...
Searching...
No Matches
Wikimedia\IDLeDOM\TextTrackKind Class Reference

TextTrackKind. More...

Static Public Member Functions

static string cast (string $value)
 Throw a TypeError if the provided string is not a valid member of this enumeration.
 

Public Attributes

const subtitles = 'subtitles'
 
const captions = 'captions'
 
const descriptions = 'descriptions'
 
const chapters = 'chapters'
 
const metadata = 'metadata'
 

Detailed Description

TextTrackKind.

See also
https://dom.spec.whatwg.org/#enumdef-texttrackkind

-forbid-undeclared-magic-properties

Member Function Documentation

◆ cast()

static string Wikimedia\IDLeDOM\TextTrackKind::cast ( string $value)
static

Throw a TypeError if the provided string is not a valid member of this enumeration.

Parameters
string$valueThe string to test
Returns
string The provided string, if it is valid
Exceptions

Wikimedia\IDLeDOM\TypeError if it is not valid


The documentation for this class was generated from the following file: