Station Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying |
Declared in | Station.h |
Overview
This object represents a Feed.fm radio station, from which songs are retrieved.
After an AdaptrAudioPlayer
is initialized, a list of available stations
can be found in the -AdaptrAudioPlayer:stationList
array.
The -options
dictionary contains arbitrary metadata about this station
that is passed on from the server, such as: background imagery, descriptive
text, keywords, e.t.c. Talk to feed.fm to have these values set to
whatever you wish.
options
Options dictionary. Contact feed.fm to have data specific to your app appear here!
@property (readonly, nullable) NSDictionary *options
Declared In
Station.h
isOnDemand
When true, this station is on-demand, and -audioFiles
contains
an array of songs available for playback in this station.
@property (readonly) BOOL isOnDemand
Declared In
Station.h
preGain
Used internally to adjust volume of songs from this station.
@property (readonly) double preGain
Declared In
Station.h
castURL
Used internally to detect if this is a simulcast stream or not
@property (readonly, nonnull) NSString *castURL
Declared In
Station.h
isSimulcast
Return true if this station is a simulcast station
@property (readonly) BOOL isSimulcast
Declared In
Station.h
hasNewMusic
Returns true if the user has never heard this station or if new music has been published since the user last heard the station.
@property (readonly) BOOL hasNewMusic
Declared In
Station.h
audioItems
An array of Audiofile songs that are in this station, if it is on-demand, otherwise this is NULL.
@property (nullable) NSArray *audioItems
Declared In
Station.h
isTypeOffline
Returs true if this object is a offline/downloadable station.
@property (readonly) BOOL isTypeOffline
Declared In
Station.h
expiry
Returns expiry date for offline stations, null for online stations.
@property (readonly, nullable) NSDate *expiry
Declared In
Station.h
lastUpdated
Returns the date this station was last updated.
@property (readonly, nonnull) NSDate *lastUpdated
Declared In
Station.h
lastPlayStart
Returns last play start time, nil if this station has never been played.
@property (readwrite, nullable) NSDate *lastPlayStart
Declared In
Station.h