다음을 통해 공유


MediaMetadata.MetadataKeyDisplayIconUri Field

Definition

A Uri formatted String for an icon or thumbnail that is suitable for display to the user.

[Android.Runtime.Register("METADATA_KEY_DISPLAY_ICON_URI")]
public const string MetadataKeyDisplayIconUri;
[<Android.Runtime.Register("METADATA_KEY_DISPLAY_ICON_URI")>]
val mutable MetadataKeyDisplayIconUri : string

Field Value

Implements

Attributes

Remarks

A Uri formatted String for an icon or thumbnail that is suitable for display to the user. When displaying more information for media described by this metadata the display description should be preferred to other fields when present. The icon can be loaded using a combination of ContentResolver#openInputStream and BitmapFactory#decodeStream.

For the best results, Uris should use the content:// style and support ContentResolver#EXTRA_SIZE for retrieving scaled artwork through ContentResolver#openTypedAssetFileDescriptor(Uri, String, Bundle).

Java documentation for android.media.MediaMetadata.METADATA_KEY_DISPLAY_ICON_URI.

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