com.samsung.android.sdk.penremote

Class ButtonEvent



  • public class ButtonEvent
    extends Object
    A class that extracts button related information from an SpenEvent.
    • 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 or ACTION_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