Language

Condition.IsValidId(Uri, String) Method

Definition

Checks the condition URI scheme and package authority.

[Android.Runtime.Register("isValidId", "(Landroid/net/Uri;Ljava/lang/String;)Z", "", ApiSince=24)]
public static bool IsValidId(Android.Net.Uri? id, string? pkg);
[<Android.Runtime.Register("isValidId", "(Landroid/net/Uri;Ljava/lang/String;)Z", "", ApiSince=24)>]
static member IsValidId : Android.Net.Uri * string -> bool

Parameters

id
Uri

The condition URI to check.

pkg
String

The package name that must match the URI authority.

Returns

true if id is not null, its scheme is condition, and its authority matches pkg; otherwise, false.

Attributes

Remarks

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