WebKit2WebExtension.DOMMediaList

g GObject.Object GObject.Object WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMObject GObject.Object->WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMMediaList WebKit2WebExtension.DOMMediaList WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMMediaList

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
  append_medium (newMedium)
  delete_medium (oldMedium)
  get_length ()
  get_media_text ()
  item (index)
  set_media_text (value)

Virtual Methods

Inherited:GObject.Object (7)

Properties

Inherited:WebKit2WebExtension.DOMObject (1)
Name Type Flags Short Description
length int r read-only int MediaList:length
media-text str r/w read-write str MediaList:media-text

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance WebKit2WebExtension.DOMObject r  

Class Details

class WebKit2WebExtension.DOMMediaList(**kwargs)
Bases:WebKit2WebExtension.DOMObject
Abstract:No
Structure:WebKit2WebExtension.DOMMediaListClass
append_medium(newMedium)
Parameters:newMedium (str) – A str
Raises:GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

delete_medium(oldMedium)
Parameters:oldMedium (str) – A str
Raises:GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

get_length()
Returns:A int
Return type:int

Deprecated since version 2.22: Use JavaScriptCore API instead

get_media_text()
Returns:A str
Return type:str

Deprecated since version 2.22: Use JavaScriptCore API instead

item(index)
Parameters:index (int) – A int
Returns:A str
Return type:str

Deprecated since version 2.22: Use JavaScriptCore API instead

set_media_text(value)
Parameters:value (str) – A str
Raises:GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

Property Details

WebKit2WebExtension.DOMMediaList.props.length
Name:length
Type:int
Default Value:0
Flags:READABLE

read-only int MediaList:length

WebKit2WebExtension.DOMMediaList.props.media_text
Name:media-text
Type:str
Default Value:''
Flags:READABLE, WRITABLE

read-write str MediaList:media-text