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 *optionsDeclared 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 isOnDemandDeclared In
Station.h
preGain
Used internally to adjust volume of songs from this station.
@property (readonly) double preGainDeclared In
Station.h
castURL
Used internally to detect if this is a simulcast stream or not
@property (readonly, nonnull) NSString *castURLDeclared In
Station.h
isSimulcast
Return true if this station is a simulcast station
@property (readonly) BOOL isSimulcastDeclared 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 hasNewMusicDeclared 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 *audioItemsDeclared In
Station.h
isTypeOffline
Returs true if this object is a offline/downloadable station.
@property (readonly) BOOL isTypeOfflineDeclared In
Station.h
expiry
Returns expiry date for offline stations, null for online stations.
@property (readonly, nullable) NSDate *expiryDeclared In
Station.h
lastUpdated
Returns the date this station was last updated.
@property (readonly, nonnull) NSDate *lastUpdatedDeclared In
Station.h
lastPlayStart
Returns last play start time, nil if this station has never been played.
@property (readwrite, nullable) NSDate *lastPlayStartDeclared In
Station.h