Package 

Interface SHealthManager.SHealthListener

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

      • onRecords

         abstract Unit onRecords(Map<Record.RecordType, Integer> summary)

        Called whenever we capture records either from an observed change or from a history pull