This data is related to what a media service should provide.
Convenience init
- (nonnull instancetype)initWithMediaType:(nullable SDLMediaType)mediaType
mediaImage:(nullable SDLImage *)mediaImage
mediaTitle:(nullable NSString *)mediaTitle
mediaArtist:(nullable NSString *)mediaArtist
mediaAlbum:(nullable NSString *)mediaAlbum
playlistName:(nullable NSString *)playlistName
isExplicit:(BOOL)isExplicit
trackPlaybackProgress:(UInt32)trackPlaybackProgress
trackPlaybackDuration:(UInt32)trackPlaybackDuration
queuePlaybackProgress:(UInt32)queuePlaybackProgress
queuePlaybackDuration:(UInt32)queuePlaybackDuration
queueCurrentTrackNumber:(UInt32)queueCurrentTrackNumber
queueTotalTrackCount:(UInt32)queueTotalTrackCount;
init(mediaType: SDLMediaType?, mediaImage: SDLImage?, mediaTitle: String?, mediaArtist: String?, mediaAlbum: String?, playlistName: String?, isExplicit: Bool, trackPlaybackProgress: UInt32, trackPlaybackDuration: UInt32, queuePlaybackProgress: UInt32, queuePlaybackDuration: UInt32, queueCurrentTrackNumber: UInt32, queueTotalTrackCount: UInt32)
The type of the currently playing or paused track
The current artwork for the playing media.
The name of the current playing media
The name of the current media artist
The name of the current media album
The name of the playlist
Whether or not the content currently playing contains explicit content
The current progress of the track
The total duration of the track
The current progress of the playback queue in seconds
The total duration of the playback queue in seconds
The current number (1 based) of the track in the playback queue
The total number of tracks in the playback queue
A SDLMediaServiceData object
Sets the media image associated with the currently playing media Music: The album art of the current track Podcast: The podcast or chapter artwork of the current podcast episode Audiobook: The book or chapter artwork of the current audiobook
SDLImage, Optional
@property (nonatomic, strong, nullable) SDLImage *mediaImage;
var mediaImage: SDLImage? { get set }
The type of the currently playing or paused track.
SDLMediaType, Optional
@property (nonatomic, strong, nullable) SDLMediaType mediaType;
var mediaType: SDLMediaType? { get set }
Music: The name of the current track Podcast: The name of the current episode Audiobook: The name of the current chapter
String, Optional
@property (nonatomic, strong, nullable) NSString *mediaTitle;
var mediaTitle: String? { get set }
Music: The name of the current album artist Podcast: The provider of the podcast (hosts, network, company) Audiobook: The book author’s name
String, Optional
@property (nonatomic, strong, nullable) NSString *mediaArtist;
var mediaArtist: String? { get set }
Music: The name of the current album Podcast: The name of the current podcast show Audiobook: The name of the current book
String, Optional
@property (nonatomic, strong, nullable) NSString *mediaAlbum;
var mediaAlbum: String? { get set }
Music: The name of the playlist or radio station, if the user is playing from a playlist, otherwise, Null Podcast: The name of the playlist, if the user is playing from a playlist, otherwise, Null Audiobook: Likely not applicable, possibly a collection or “playlist” of books
String, Optional
@property (nonatomic, strong, nullable) NSString *playlistName;
var playlistName: String? { get set }
Whether or not the content currently playing (e.g. the track, episode, or book) contains explicit content.
Boolean, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLBool> *isExplicit;
var isExplicit: (NSNumber & SDLBool)? { get set }
Music: The current progress of the track in seconds Podcast: The current progress of the episode in seconds Audiobook: The current progress of the current segment (e.g. the chapter) in seconds
Integer, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *trackPlaybackProgress;
var trackPlaybackProgress: (NSNumber & SDLInt)? { get set }
Music: The total duration of the track in seconds Podcast: The total duration of the episode in seconds Audiobook: The total duration of the current segment (e.g. the chapter) in seconds
Integer, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *trackPlaybackDuration;
var trackPlaybackDuration: (NSNumber & SDLInt)? { get set }
Music: The current progress of the playback queue in seconds Podcast: The current progress of the playback queue in seconds Audiobook: The current progress of the playback queue (e.g. the book) in seconds
Integer, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *queuePlaybackProgress;
var queuePlaybackProgress: (NSNumber & SDLInt)? { get set }
Music: The total duration of the playback queue in seconds Podcast: The total duration of the playback queue in seconds Audiobook: The total duration of the playback queue (e.g. the book) in seconds
Integer, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *queuePlaybackDuration;
var queuePlaybackDuration: (NSNumber & SDLInt)? { get set }
Music: The current number (1 based) of the track in the playback queue Podcast: The current number (1 based) of the episode in the playback queue Audiobook: The current number (1 based) of the episode in the playback queue (e.g. the chapter number in the book)
Integer, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *queueCurrentTrackNumber;
var queueCurrentTrackNumber: (NSNumber & SDLInt)? { get set }
Music: The total number of tracks in the playback queue Podcast: The total number of episodes in the playback queue Audiobook: The total number of sections in the playback queue (e.g. the number of chapters in the book)
Integer, Optional
@property (nonatomic, strong, nullable) NSNumber<SDLInt> *queueTotalTrackCount;
var queueTotalTrackCount: (NSNumber & SDLInt)? { get set }