Share via


DrmManagerClient.GetDrmObjectType Method

Definition

Overloads

GetDrmObjectType(String, String)

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified path or MIME type.

GetDrmObjectType(Uri, String)

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified URI or MIME type.

GetDrmObjectType(String, String)

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified path or MIME type.

[Android.Runtime.Register("getDrmObjectType", "(Ljava/lang/String;Ljava/lang/String;)I", "GetGetDrmObjectType_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual Android.Drm.DrmStoreObjectTypeCode GetDrmObjectType (string? path, string? mimeType);
[<Android.Runtime.Register("getDrmObjectType", "(Ljava/lang/String;Ljava/lang/String;)I", "GetGetDrmObjectType_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member GetDrmObjectType : string * string -> Android.Drm.DrmStoreObjectTypeCode
override this.GetDrmObjectType : string * string -> Android.Drm.DrmStoreObjectTypeCode

Parameters

path
String

Path to the content or null.

mimeType
String

MIME type of the content or null.

Returns

An int that corresponds to a DrmStore.DrmObjectType.

Attributes

Remarks

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified path or MIME type. At least one parameter must be specified to retrieve the DRM object type.

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

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

GetDrmObjectType(Uri, String)

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified URI or MIME type.

[Android.Runtime.Register("getDrmObjectType", "(Landroid/net/Uri;Ljava/lang/String;)I", "GetGetDrmObjectType_Landroid_net_Uri_Ljava_lang_String_Handler")]
public virtual Android.Drm.DrmStoreObjectTypeCode GetDrmObjectType (Android.Net.Uri? uri, string? mimeType);
[<Android.Runtime.Register("getDrmObjectType", "(Landroid/net/Uri;Ljava/lang/String;)I", "GetGetDrmObjectType_Landroid_net_Uri_Ljava_lang_String_Handler")>]
abstract member GetDrmObjectType : Android.Net.Uri * string -> Android.Drm.DrmStoreObjectTypeCode
override this.GetDrmObjectType : Android.Net.Uri * string -> Android.Drm.DrmStoreObjectTypeCode

Parameters

uri
Uri

URI for the content or null.

mimeType
String

MIME type of the content or null.

Returns

An int that corresponds to a DrmStore.DrmObjectType.

Attributes

Remarks

Retrieves the type of rights-protected object (for example, content object, rights object, and so on) using the specified URI or MIME type. At least one parameter must be specified to retrieve the DRM object type.

Java documentation for android.drm.DrmManagerClient.getDrmObjectType(android.net.Uri, java.lang.String).

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