-
- All Implemented Interfaces:
-
android.content.ServiceConnection
public class NIMMSTAIntentServiceConnection 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 NIMMSTAIntentServiceConnection by calling bindServiceToActivity and register for completion for the binding with onComplete.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNIMMSTAIntentServiceConnection.Companion
-
Field Summary
Fields Modifier and Type Field Description private final <ERROR CLASS>serviceConnectedDeferred
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getServiceConnectedDeferred()this deferred object is used to inform the activity that this connection has bound to the NIMMSTA Service UnitonServiceConnected(ComponentName p0, IBinder binder)UnitonServiceDisconnected(ComponentName p0)UnitonBindingDied(ComponentName name)UnitonNullBinding(ComponentName name)final NIMMSTAIntentServiceConnectiononComplete(Function1<Task<NIMMSTAIntentServiceConnection>, Unit> lambda)Lambda is called once service was connected or thrown an error. final Unitclose()close the service. -
-
Method Detail
-
getServiceConnectedDeferred
final <ERROR CLASS> getServiceConnectedDeferred()
this deferred object is used to inform the activity that this connection has bound to the NIMMSTA Service
-
onServiceConnected
Unit onServiceConnected(ComponentName p0, IBinder binder)
-
onServiceDisconnected
Unit onServiceDisconnected(ComponentName p0)
-
onBindingDied
Unit onBindingDied(ComponentName name)
-
onNullBinding
Unit onNullBinding(ComponentName name)
-
onComplete
final NIMMSTAIntentServiceConnection onComplete(Function1<Task<NIMMSTAIntentServiceConnection>, Unit> lambda)
Lambda is called once service was connected or thrown an error. Returns ServiceConnection.
-
-
-
-