Stay organized with collections
Save and categorize content based on your preferences.
DrmManagerClient.OnErrorListener
public
static
interface
DrmManagerClient.OnErrorListener
android.drm.DrmManagerClient.OnErrorListener
|
Interface definition for a callback that receives information about DRM framework errors.
Summary
Public methods
onError
public abstract void onError (DrmManagerClient client,
DrmErrorEvent event)
Called when the DRM framework sends error information.
Parameters |
client |
DrmManagerClient : The DrmManagerClient instance. |
event |
DrmErrorEvent : The DrmErrorEvent instance that wraps the error type and message. |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DrmManagerClient.OnErrorListener\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nDrmManagerClient.OnErrorListener\n================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/drm/DrmManagerClient.OnErrorListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nDrmManagerClient.OnErrorListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------|\n| android.drm.DrmManagerClient.OnErrorListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition for a callback that receives information about DRM framework errors.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onError](/reference/android/drm/DrmManagerClient.OnErrorListener#onError(android.drm.DrmManagerClient,%20android.drm.DrmErrorEvent))`(`[DrmManagerClient](/reference/android/drm/DrmManagerClient)` client, `[DrmErrorEvent](/reference/android/drm/DrmErrorEvent)` event) ` Called when the DRM framework sends error information. |\n\nPublic methods\n--------------\n\n### onError\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onError (DrmManagerClient client, \n DrmErrorEvent event)\n```\n\nCalled when the DRM framework sends error information.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `client` | `DrmManagerClient`: The `DrmManagerClient` instance. \u003cbr /\u003e |\n| `event` | `DrmErrorEvent`: The [DrmErrorEvent](/reference/android/drm/DrmErrorEvent) instance that wraps the error type and message. \u003cbr /\u003e |"]]