Condition.IsValidId(Uri, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
For a non-null pkg, true if id is not null, its scheme is condition, and its authority matches pkg; otherwise, false. If id is null or its scheme is not condition, the method returns false even when pkg is null.
- Attributes
Exceptions
pkg is null and id has the condition scheme.
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.