BinderConnection

class BinderConnection<T : IBinder>(context: Context, type: KClass<out T>) : ServiceConnection

Constructors

Link copied to clipboard
constructor(context: Context, type: KClass<out T>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun <N, V : Flow<N>> flowWhenConnected(property: KProperty1<T, V>): Flow<N>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onServiceConnected(name: ComponentName?, service: IBinder?)
Link copied to clipboard
open override fun onServiceDisconnected(name: ComponentName?)
Link copied to clipboard
suspend fun <R> runWhenConnected(command: suspend (T) -> R): R
Link copied to clipboard
fun unbind()