Stay organized with collections
Save and categorize content based on your preferences.
DrmStore.Action
public
static
class
DrmStore.Action
extends Object
Defines actions that can be performed on rights-protected content.
Summary
Constants |
int |
DEFAULT
The default action.
|
int |
DISPLAY
The rights-protected content can be displayed.
|
int |
EXECUTE
The rights-protected content can be executed.
|
int |
OUTPUT
The rights-protected content can be set as output.
|
int |
PLAY
The rights-protected content can be played.
|
int |
PREVIEW
The rights-protected content can be previewed.
|
int |
RINGTONE
The rights-protected content can be set as a ringtone.
|
int |
TRANSFER
The rights-protected content can be transferred.
|
Public constructors |
Action()
This constructor is deprecated.
This class should have been an interface instead.
The default constuctor should have not been exposed.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Constants
DEFAULT
public static final int DEFAULT
The default action.
Constant Value:
0
(0x00000000)
DISPLAY
public static final int DISPLAY
The rights-protected content can be displayed.
Constant Value:
7
(0x00000007)
EXECUTE
public static final int EXECUTE
The rights-protected content can be executed.
Constant Value:
6
(0x00000006)
OUTPUT
public static final int OUTPUT
The rights-protected content can be set as output.
Constant Value:
4
(0x00000004)
PLAY
public static final int PLAY
The rights-protected content can be played.
Constant Value:
1
(0x00000001)
PREVIEW
public static final int PREVIEW
The rights-protected content can be previewed.
Constant Value:
5
(0x00000005)
RINGTONE
public static final int RINGTONE
The rights-protected content can be set as a ringtone.
Constant Value:
2
(0x00000002)
TRANSFER
public static final int TRANSFER
The rights-protected content can be transferred.
Constant Value:
3
(0x00000003)
Public constructors
Action
public Action ()
This constructor is 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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n30](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Ctors](#pubctors) \\| [Inherited Methods](#inhmethods) \n\nDrmStore.Action\n===============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/drm/DrmStore.Action \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\nclass\nDrmStore.Action\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|-----------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | android.drm.DrmStore.Action |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDefines actions that can be performed on rights-protected content.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|--------------------------------------------------------------------------------------------------------------------|\n| `int` | [DEFAULT](/reference/android/drm/DrmStore.Action#DEFAULT) The default action. |\n| `int` | [DISPLAY](/reference/android/drm/DrmStore.Action#DISPLAY) The rights-protected content can be displayed. |\n| `int` | [EXECUTE](/reference/android/drm/DrmStore.Action#EXECUTE) The rights-protected content can be executed. |\n| `int` | [OUTPUT](/reference/android/drm/DrmStore.Action#OUTPUT) The rights-protected content can be set as output. |\n| `int` | [PLAY](/reference/android/drm/DrmStore.Action#PLAY) The rights-protected content can be played. |\n| `int` | [PREVIEW](/reference/android/drm/DrmStore.Action#PREVIEW) The rights-protected content can be previewed. |\n| `int` | [RINGTONE](/reference/android/drm/DrmStore.Action#RINGTONE) The rights-protected content can be set as a ringtone. |\n| `int` | [TRANSFER](/reference/android/drm/DrmStore.Action#TRANSFER) The rights-protected content can be transferred. |\n\n| ### Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[Action](/reference/android/drm/DrmStore.Action#Action())`() ` *This constructor is deprecated. This class should have been an interface instead. The default constuctor should have not been exposed.* |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nConstants\n---------\n\n### DEFAULT\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int DEFAULT\n```\n\nThe default action.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### DISPLAY\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int DISPLAY\n```\n\nThe rights-protected content can be displayed.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n7\n(0x00000007)\n\n\n### EXECUTE\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int EXECUTE\n```\n\nThe rights-protected content can be executed.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n6\n(0x00000006)\n\n\n### OUTPUT\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int OUTPUT\n```\n\nThe rights-protected content can be set as output.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\n### PLAY\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int PLAY\n```\n\nThe rights-protected content can be played.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### PREVIEW\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int PREVIEW\n```\n\nThe rights-protected content can be previewed.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n5\n(0x00000005)\n\n\n### RINGTONE\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int RINGTONE\n```\n\nThe rights-protected content can be set as a ringtone.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### TRANSFER\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final int TRANSFER\n```\n\nThe rights-protected content can be transferred.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\nPublic constructors\n-------------------\n\n### Action\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic Action ()\n```\n\n\n**This constructor is deprecated.** \n\nThis class should have been an interface instead.\nThe default constuctor should have not been exposed.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]