
Having a default icon available allows apps to only specify the icon constant without having to define an icon drawable themselves as Media3 can fill in the icon resource for backwards compatibility. The switch util method allows R8 to easily remove unused icons, so having default icons won't affect APK size unless the constants are used to set up the CommandButtons. PiperOrigin-RevId: 614623909
Demo MediaLibraryService
implementation
A library module with a demo implementation of MediaLibraryService
and
MediaLibrarySession.Callback
.
See the PlaybackService
of the session demo how to use
it. Override assets/cataglog.json
by creating such a file in the same format
in your application module that the service will use.