MeasureCallbackCache

class MeasureCallbackCache
kotlin.Any
   ↳ androidx.health.services.client.impl.MeasureCallbackStub.MeasureCallbackCache

Its important to use the same stub for registration and un-registration, to ensure same binder object is passed by framework to service side of the IPC.

Summary

Public methods
MeasureCallbackStub
getOrCreate(dataType: DataType, measureCallback: MeasureCallback, executor: Executor)

MeasureCallbackStub?
remove(dataType: DataType, measureCallback: MeasureCallback)

Companion properties
MeasureCallbackStub.MeasureCallbackCache

Public methods

getOrCreate

@Synchronized fun getOrCreate(
    dataType: DataType,
    measureCallback: MeasureCallback,
    executor: Executor
): MeasureCallbackStub

remove

@Synchronized fun remove(
    dataType: DataType,
    measureCallback: MeasureCallback
): MeasureCallbackStub?

Companion properties