Android.Content.UriMatcher.AddURI Method
Add a URI to match, and the code to return when this URI is matched.

Syntax

[Android.Runtime.Register("addURI", "(Ljava/lang/String;Ljava/lang/String;I)V", "GetAddURI_Ljava_lang_String_Ljava_lang_String_IHandler")]
public virtual void AddURI (string authority, string path, int code)

Parameters

authority
the authority to match
path
the path to match. * may be used as a wild card for any text, and # may be used as a wild card for numbers.
code
the code that is returned when a URI is matched against the given components. Must be positive.

Remarks

Add a URI to match, and the code to return when this URI is matched. URI nodes may be exact match string, the token "*" that matches any text, or the token "#" that matches only numbers.

Starting from API level NoType:android/os/Build$VERSION_CODES;Href=../../../reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN_MR2, this method will accept a leading slash in the path.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1