MeasureIpcClient

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

An IPC Client that connects to and communicates with Health Services to make Measure API calls.

Summary

Constants
const String

const String

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

CLIENT

const val CLIENT: String
Value: "HealthServicesMeasureClient"

SERVICE_BIND_ACTION

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

SERVICE_PACKAGE_NAME

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

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>