com.samsung.android.sdk.penremote

Class AirMotionEvent



  • public class AirMotionEvent
    extends Object
    A class that extracts air motion related information from an SpenEvent.
    • Constructor Detail

      • AirMotionEvent

        public AirMotionEvent(SpenEvent spenEvent)
        Create a AirMotionEvent from SpenEvent object.
        Parameters:
        spenEvent - SpenEvent has air motion information.
        Since:
        1.0.0
    • Method Detail

      • getDeltaX

        public float getDeltaX()
        Returns the deltaX of air motion event from previous position.
        Returns:
        deltaX scaled between -1.0 and 1.0.
        Since:
        1.0.0
      • getDeltaY

        public float getDeltaY()
        Returns the deltaY of air motion event from previous position.
        Returns:
        deltaY scaled between -1.0 and 1.0.
        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