ButtonCustomizationTrigger


public final class ButtonCustomizationTrigger
extends CustomizationTrigger

java.lang.Object
   ↳ 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

int CUSTOMIZABLE_BUTTON_BACK

Customizable Button code: Back button.

int CUSTOMIZABLE_BUTTON_EXTRA

Customizable Button code: Extra button.

int CUSTOMIZABLE_BUTTON_FORWARD

Customizable Button code: Forward button.

int CUSTOMIZABLE_BUTTON_SIDE

Customizable Button code: Side button.

int CUSTOMIZABLE_BUTTON_TASK

Customizable Button code: Task button.

int CUSTOMIZABLE_BUTTON_TERTIARY

Customizable Button code: Tertiary/Middle button.

Public constructors

ButtonCustomizationTrigger(int buttonCode)

Creates a Trigger for a specific button code.

Public methods

int getButtonCode()

Returns the button code associated with this trigger.

String toString()

Returns a string representation of the object.

Inherited methods

Constants

CUSTOMIZABLE_BUTTON_BACK

public static final int CUSTOMIZABLE_BUTTON_BACK

Customizable Button code: Back button.

Constant Value: 8 (0x00000008)

CUSTOMIZABLE_BUTTON_EXTRA

public static final int CUSTOMIZABLE_BUTTON_EXTRA

Customizable Button code: Extra button.

Constant Value: 128 (0x00000080)

CUSTOMIZABLE_BUTTON_FORWARD

public static final int CUSTOMIZABLE_BUTTON_FORWARD

Customizable Button code: Forward button.

Constant Value: 16 (0x00000010)

CUSTOMIZABLE_BUTTON_SIDE

public static final int CUSTOMIZABLE_BUTTON_SIDE

Customizable Button code: Side button.

Constant Value: 256 (0x00000100)

CUSTOMIZABLE_BUTTON_TASK

public static final int CUSTOMIZABLE_BUTTON_TASK

Customizable Button code: Task button.

Constant Value: 512 (0x00000200)

CUSTOMIZABLE_BUTTON_TERTIARY

public static final int CUSTOMIZABLE_BUTTON_TERTIARY

Customizable Button code: Tertiary/Middle button.

Constant Value: 4 (0x00000004)

Public constructors

ButtonCustomizationTrigger

public ButtonCustomizationTrigger (int buttonCode)

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

public int getButtonCode ()

Returns the button code associated with this trigger.

Returns
int Value is one of the following:

toString

public String toString ()

Returns a string representation of the object.

Returns
String a string representation of the object.