Deprecated: This class should have been an interface instead. The default constuctor should have not been exposed.
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,["# DrmStore.Action\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAction\n======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/drm/DrmStore.Action \"View this page in Java\") \n\n```\nopen class Action\n```\n\n|---|----------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| โณ | [android.drm.DrmStore.Action](#) |\n\n*** ** * ** ***\n\n| **This class was deprecated in API level 30.**\n|\n| Deprecated in Java.\n\nDefines actions that can be performed on rights-protected content.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [DEFAULT](#DEFAULT:kotlin.Int) The default action. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [DISPLAY](#DISPLAY:kotlin.Int) The rights-protected content can be displayed. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [EXECUTE](#EXECUTE:kotlin.Int) The rights-protected content can be executed. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OUTPUT](#OUTPUT:kotlin.Int) The rights-protected content can be set as output. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PLAY](#PLAY:kotlin.Int) The rights-protected content can be played. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PREVIEW](#PREVIEW:kotlin.Int) The rights-protected content can be previewed. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [RINGTONE](#RINGTONE:kotlin.Int) The rights-protected content can be set as a ringtone. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [TRANSFER](#TRANSFER:kotlin.Int) The rights-protected content can be transferred. |\n\n| Public constructors ||\n|--------------------------------|---|\n| [Action](#Action())`()` \u003cbr /\u003e |\n\nConstants\n---------\n\n### DEFAULT\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DEFAULT: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe default action. \n\n Value: 0\n\n### DISPLAY\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val DISPLAY: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be displayed. \n\n Value: 7\n\n### EXECUTE\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val EXECUTE: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be executed. \n\n Value: 6\n\n### OUTPUT\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val OUTPUT: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be set as output. \n\n Value: 4\n\n### PLAY\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PLAY: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be played. \n\n Value: 1\n\n### PREVIEW\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val PREVIEW: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be previewed. \n\n Value: 5\n\n### RINGTONE\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val RINGTONE: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be set as a ringtone. \n\n Value: 2\n\n### TRANSFER\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val TRANSFER: Int\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nThe rights-protected content can be transferred. \n\n Value: 3\n\nPublic constructors\n-------------------\n\n### Action\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nAction()\n```\n\n**Deprecated:** *This class should have been an interface instead. The default constuctor should have not been exposed.*"]]