com.samsung.android.sdk.penremote
Class SpenUnitManager
- java.lang.Object
-
- com.samsung.android.sdk.penremote.SpenUnitManager
-
public class SpenUnitManager extends Object
The SpenUnitManager manages SpenUnits and provides a method to set the Event Listener to monitor the events of SpenUnit.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SpenUnit
getUnit(int unitType)
void
registerSpenEventListener(SpenEventListener listener, SpenUnit unit)
Register a SpenEventListener for given SpenUnit.void
unregisterSpenEventListener(SpenUnit unit)
Unregister a SpenEventListener of given SpenUnit.
-
-
-
Method Detail
-
getUnit
public SpenUnit getUnit(int unitType)
- Parameters:
unitType
- The Unit Type ID, must beSpenUnit.TYPE_BUTTON
orSpenUnit.TYPE_AIR_MOTION
.- Returns:
- The object of SpenUnit2.
- Since:
- 1.0.0
-
registerSpenEventListener
public void registerSpenEventListener(SpenEventListener listener, SpenUnit unit)
Register a SpenEventListener for given SpenUnit.- Parameters:
listener
- A SpenEventListener object that will receive the SpenUnit eventsunit
- The SpenUnit to register SpenEventListener- Since:
- 1.0.0
-
unregisterSpenEventListener
public void unregisterSpenEventListener(SpenUnit unit)
Unregister a SpenEventListener of given SpenUnit.- Parameters:
unit
- The SpenUnit to unregister SpenEventListener- Since:
- 1.0.0
-
-