ServiceClient

open class ServiceClient<T : IInterface>(stubFactory: (IBinder) -> T) : Closeable, Logging

A wrapper that cleans up the service binding process

Inheritors

Constructors

Link copied to clipboard
constructor(stubFactory: (IBinder) -> T)

Properties

Link copied to clipboard
val service: T
Link copied to clipboard
var serviceP: T?

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun connect(c: Context, intent: Intent, flags: Int)
Link copied to clipboard
open fun onConnected(service: T)
Link copied to clipboard
open fun onDisconnected()
Link copied to clipboard

Call this if you want to stall until the connection is completed