muzei-api / com.google.android.apps.muzei.api.provider / MuzeiArtProvider / getCommands

getCommands

open fun getCommands(artwork: Artwork): List<UserCommand>
Deprecated: Override getCommandActions() to set an icon and PendingIntent that should be triggered. This method will still be called on devices that have an older version of Muzei installed.

Retrieve the list of commands available for the given artwork.

Parameters

artwork - The associated artwork that can be used to customize the list of available commands.

Return
A List of commands that the user can trigger.

See Also

onCommand