Result
class Result
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 | |
---|---|
static Int |
Result code represents that call is ended with an unknown error. |
static Int |
Result code representing that the command is skipped or canceled. |
static Int |
Result code representing that the command is successfully completed. |
Constants
RESULT_ERROR_UNKNOWN_ERROR
static val RESULT_ERROR_UNKNOWN_ERROR: Int
Result code represents that call is ended with an unknown error.
Value: -1
RESULT_INFO_SKIPPED
static val RESULT_INFO_SKIPPED: Int
Result code representing that the command is skipped or canceled. For an example, a seek command can be skipped if it is followed by another seek command.
Value: 1
RESULT_SUCCESS
static val RESULT_SUCCESS: Int
Result code representing that the command is successfully completed.
Value: 0
Public constructors
Public methods
getResultData
fun getResultData(): Bundle?
Returns the result data.
Return | |
---|---|
Bundle? |
This value may be null . |