ExerciseUpdateListenerCache

class ExerciseUpdateListenerCache
kotlin.Any
   ↳ androidx.health.services.client.impl.ExerciseUpdateListenerStub.ExerciseUpdateListenerCache

A class that stores unique active instances of ExerciseUpdateListener to ensure same binder object is passed by framework to service side of the IPC.

Summary

Public methods
ExerciseUpdateListenerStub

ExerciseUpdateListenerStub?
remove(exerciseUpdateListener: ExerciseUpdateListener)

Companion properties
ExerciseUpdateListenerStub.ExerciseUpdateListenerCache

Public methods

getOrCreate

@Synchronized fun getOrCreate(
    listener: ExerciseUpdateListener,
    executor: Executor
): ExerciseUpdateListenerStub

remove

@Synchronized fun remove(exerciseUpdateListener: ExerciseUpdateListener): ExerciseUpdateListenerStub?

Companion properties