Added in API level 29
Deprecated in API level 37

Session2Command.Result


public static final class Session2Command.Result
extends Object

java.lang.Object
   ↳ android.media.Session2Command.Result


This class was deprecated in API level 37.
Use the Media3 support library instead.

This API is not generally intended for third party application developers. Use the AndroidX Media3 session Library for consistent behavior across all devices.

Contains the result of Session2Command.

Summary

Constants

int RESULT_ERROR_UNKNOWN_ERROR

Result code represents that call is ended with an unknown error.

int RESULT_INFO_SKIPPED

Result code representing that the command is skipped or canceled.

int RESULT_SUCCESS

Result code representing that the command is successfully completed.

Public constructors

Result(int resultCode, Bundle resultData)

Constructor of Result.

Public methods

int getResultCode()

Returns the result code.

Bundle getResultData()

Returns the result data.

Inherited methods