MediaMetadata.Builder.PutRating(String, Rating) Method

Definition

Put a Rating into the metadata.

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

Parameters

key
String

The key for referencing this value. Value is one of the following: MediaMetadata.METADATA_KEY_USER_RATING MediaMetadata.METADATA_KEY_RATING

value
Rating

The Rating value to store. This value may be null.

Returns

The Builder to allow chaining

Attributes

Remarks

Put a Rating 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_RATING MediaMetadata.METADATA_KEY_USER_RATING

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

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