SliceProvider.GetType(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.
Caution
deprecated
Gets the slice MIME type.
[Android.Runtime.Register("getType", "(Landroid/net/Uri;)Ljava/lang/String;", "", ApiSince=28)]
[System.Obsolete("deprecated")]
public override sealed string? GetType(Android.Net.Uri? uri);
[<Android.Runtime.Register("getType", "(Landroid/net/Uri;)Ljava/lang/String;", "", ApiSince=28)>]
[<System.Obsolete("deprecated")>]
override this.GetType : Android.Net.Uri -> string
Parameters
- uri
- Uri
The URI argument. This override returns the slice MIME type without inspecting it.
Returns
Always vnd.android.slice, the value of SliceType.
- Attributes
Remarks
This sealed override returns the same MIME type for every URI. It does not check whether a slice exists at that URI.
Android source for SliceProvider.getType.