MeasureCallback

interface MeasureCallback


Callback for MeasureClient.registerCallback.

Summary

Public methods

abstract void
onAvailabilityChanged(
    @NonNull DataType dataType,
    @NonNull Availability availability
)

Called when the availability of a DataType changes.

abstract void

Called when new data is available.

Public methods

onAvailabilityChanged

@NonNull
public abstract void onAvailabilityChanged(
    @NonNull DataType dataType,
    @NonNull Availability availability
)

Called when the availability of a DataType changes.

onData

@NonNull
public abstract void onData(@NonNull List<@NonNull DataPoint> data)

Called when new data is available. Data can be batched in a list of DataPoint.