muzei-api / com.google.android.apps.muzei.api.provider / MuzeiArtProvider / onCommand
onCommand
open fun onCommand(artwork: Artwork, id: Int): Unit
Deprecated: Provide your own PendingIntent for each RemoteActionCompat returned by getCommandActions(). This method will still be called on devices that have an older version of Muzei installed if you continue to override getCommands().
Callback method indicating that the user has selected a command returned by
getCommands.
Parameters
artwork
- The artwork at the time when this command was triggered.
id
- the ID of the command the user has chosen.
See Also
getCommands