toggle menu
horologist
androidJvm
switch theme
search in API
health-service
/
com.google.android.horologist.health.service
/
BinderConnection
Binder
Connection
class
BinderConnection
<
T
:
IBinder
>
(
context
:
Context
,
type
:
KClass
<
out
T
>
)
:
ServiceConnection
Members
Constructors
Binder
Connection
Link copied to clipboard
constructor
(
context
:
Context
,
type
:
KClass
<
out
T
>
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
flow
When
Connected
Link copied to clipboard
fun
<
N
,
V
:
Flow
<
N
>
>
flowWhenConnected
(
property
:
KProperty1
<
T
,
V
>
)
:
Flow
<
N
>
on
Binding
Died
Link copied to clipboard
open
fun
onBindingDied
(
p0
:
ComponentName
)
on
Null
Binding
Link copied to clipboard
open
fun
onNullBinding
(
p0
:
ComponentName
)
on
Service
Connected
Link copied to clipboard
open
override
fun
onServiceConnected
(
name
:
ComponentName
?
,
service
:
IBinder
?
)
on
Service
Disconnected
Link copied to clipboard
open
override
fun
onServiceDisconnected
(
name
:
ComponentName
?
)
run
When
Connected
Link copied to clipboard
suspend
fun
<
R
>
runWhenConnected
(
command
:
suspend
(
T
)
->
R
)
:
R
unbind
Link copied to clipboard
fun
unbind
(
)