-
- All Implemented Interfaces:
-
android.content.ServiceConnection
public class NIMMSTAWebServiceConnection implements ServiceConnection
Binds to the WebService of an installed NIMMSTA Android app.
The helper tries the supported package names in this order: preferred custom package, standard app, intent app, then webserver app.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNIMMSTAWebServiceConnection.Companion
-
Field Summary
Fields Modifier and Type Field Description private NIMMSTAInstalledAppCandidateconnectedCandidateprivate IBinderbinder
-
Method Summary
Modifier and Type Method Description final NIMMSTAInstalledAppCandidategetConnectedCandidate()final UnitsetConnectedCandidate(NIMMSTAInstalledAppCandidate connectedCandidate)final IBindergetBinder()final UnitsetBinder(IBinder binder)UnitonServiceConnected(ComponentName name, IBinder service)UnitonServiceDisconnected(ComponentName name)UnitonBindingDied(ComponentName name)UnitonNullBinding(ComponentName name)final NIMMSTAWebServiceConnectiononComplete(Function1<Task<NIMMSTAWebServiceConnection>, Unit> lambda)final NIMMSTAWebServiceConnectiononSuccess(Function1<NIMMSTAWebServiceConnection, Unit> lambda)final NIMMSTAWebServiceConnectiononError(Function1<Throwable, Unit> lambda)final Unitclose()-
-
Method Detail
-
getConnectedCandidate
final NIMMSTAInstalledAppCandidate getConnectedCandidate()
-
setConnectedCandidate
final Unit setConnectedCandidate(NIMMSTAInstalledAppCandidate connectedCandidate)
-
onServiceConnected
Unit onServiceConnected(ComponentName name, IBinder service)
-
onServiceDisconnected
Unit onServiceDisconnected(ComponentName name)
-
onBindingDied
Unit onBindingDied(ComponentName name)
-
onNullBinding
Unit onNullBinding(ComponentName name)
-
onComplete
final NIMMSTAWebServiceConnection onComplete(Function1<Task<NIMMSTAWebServiceConnection>, Unit> lambda)
-
onSuccess
final NIMMSTAWebServiceConnection onSuccess(Function1<NIMMSTAWebServiceConnection, Unit> lambda)
-
onError
final NIMMSTAWebServiceConnection onError(Function1<Throwable, Unit> lambda)
-
-
-
-