IntentFilter.AddDataScheme(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 scheme to match against.
[Android.Runtime.Register("addDataScheme", "(Ljava/lang/String;)V", "")]
public void AddDataScheme (string? scheme);
[<Android.Runtime.Register("addDataScheme", "(Ljava/lang/String;)V", "")>]
member this.AddDataScheme : string -> unit
Parameters
- scheme
- String
Name of the scheme to match, such as "http".
- Attributes
Remarks
Add a new Intent data scheme to match against. If any schemes are included in the filter, then an Intent's data must be <em>either</em> one of these schemes <em>or</em> a matching data type. If no schemes are included, then an Intent will match only if it includes no data.
<em>Note: scheme matching in the Android framework is case-sensitive, unlike formal RFC schemes. As a result, you should always write your schemes with lower case letters, and any schemes you receive from outside of Android should be converted to lower case before supplying them here.</em>
Java documentation for android.content.IntentFilter.addDataScheme(java.lang.String)
.
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)>