IntentFilter.AddDataSchemeSpecificPart(String, Pattern) 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 new Intent data "scheme specific part" to match against.
[Android.Runtime.Register("addDataSchemeSpecificPart", "(Ljava/lang/String;I)V", "")]
public void AddDataSchemeSpecificPart(string? ssp, Android.OS.Pattern type);
[<Android.Runtime.Register("addDataSchemeSpecificPart", "(Ljava/lang/String;I)V", "")>]
member this.AddDataSchemeSpecificPart : string * Android.OS.Pattern -> unit
Parameters
- ssp
- String
Either a raw string that must exactly match the scheme specific part path, or a simple pattern, depending on type.
- type
- Pattern
Determines how ssp will be compared to determine a match: either Literal, Prefix, Suffix, or SimpleGlob.
- Attributes
Remarks
Add a new Intent data "scheme specific part" to match against. The filter must include one or more schemes (via AddDataScheme(String)) for the scheme specific part to be considered. If any scheme specific parts are included in the filter, then an Intent's data must match one of them. If no scheme specific parts are included, then only the scheme must match.
The "scheme specific part" that this matches against is the string returned by android.net.Uri#getSchemeSpecificPart() Uri.getSchemeSpecificPart. For Uris that contain a path, this kind of matching is not generally of interest, since AddDataAuthority(String, String) and AddDataPath(String, Pattern) can provide a better mechanism for matching them. However, for Uris that do not contain a path, the authority and path are empty, so this is the only way to match against the non-scheme part.
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.MatchData(System.String%2c+System.String%2c+System.String)>
- AddDataScheme(String)