MediaMetadataCompact getRating

95 Views Asked by At

In my media app, I keep all the media items as MediaBrowserCompat.MediaItem I'm adding a rating to these items. To read the rating from a MediaItemCompact, Android provides

public RatingCompat getRating (String key)

what is the key parameter ? and how should I use this API to simple read the average users' rating ?

1

There are 1 best solutions below

0
On