IntentFilter.AddDataAuthority(String, String) 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 authority to match against.
[Android.Runtime.Register("addDataAuthority", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public void AddDataAuthority (string? host, string? port);
[<Android.Runtime.Register("addDataAuthority", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
member this.AddDataAuthority : string * string -> unit
Parameters
- host
- String
The host part of the authority to match. May start with a single '*' to wildcard the front of the host name.
- port
- String
Optional port part of the authority to match. If null, any port is allowed.
- Attributes
Remarks
Add a new Intent data authority to match against. The filter must include one or more schemes (via #addDataScheme
) for the authority to be considered. If any authorities are included in the filter, then an Intent's data must match one of them. If no authorities are included, then only the scheme must match.
<em>Note: host name in the Android framework is case-sensitive, unlike formal RFC host names. As a result, you should always write your host names with lower case letters, and any host names you receive from outside of Android should be converted to lower case before supplying them here.</em>
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)