muzei-api / com.google.android.apps.muzei.api / UserCommand

UserCommand

data class UserCommand
Deprecated: The UserCommand class have been replaced with RemoteActionCompat, see getCommandActions().

Data class representing a user-visible command.

See Also

MuzeiArtProvider.getCommands

Constructors

<init>

Data class representing a user-visible command.

UserCommand(id: Int, title: String? = null)

Properties

id

The unique ID for this user command

val id: Int

title

The user-visible title text, or null if none is provided. When none is provided, a default will be used if available

val title: String?

Functions

serialize

Returns a serialized version of this user command.

fun serialize(): String

Companion Object Functions

deserialize

Deserializes a user command from the given string.

fun deserialize(serialized: String): UserCommand