IntentFilter.MatchData(String, String, Uri) 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.
Match this filter against an Intent's data (type, scheme and path).
[Android.Runtime.Register("matchData", "(Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)I", "")]
public Android.Content.MatchResults MatchData (string? type, string? scheme, Android.Net.Uri? data);
[<Android.Runtime.Register("matchData", "(Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)I", "")>]
member this.MatchData : string * string * Android.Net.Uri -> Android.Content.MatchResults
Parameters
- type
- String
The desired data type to look for, as returned by Intent.resolveType().
- scheme
- String
The desired data scheme to look for, as returned by Intent.getScheme().
- data
- Uri
The full data string to match against, as supplied in Intent.data.
Returns
Returns either a valid match constant (a combination of
#MATCH_CATEGORY_MASK and #MATCH_ADJUSTMENT_MASK),
or one of the error codes #NO_MATCH_TYPE if the type didn't match
or #NO_MATCH_DATA if the scheme/path didn't match.
- 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
See also
- <xref:Android.Content.IntentFilter.Match(Android.Content.ContentResolver%2c+Android.Content.Intent%2c+Android.Content.Intent%2c+Android.Content.Intent)>