HealthServicesIpcClient

class HealthServicesIpcClient : Client
androidx.health.services.client.impl.HealthServicesIpcClient

An IPC Client that connects to and communicates with Health Services.

Summary

Constants
const String

Public methods
ListenableFuture<T>
execute(operation: ServiceOperation<T>)

ListenableFuture<T>
registerListener(listenerKey: ListenerKey, registerListenerOperation: ServiceOperation<T>)

ListenableFuture<T>
unregisterListener(listenerKey: ListenerKey, unregisterListenerOperation: ServiceOperation<T>)

Constants

SERVICE_BIND_ACTION

const val SERVICE_BIND_ACTION: String
Value: "com.google.android.wearable.healthservices.HealthServicesClient"

Public methods

execute

fun <T> execute(operation: ServiceOperation<T>): ListenableFuture<T>

registerListener

fun <T> registerListener(
    listenerKey: ListenerKey,
    registerListenerOperation: ServiceOperation<T>
): ListenableFuture<T>

unregisterListener

fun <T> unregisterListener(
    listenerKey: ListenerKey,
    unregisterListenerOperation: ServiceOperation<T>
): ListenableFuture<T>