Language

UriPatternMatcher.Lookup(String) Method

Definition

Finds a handler for a request URI, discarding the query string and trying an exact match before wildcard patterns.

[Android.Runtime.Register("lookup", "(Ljava/lang/String;)Ljava/lang/Object;", "GetLookup_Ljava_lang_String_Handler")]
public virtual Java.Lang.Object? Lookup(string? requestURI);
[<Android.Runtime.Register("lookup", "(Ljava/lang/String;)Ljava/lang/Object;", "GetLookup_Ljava_lang_String_Handler")>]
abstract member Lookup : string -> Java.Lang.Object
override this.Lookup : string -> Java.Lang.Object

Parameters

requestURI
String

The request URI to look up. This must not be null. The query string, starting at the first ?, is removed before matching.

Returns

The object registered for an exact match, or for the longest matching wildcard pattern. For equal-length wildcard matches, a pattern ending in * takes priority. Returns null if no match is found.

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