Snapd.Media¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Height of media in pixels |
||
r/w/co |
Type for this media |
||
r/w/co |
URL for this media |
||
r/w/co |
Width of media in pixels |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Media(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.Media
contains media information.New in version 1.45.
- get_height()¶
- Returns:
a height
- Return type:
Get the height of the media in pixels or 0 if unknown.
New in version 1.45.
- get_media_type()¶
- Returns:
a type name
- Return type:
Get the type for this media, e.g. “icon” or “screenshot”.
New in version 1.45.
- get_url()¶
- Returns:
a URL
- Return type:
Get the URL for this media, e.g. “http://example.com/media.png”
New in version 1.45.
Property Details¶
- Snapd.Media.props.height¶
- Name:
height
- Type:
- Default Value:
0
- Flags:
Height of media in pixels
- Snapd.Media.props.type¶
- Name:
type
- Type:
- Default Value:
- Flags:
Type for this media
- Snapd.Media.props.url¶
- Name:
url
- Type:
- Default Value:
- Flags:
URL for this media
- Snapd.Media.props.width¶
- Name:
width
- Type:
- Default Value:
0
- Flags:
Width of media in pixels