Lingua

MediaMetadata.Builder.PutBitmap(String, Bitmap) Method

Definition

Put a Bitmap into the metadata.

[Android.Runtime.Register("putBitmap", "(Ljava/lang/String;Landroid/graphics/Bitmap;)Landroid/media/MediaMetadata$Builder;", "")]
public Android.Media.MediaMetadata.Builder? PutBitmap(string? key, Android.Graphics.Bitmap? value);
[<Android.Runtime.Register("putBitmap", "(Ljava/lang/String;Landroid/graphics/Bitmap;)Landroid/media/MediaMetadata$Builder;", "")>]
member this.PutBitmap : string * Android.Graphics.Bitmap -> Android.Media.MediaMetadata.Builder

Parameters

key
String

The key for referencing this value. Value is one of the following: MediaMetadata.METADATA_KEY_ART MediaMetadata.METADATA_KEY_ALBUM_ART MediaMetadata.METADATA_KEY_DISPLAY_ICON

value
Bitmap

The Bitmap to store. This value may be null.

Returns

The Builder to allow chaining

Attributes

Remarks

Put a Bitmap into the metadata. Custom keys may be used, but if the METADATA_KEYs defined in this class are used they may only be one of the following: MediaMetadata.METADATA_KEY_ART MediaMetadata.METADATA_KEY_ALBUM_ART MediaMetadata.METADATA_KEY_DISPLAY_ICON Large bitmaps may be scaled down by the system with Builder.setBitmapDimensionLimit(int) when MediaSession.setMetadata is called. To pass full resolution images Uris should be used with putString(String, String).

Android reference for android.media.MediaMetadata.Builder.putBitmap.

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