-
public interface SHealthManager.SHealthListener
An interface for receiving events from SHealth.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onError(SHealthException error)
Called when an error occurs in the SDK. abstract Unit
onPermissionChange(Array<String> acceptedPermissions, Array<String> deniedPermissions)
Called when returns after end user has clicked "Done" on the Permissions request screen. abstract Unit
onRecords(Map<Record.RecordType, Integer> summary)
Called whenever we capture records either from an observed change or from a history pull abstract Unit
onHistoricalPull(Map<Record.RecordType, Integer> summary)
Called whenever we call pullHistoricalSet -
-
Method Detail
-
onError
abstract Unit onError(SHealthException error)
Called when an error occurs in the SDK. The SHealthException.connectionErrorResult will be non-null if the Validic SDK fails to connect to Samsung Health. Check if the connection error is resolvable using HealthConnectionErrorResult.isResolvable(). If that returns true, the error can be resolved using HealthConnectionErrorResult.resolve(Activity). Calls that generated the error must be called again after the excpetion has been resolved.
-
onPermissionChange
abstract Unit onPermissionChange(Array<String> acceptedPermissions, Array<String> deniedPermissions)
-
onRecords
abstract Unit onRecords(Map<Record.RecordType, Integer> summary)
Called whenever we capture records either from an observed change or from a history pull
-
onHistoricalPull
abstract Unit onHistoricalPull(Map<Record.RecordType, Integer> summary)
Called whenever we call pullHistoricalSet
-
-
-
-