-
- All Implemented Interfaces:
-
android.content.ServiceConnection
public class NIMMSTAIntentConnection implements ServiceConnection
This class provides access to the NIMMSTAManager and initiates the connection. It uses an Android ServiceConnection and the concept of background Tasks. Just register the NIMMSTAIntentConnection by calling bindServiceToActivity and register for completion for the binding with onComplete.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNIMMSTAIntentConnection.Companion
-
Field Summary
Fields Modifier and Type Field Description private NIMMSTADeviceEventHandlerdeviceEventHandlerprivate NIMMSTAManagerEventHandlermanagerEventHandlerprivate final NIMMSTAManagermanager
-
Method Summary
Modifier and Type Method Description final NIMMSTADeviceEventHandlergetDeviceEventHandler()final UnitsetDeviceEventHandler(NIMMSTADeviceEventHandler deviceEventHandler)final NIMMSTAManagerEventHandlergetManagerEventHandler()final UnitsetManagerEventHandler(NIMMSTAManagerEventHandler managerEventHandler)final NIMMSTAManagergetManager()UnitonServiceConnected(ComponentName p0, IBinder binder)UnitonServiceDisconnected(ComponentName p0)final NIMMSTAIntentConnectiononComplete(Function1<Task<NIMMSTAIntentConnection>, Unit> lambda)Lambda is called once service was connected or thrown an error. final NIMMSTAIntentConnectiononError(Function1<Throwable, Unit> lambda)Lambda is called once service thrown an error. final NIMMSTAIntentConnectiononSuccess(Function1<NIMMSTAIntentConnection, Unit> lambda)Lambda is called once service thrown an error. final Unitclose()close the service. -
-
Method Detail
-
getDeviceEventHandler
final NIMMSTADeviceEventHandler getDeviceEventHandler()
-
setDeviceEventHandler
final Unit setDeviceEventHandler(NIMMSTADeviceEventHandler deviceEventHandler)
-
getManagerEventHandler
final NIMMSTAManagerEventHandler getManagerEventHandler()
-
setManagerEventHandler
final Unit setManagerEventHandler(NIMMSTAManagerEventHandler managerEventHandler)
-
getManager
final NIMMSTAManager getManager()
-
onServiceConnected
Unit onServiceConnected(ComponentName p0, IBinder binder)
-
onServiceDisconnected
Unit onServiceDisconnected(ComponentName p0)
-
onComplete
final NIMMSTAIntentConnection onComplete(Function1<Task<NIMMSTAIntentConnection>, Unit> lambda)
Lambda is called once service was connected or thrown an error. Returns ServiceConnection.
-
onError
final NIMMSTAIntentConnection onError(Function1<Throwable, Unit> lambda)
Lambda is called once service thrown an error. Returns ServiceConnection.
-
onSuccess
final NIMMSTAIntentConnection onSuccess(Function1<NIMMSTAIntentConnection, Unit> lambda)
Lambda is called once service thrown an error. Returns ServiceConnection.
-
-
-
-