Package com.adaptr.android.playersdk.models

Types

Artist
Link copied to clipboard
class Artist(id: Int?)

Artist information

AudioFile
Link copied to clipboard
class AudioFile(id: String)

A media file with codec, bitrate, URL, Track, Artist, and Release information.

CacheInfo
Link copied to clipboard
class CacheInfo

Created by arv on 3/12/18.

NotificationStyle
Link copied to clipboard
class NotificationStyle

When music is playing, the com.adaptr.android.playersdk.Adaptr class creates a persistent notification with playback control buttons in it so that the user can always control music playback, even when a different app is in the foreground. By creating an instance of this class and passing it to com.adaptr.android.playersdk.AdaptrPlayer the imagery and layout of those notifications can be customized.

Placement
Link copied to clipboard
class Placement(id: Int?)

A container for multiple stations. Clients don't normally make use of this information, which is inferred from the authentication tokens.

Play
Link copied to clipboard
class Play(id: String)

Play object is an encapsulation of Station and AudioFile and represents one play of the given song in the given station.

PlayList
Link copied to clipboard
class PlayList

Playlist is a collection of songs. To make sure any changes to a playlist are persisted you must call saveChanges at the end

Release
Link copied to clipboard
class Release(id: Int?)

Album/Release Information

Results
Link copied to clipboard
class Results

This class contains a collection of all types of possible search results. Each item should be checked for null before using.

Station
Link copied to clipboard
class Station(id: Int?)

Station metadata.

StationList
Link copied to clipboard
open class StationList : LinkedList<Station>

This is a simple linked list of Station objects, with some additional methods to assist with plucking stations from the list based on station metadata.

Track
Link copied to clipboard
class Track(id: Int?)

Track information