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 |
|
| Public methods | |
|---|---|
| Boolean | |
| ComponentName |
Gets the target application component to be launched. |
| Uri? |
getData()Gets the explicit data URI to be supplied to the target intent. |
| String |
Gets the explicit intent action to be used during launch. |
| Int |
hashCode() |
Public methods
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