SPTAppRemoteContentItem Protocol Reference
Conforms to | NSObject SPTAppRemoteImageRepresentable |
---|---|
Declared in | SPTAppRemoteContentItem.h |
Overview
The SPTAppRemoteContentItem
protocol represents a track or a collection of tracks. Use the isContainer
instance
method to determine if the content item is a collection of tracks for which to grab children from.
title
required method
The primary title of the item.
@property (nonatomic, copy, readonly, nullable) NSString *title
Declared In
SPTAppRemoteContentItem.h
subtitle
required method
The secondary title of the item.
@property (nonatomic, copy, readonly, nullable) NSString *subtitle
Declared In
SPTAppRemoteContentItem.h
contentDescription
required method
The description of the item.
@property (nonatomic, copy, readonly, nullable) NSString *contentDescription
Declared In
SPTAppRemoteContentItem.h
identifier
required method
The unique identifier of the item.
@property (nonatomic, copy, readonly) NSString *identifier
Declared In
SPTAppRemoteContentItem.h
URI
required method
The playback URI of this item.
@property (nonatomic, copy, readonly) NSString *URI
Declared In
SPTAppRemoteContentItem.h
availableOffline
required method
YES
if the item is available offline, or if it has any child that is available offline, otherwise NO
.
@property (nonatomic, assign, readonly, getter=isAvailableOffline) BOOL availableOffline
Declared In
SPTAppRemoteContentItem.h
playable
required method
Returns YES
if the item is directly playable, otherwise NO
.
@property (nonatomic, assign, readonly, getter=isPlayable) BOOL playable
Declared In
SPTAppRemoteContentItem.h
container
required method
Returns YES
if the item is expected to contain children, otherwise NO
.
@property (nonatomic, assign, readonly, getter=isContainer) BOOL container
Declared In
SPTAppRemoteContentItem.h
pinnned
required method
Returns YES
if the item is pinned in Your Library, otherwise NO
.
@property (nonatomic, assign, readonly, getter=isPinned) BOOL pinnned
Declared In
SPTAppRemoteContentItem.h
children
required method
A list of the content item’s children.
@property (nonatomic, strong, readonly, nullable) NSArray<id<SPTAppRemoteContentItem> > *children
Discussion
Note: This is not populated for all container items as some of them are fetched
lazily with the fetchChildrenOfContentItem:callback:
method.
Declared In
SPTAppRemoteContentItem.h