Build 1.0_r1(from source)

android.drm.mobile1
Class DrmRights

java.lang.Object
  extended by android.drm.mobile1.DrmRights

public class DrmRights
extends Object

This class provides interfaces to access the DRM rights.


Field Summary
static int DRM_PERMISSION_DISPLAY
          The DRM permission of display.
static int DRM_PERMISSION_EXECUTE
          The DRM permission of execute.
static int DRM_PERMISSION_PLAY
          The DRM permission of play.
static int DRM_PERMISSION_PRINT
          The DRM permission of print.
 
Constructor Summary
DrmRights()
          Construct the DrmRights.
 
Method Summary
 boolean consumeRights(int permission)
          Consume the rights of the given permission.
 DrmConstraintInfo getConstraint(int permission)
          Get the constraint of the given permission on this rights object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRM_PERMISSION_PLAY

public static final int DRM_PERMISSION_PLAY
The DRM permission of play.

See Also:
Constant Field Values

DRM_PERMISSION_DISPLAY

public static final int DRM_PERMISSION_DISPLAY
The DRM permission of display.

See Also:
Constant Field Values

DRM_PERMISSION_EXECUTE

public static final int DRM_PERMISSION_EXECUTE
The DRM permission of execute.

See Also:
Constant Field Values

DRM_PERMISSION_PRINT

public static final int DRM_PERMISSION_PRINT
The DRM permission of print.

See Also:
Constant Field Values
Constructor Detail

DrmRights

public DrmRights()
Construct the DrmRights.

Method Detail

getConstraint

public DrmConstraintInfo getConstraint(int permission)
Get the constraint of the given permission on this rights object.

Parameters:
permission - the given permission.
Returns:
a DrmConstraint instance.

consumeRights

public boolean consumeRights(int permission)
Consume the rights of the given permission.

Parameters:
permission - the given permission.
Returns:
true if consume success. false if consume failure.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature