Google is committed to advancing racial equity for Black communities. See how.

MediaQueueArrayAdapter

public abstract class MediaQueueArrayAdapter extends ArrayAdapter<MediaQueueItem>

A ArrayAdapter for media queue using MediaQueue as backend. The adapter can be used to provide views for an AdapterView.

Inherited Constant Summary

Public Constructor Summary

MediaQueueArrayAdapter(MediaQueue mediaQueue, Context context, int resourceId)
Constructs a new MediaQueueArrayAdapter.

Public Method Summary

boolean
void
dispose()
Disposes the adapter so it no longer receives update from MediaQueue.
int
MediaQueueItem
getItem(int position)
long
getItemId(int position)
MediaQueue
getMediaQueue()
Returns the MediaQueue backing this adapter.
boolean
boolean
boolean
isEnabled(int position)

Inherited Method Summary

Public Constructors

public MediaQueueArrayAdapter (MediaQueue mediaQueue, Context context, int resourceId)

Constructs a new MediaQueueArrayAdapter.

Parameters
mediaQueue the MediaQueue backing this adapter
context the Context object
resourceId the resource ID for a layout file for inflating list item views

Public Methods

public boolean areAllItemsEnabled ()

public void dispose ()

Disposes the adapter so it no longer receives update from MediaQueue.

public int getCount ()

public MediaQueueItem getItem (int position)

public long getItemId (int position)

public MediaQueue getMediaQueue ()

Returns the MediaQueue backing this adapter.

public boolean hasStableIds ()

public boolean isEmpty ()

public boolean isEnabled (int position)