com.samsung.android.sdk.penremote
Class ButtonEvent
- java.lang.Object
-
- com.samsung.android.sdk.penremote.ButtonEvent
-
public class ButtonEvent extends Object
A class that extracts button related information from an SpenEvent.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
ACTION_DOWN
A pressed gesture has started.static int
ACTION_UP
A pressed gesture has finished.
-
Constructor Summary
Constructors Constructor and Description ButtonEvent(SpenEvent spenEvent)
Create a ButtonEvent from SpenEvent object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getAction()
Returns the kind of action being performed.long
getTimeStamp()
returns time in nanosecond at which the event happened.
-
-
-
Field Detail
-
ACTION_DOWN
public static final int ACTION_DOWN
A pressed gesture has started.- See Also:
- Constant Field Values
-
ACTION_UP
public static final int ACTION_UP
A pressed gesture has finished.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ButtonEvent
public ButtonEvent(SpenEvent spenEvent)
Create a ButtonEvent from SpenEvent object.- Parameters:
spenEvent
- SpenEvent has button information.- Since:
- 1.0.0
-
-
Method Detail
-
getAction
public int getAction()
Returns the kind of action being performed.- Returns:
- The action, such as
ACTION_DOWN
orACTION_UP
. - Since:
- 1.0.0
-
getTimeStamp
public long getTimeStamp()
returns time in nanosecond at which the event happened.- Returns:
- time in nanosecond at which the event happened.
- Since:
- 1.0.0
-
-