ButtonCustomizationTrigger
class ButtonCustomizationTrigger : CustomizationTrigger
| kotlin.Any | ||
| ↳ | android.hardware.input.CustomizationTrigger | |
| ↳ | android.hardware.input.ButtonCustomizationTrigger | |
Represents a trigger based on a physical button press on a peripheral (e.g., a mouse).
Summary
| Constants | |
|---|---|
| static Int |
Customizable Button code: Back button. |
| static Int |
Customizable Button code: Extra button. |
| static Int |
Customizable Button code: Forward button. |
| static Int |
Customizable Button code: Side button. |
| static Int |
Customizable Button code: Task button. |
| static Int |
Customizable Button code: Tertiary/Middle button. |
| Public constructors | |
|---|---|
ButtonCustomizationTrigger(buttonCode: Int)Creates a Trigger for a specific button code. |
|
| Public methods | |
|---|---|
| Int |
Returns the button code associated with this trigger. |
| String |
toString() |
| Inherited functions | |
|---|---|
Constants
CUSTOMIZABLE_BUTTON_BACK
static val CUSTOMIZABLE_BUTTON_BACK: Int
Customizable Button code: Back button.
Value: 8CUSTOMIZABLE_BUTTON_EXTRA
static val CUSTOMIZABLE_BUTTON_EXTRA: Int
Customizable Button code: Extra button.
Value: 128CUSTOMIZABLE_BUTTON_FORWARD
static val CUSTOMIZABLE_BUTTON_FORWARD: Int
Customizable Button code: Forward button.
Value: 16CUSTOMIZABLE_BUTTON_SIDE
static val CUSTOMIZABLE_BUTTON_SIDE: Int
Customizable Button code: Side button.
Value: 256CUSTOMIZABLE_BUTTON_TASK
static val CUSTOMIZABLE_BUTTON_TASK: Int
Customizable Button code: Task button.
Value: 512CUSTOMIZABLE_BUTTON_TERTIARY
static val CUSTOMIZABLE_BUTTON_TERTIARY: Int
Customizable Button code: Tertiary/Middle button.
Value: 4Public constructors
ButtonCustomizationTrigger
ButtonCustomizationTrigger(buttonCode: Int)
Creates a Trigger for a specific button code.
| Parameters | |
|---|---|
buttonCode |
Int: The button code for the trigger. Value is one of the following: |
Public methods
getButtonCode
fun getButtonCode(): Int
Returns the button code associated with this trigger.
| Return | |
|---|---|
Int |
Value is one of the following: |
toString
fun toString(): String