UriMatcher.AddURI(String, String, Int32) 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.
Add a URI to match, and the code to return when this URI is matched.
[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);
[<Android.Runtime.Register("addURI", "(Ljava/lang/String;Ljava/lang/String;I)V", "GetAddURI_Ljava_lang_String_Ljava_lang_String_IHandler")>]
abstract member AddURI : string * string * int -> unit
override this.AddURI : string * string * int -> unit
Parameters
- authority
- String
the authority to match
- path
- String
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
- Int32
the code that is returned when a URI is matched against the given components. Must be positive.
- Attributes
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 android.os.Build.VERSION_CODES#JELLY_BEAN_MR2
, this method will accept a leading slash in the path.
Java documentation for android.content.UriMatcher.addURI(java.lang.String, java.lang.String, int)
.
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.