AppCustomizationAction


class AppCustomizationAction : CustomizationAction
kotlin.Any
   ↳ android.hardware.input.CustomizationAction
   ↳ android.hardware.input.AppCustomizationAction

Represents an action that launches or sends an intent to a specific application component in response to a peripheral input customization trigger. This class holds the target component (required), action (required), and data (optional) required to create the intent for execution.

Summary

Nested classes

Builder for AppCustomizationAction.

Public methods
Boolean
equals(other: Any?)

ComponentName

Gets the target application component to be launched.

Uri?

Gets the explicit data URI to be supplied to the target intent.

String

Gets the explicit intent action to be used during launch.

Int

Public methods

equals

fun equals(other: Any?): Boolean

getComponent

fun getComponent(): ComponentName

Gets the target application component to be launched.

Return
ComponentName The target ComponentName. Never null.

getData

fun getData(): Uri?

Gets the explicit data URI to be supplied to the target intent.

Return
Uri? The target Uri, or null if no data was specified.

getIntentAction

fun getIntentAction(): String

Gets the explicit intent action to be used during launch.

Return
String The intent action string. Never null.

hashCode

fun hashCode(): Int