SpotifyiOS.xcframework/ios-arm64/SpotifyiOS.framework/Headers/SPTAppRemoteTrack.h (16 lines of code) (raw):
#import "SPTAppRemoteImageRepresentable.h"
@protocol SPTAppRemoteAlbum;
@protocol SPTAppRemoteArtist;
NS_ASSUME_NONNULL_BEGIN
/**
* The `SPTAppRemoteTrack` represents a track.
*/
@protocol SPTAppRemoteTrack <NSObject, SPTAppRemoteImageRepresentable>
/// The name of the track.
@property (nonatomic, copy, readonly) NSString *name;
/// The URI of the track.
@property (nonatomic, copy, readonly) NSString *URI;
/// The duration of the track in miliseconds.
@property (nonatomic, assign, readonly) NSUInteger duration;
/// The artist of the track.
@property (nonatomic, strong, readonly) id<SPTAppRemoteArtist> artist;
/// The album of the track.
@property (nonatomic, strong, readonly) id<SPTAppRemoteAlbum> album;
/// `YES` if the user has saved the track, otherwise `NO`.
@property (nonatomic, assign, readonly, getter=isSaved) BOOL saved;
/**
* `YES` if the track is a podcast, video, or other audio episode, otherwise `NO`.
* If the track is an episode and `SPTAppRemotePlaybackRestrictions` `canSeek` is `YES` you should show
* 15 second skip buttons in your UI.
*/
@property (nonatomic, assign, readonly, getter=isEpisode) BOOL episode;
/**
* `YES` if the track is a podcast, otherwise `NO`.
* If the track is a podcast and `SPTAppRemotePlaybackRestrictions` `canSeek` is `YES` you should show
* 15 second skip buttons in your UI as well as a podcast speed control to change playback speed.
*/
@property (nonatomic, assign, readonly, getter=isPodcast) BOOL podcast;
/**
* `YES` if the track is an ad, otherwise `NO`.
*/
@property (nonatomic, assign, readonly, getter=isAdvertisement) BOOL advertisement;
@end
NS_ASSUME_NONNULL_END