Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
MediaSync.OnErrorListener
android.media.MediaSync.OnErrorListener
|
Interface definition of a callback to be invoked when there
has been an error during an asynchronous operation (other errors
will throw exceptions at method call time).
Summary
Public methods |
abstract
void
|
onError(MediaSync sync, int what, int extra)
Called to indicate an error.
|
Public methods
public abstract void onError (MediaSync sync,
int what,
int extra)
Called to indicate an error.
Parameters |
sync |
MediaSync : The MediaSync the error pertains to
This value cannot be null . |
what |
int : The type of error that has occurred:
|
extra |
int : an extra code, specific to the error. Typically
implementation dependent. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaSync.OnErrorListener\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nMediaSync.OnErrorListener\n=========================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaSync.OnErrorListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaSync.OnErrorListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.media.MediaSync.OnErrorListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition of a callback to be invoked when there\nhas been an error during an asynchronous operation (other errors\nwill throw exceptions at method call time).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onError](/reference/android/media/MediaSync.OnErrorListener#onError(android.media.MediaSync,%20int,%20int))`(`[MediaSync](/reference/android/media/MediaSync)` sync, int what, int extra) ` Called to indicate an error. |\n\nPublic methods\n--------------\n\n### onError\n\nAdded in [API level 23](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onError (MediaSync sync, \n int what, \n int extra)\n```\n\nCalled to indicate an error.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sync` | `MediaSync`: The MediaSync the error pertains to This value cannot be `null`. \u003cbr /\u003e |\n| `what` | `int`: The type of error that has occurred: - [MediaSync.MEDIASYNC_ERROR_AUDIOTRACK_FAIL](/reference/android/media/MediaSync#MEDIASYNC_ERROR_AUDIOTRACK_FAIL) - [MediaSync.MEDIASYNC_ERROR_SURFACE_FAIL](/reference/android/media/MediaSync#MEDIASYNC_ERROR_SURFACE_FAIL) \u003cbr /\u003e |\n| `extra` | `int`: an extra code, specific to the error. Typically implementation dependent. \u003cbr /\u003e |"]]