Methods Summary |
---|
public boolean | consumeRights(int permission)Consume the rights of the given permission.
/* call native method to consume and update rights */
int res = nativeConsumeRights(permission);
if (JNI_DRM_FAILURE == res)
return false;
return true;
|
public DrmConstraintInfo | getConstraint(int permission)Get the constraint of the given permission on this rights object.
DrmConstraintInfo c = new DrmConstraintInfo();
/* call native method to get latest constraint information */
int res = nativeGetConstraintInfo(permission, c);
if (JNI_DRM_FAILURE == res)
return null;
return c;
|
private native int | nativeConsumeRights(int permission)native method: consume the rights of the given permission.
|
private native int | nativeGetConstraintInfo(int permission, DrmConstraintInfo constraint)native method: get the constraint information of the given permission.
|