Class MediaControlPlaylist
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 5
Represents playlist for media control.
C#Copypublic class MediaControlPlaylist : IDisposable
- Inheritance
-
System.ObjectMediaControlPlaylist
- Implements
-
System.IDisposable
Constructors
View Source
MediaControlPlaylist(String)
Initializes a new instance of the MediaControlPlaylist class.
Declaration
C#Copypublic MediaControlPlaylist(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of this playlist. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | An internal error occurs. |
API Level: 5
View Source
MediaControlPlaylist(String, Dictionary<String, MediaControlMetadata>)
Initializes a new instance of the MediaControlPlaylist class.
Declaration
C#Copypublic MediaControlPlaylist(string name, Dictionary<string, MediaControlMetadata> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of this playlist. |
System.Collections.Generic.Dictionary<System.String, MediaControlMetadata> | metadata | The metadata of this playlist. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | An internal error occurs. |
API Level: 5
Properties
Declaration
C#Copypublic string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 5
Declaration
C#Copypublic int TotalCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
View Source
AddMetadata(Dictionary<String, MediaControlMetadata>)
Sets the metadata to the playlist.
Declaration
C#Copypublic void AddMetadata(Dictionary<string, MediaControlMetadata> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, MediaControlMetadata> | metadata | The metadata of media. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
API Level: 5
Declaration
C#Copypublic void AddMetadata(string index, MediaControlMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
System.String | index | The index of media in the playlist. |
MediaControlMetadata | metadata | The metadata of media. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
API Level: 5
Declaration
C#Copypublic void Dispose()
API Level: 5
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
API Level: 5
Declaration
C#Copypublic Dictionary<string, MediaControlMetadata> GetMetadata()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, MediaControlMetadata> | The dictionary set of index and MediaControlMetadata pair. |
Declaration
C#Copypublic MediaControlMetadata GetMetadata(string index)
Parameters
Type | Name | Description |
---|---|---|
System.String | index | The index of media in the playlist. |
Returns
Type | Description |
---|---|
MediaControlMetadata | A MediaControlMetadata instance. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Declaration
C#Copypublic void Update()
API Level: 5
Implements
System.IDisposable