DrmManagerClient.CanHandle Method

Definition

Overloads

CanHandle(Uri, String)

Checks whether the given MIME type or URI can be handled.

CanHandle(String, String)

Checks whether the given MIME type or path can be handled.

CanHandle(Uri, String)

Checks whether the given MIME type or URI can be handled.

[Android.Runtime.Register("canHandle", "(Landroid/net/Uri;Ljava/lang/String;)Z", "GetCanHandle_Landroid_net_Uri_Ljava_lang_String_Handler")]
public virtual bool CanHandle (Android.Net.Uri? uri, string? mimeType);
[<Android.Runtime.Register("canHandle", "(Landroid/net/Uri;Ljava/lang/String;)Z", "GetCanHandle_Landroid_net_Uri_Ljava_lang_String_Handler")>]
abstract member CanHandle : Android.Net.Uri * string -> bool
override this.CanHandle : Android.Net.Uri * string -> bool

Parameters

uri
Uri

URI for the content to be handled.

mimeType
String

MIME type of the object to be handled

Returns

True if the given MIME type or URI can be handled; false if they cannot be handled.

Attributes

Remarks

Checks whether the given MIME type or URI can be handled.

Java documentation for android.drm.DrmManagerClient.canHandle(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

CanHandle(String, String)

Checks whether the given MIME type or path can be handled.

[Android.Runtime.Register("canHandle", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetCanHandle_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual bool CanHandle (string? path, string? mimeType);
[<Android.Runtime.Register("canHandle", "(Ljava/lang/String;Ljava/lang/String;)Z", "GetCanHandle_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member CanHandle : string * string -> bool
override this.CanHandle : string * string -> bool

Parameters

path
String

Path of the content to be handled.

mimeType
String

MIME type of the object to be handled.

Returns

True if the given MIME type or path can be handled; false if they cannot be handled.

Attributes

Remarks

Checks whether the given MIME type or path can be handled.

Java documentation for android.drm.DrmManagerClient.canHandle(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