Język

SliceProvider.GetType(Uri) Method

Definition

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.

Applies to