EventSubscription Interface
public interface EventSubscription
This interface provides a simple event subscription
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels an event subscription. After making this call, the attached EventListener will not receive any more events (Already in flight events may still be delivered). Because much of the ConnectedDevices functionality is done in native code, it is important to either always ensure cancel is called or WeakReferences are used to ensure proper clean up of resources held by the EventListener. |
Method Details
cancel
public void cancel()
Cancels an event subscription. After making this call, the attached EventListener will not receive any more events (Already in flight events may still be delivered). Because much of the ConnectedDevices functionality is done in native code, it is important to either always ensure cancel is called or WeakReferences are used to ensure proper clean up of resources held by the EventListener.