public interface ContentApi
SpotifyAppRemote.getContentApi()
SpotifyAppRemote
Modifier and Type | Interface and Description |
---|---|
static interface |
ContentApi.ContentType |
Modifier and Type | Method and Description |
---|---|
CallResult<ListItems> |
getChildrenOfItem(ListItem item,
int perpage,
int offset)
Get a list of child items of a browsable (non-playable) content item Introduced in
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1 |
CallResult<ListItems> |
getRecommendedContentItems(java.lang.String type)
Get a list of recommended content Introduced in
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1 |
CallResult<Empty> |
playContentItem(ListItem item)
Start playback of a playable ListItem Introduced in
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1 |
CallResult<ListItems> getRecommendedContentItems(java.lang.String type)
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1
type
- the type of content you want to fetch. May be one of defined ContentApi.ContentType
CallResult<ListItems> getChildrenOfItem(ListItem item, int perpage, int offset)
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1
item
- the content item (retrieved from getRecommendedContentItems(String)
) of
which you want to access the childrenperpage
- the number of children to fetchoffset
- index of first child item to fetch, 0-indexedCallResult<Empty> playContentItem(ListItem item)
com.spotify.protocol.client.RequiredFeatures#FEATURES_V1
ListItem is playable if ListItem.playable
returns true
item
- the ListItem which you want to play