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

QueueRemoveRequestData

public class QueueRemoveRequestData extends Object
implements Parcelable RequestData

Data structure for queue remove command requests.

Inherited Constant Summary

Public Method Summary

Integer
getCurrentItemId()
ID of the current media item after the deletion.
Long
getCurrentTime()
Milliseconds since the beginning of content to start playback of the current item.
JSONObject
getCustomData()
Returns the custom data.
List<Integer>
getItemIds()
IDs of queue items to be deleted.
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Public Methods

public Integer getCurrentItemId ()

ID of the current media item after the deletion.

  • If null, the current item should be the same as before the deletion;
  • If it does not exist because it has been deleted, the current item should point to the next logical item in the list.

public Long getCurrentTime ()

Milliseconds since the beginning of content to start playback of the current item.

If not null, this value should take precedence over the getStartTime() value provided at the MediaQueueItem level but only the first time the item is played. This is to cover the common case where the user jumps to the middle of an item so the current time does not apply to the item permanently like the getStartTime(). It avoids having to reset the startTime dynamically (that may not be possible if the phone has gone to sleep).

public JSONObject getCustomData ()

Returns the custom data.

public List<Integer> getItemIds ()

IDs of queue items to be deleted.

public void writeToParcel (Parcel out, int flags)