Share via


DrmManagerClient.GetConstraints Method

Definition

Overloads

GetConstraints(String, DrmStoreActionCode)

Retrieves constraint information for rights-protected content.

GetConstraints(Uri, DrmStoreActionCode)

Retrieves constraint information for rights-protected content.

GetConstraints(String, DrmStoreActionCode)

Retrieves constraint information for rights-protected content.

[Android.Runtime.Register("getConstraints", "(Ljava/lang/String;I)Landroid/content/ContentValues;", "GetGetConstraints_Ljava_lang_String_IHandler")]
public virtual Android.Content.ContentValues? GetConstraints (string? path, Android.Drm.DrmStoreActionCode action);
[<Android.Runtime.Register("getConstraints", "(Ljava/lang/String;I)Landroid/content/ContentValues;", "GetGetConstraints_Ljava_lang_String_IHandler")>]
abstract member GetConstraints : string * Android.Drm.DrmStoreActionCode -> Android.Content.ContentValues
override this.GetConstraints : string * Android.Drm.DrmStoreActionCode -> Android.Content.ContentValues

Parameters

path
String

Path to the content from which you are retrieving DRM constraints.

action
DrmStoreActionCode

Action defined in DrmStore.Action.

Returns

A android.content.ContentValues instance that contains key-value pairs representing the constraints. Null in case of failure. The keys are defined in DrmStore.ConstraintsColumns.

Attributes

Remarks

Retrieves constraint information for rights-protected content.

Java documentation for android.drm.DrmManagerClient.getConstraints(java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetConstraints(Uri, DrmStoreActionCode)

Retrieves constraint information for rights-protected content.

[Android.Runtime.Register("getConstraints", "(Landroid/net/Uri;I)Landroid/content/ContentValues;", "GetGetConstraints_Landroid_net_Uri_IHandler")]
public virtual Android.Content.ContentValues? GetConstraints (Android.Net.Uri? uri, Android.Drm.DrmStoreActionCode action);
[<Android.Runtime.Register("getConstraints", "(Landroid/net/Uri;I)Landroid/content/ContentValues;", "GetGetConstraints_Landroid_net_Uri_IHandler")>]
abstract member GetConstraints : Android.Net.Uri * Android.Drm.DrmStoreActionCode -> Android.Content.ContentValues
override this.GetConstraints : Android.Net.Uri * Android.Drm.DrmStoreActionCode -> Android.Content.ContentValues

Parameters

uri
Uri

URI for the content from which you are retrieving DRM constraints.

action
DrmStoreActionCode

Action defined in DrmStore.Action.

Returns

A android.content.ContentValues instance that contains key-value pairs representing the constraints. Null in case of failure.

Attributes

Remarks

Retrieves constraint information for rights-protected content.

Java documentation for android.drm.DrmManagerClient.getConstraints(android.net.Uri, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to