public class

MediaBrowser.BrowserResult

extends CustomVersionedParcelable

implements androidx.media2.RemoteResult

 java.lang.Object

androidx.versionedparcelable.CustomVersionedParcelable

↳androidx.media2.MediaBrowser.BrowserResult

Overview

Result class to be used with for asynchronous calls.

Summary

Methods
public longgetCompletionTime()

Gets the completion time of the command.

public MediaLibraryService.LibraryParamsgetLibraryParams()

Gets the library params

public MediaItemgetMediaItem()

Gets the media item.

public java.util.List<MediaItem>getMediaItems()

Gets the list of media item.

public intgetResultCode()

Gets the result code.

public voidonPostParceling()

public voidonPreParceling(boolean isStream)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public int getResultCode()

Gets the result code.

Returns:

result code

See also: RESULT_CODE_SUCCESS, RESULT_CODE_UNKNOWN_ERROR, RESULT_CODE_INVALID_STATE, RESULT_CODE_BAD_VALUE, RESULT_CODE_PERMISSION_DENIED, RESULT_CODE_IO_ERROR, RESULT_CODE_SKIPPED, RESULT_CODE_DISCONNECTED, RESULT_CODE_NOT_SUPPORTED, RESULT_CODE_AUTHENTICATION_EXPIRED, RESULT_CODE_PREMIUM_ACCOUNT_REQUIRED, RESULT_CODE_CONCURRENT_STREAM_LIMIT, RESULT_CODE_PARENTAL_CONTROL_RESTRICTED, RESULT_CODE_NOT_AVAILABLE_IN_REGION, RESULT_CODE_SKIP_LIMIT_REACHED, RESULT_CODE_SETUP_REQUIRED

public long getCompletionTime()

Gets the completion time of the command. Being more specific, it's the same as when the command is completed.

Returns:

completion time of the command

public MediaItem getMediaItem()

Gets the media item.

Can be null if an error happened or the command doesn't return a media item.

Returns:

media item

See also: MediaBrowser, MediaBrowser.getItem(String)

public java.util.List<MediaItem> getMediaItems()

Gets the list of media item.

Can be null if an error happened or the command doesn't return a list of media items.

Returns:

list of media item

See also: MediaBrowser, MediaBrowser

public MediaLibraryService.LibraryParams getLibraryParams()

Gets the library params

Returns:

library params.

public void onPreParceling(boolean isStream)

Parameters:

isStream:

public void onPostParceling()