-
- All Implemented Interfaces:
-
java.io.Serializable
public class SHealthSubscription implements Serializable
A class to simplify requesting SHealth permissions from the user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
SHealthSubscription.SHealthSubscriptionSet
As a convenience we have included a few common sets of Samsung Health data types.
public enum
SHealthSubscription.SHealthHistoricalSet
These are the data types that history can be pulled from S Health
-
Field Summary
Fields Modifier and Type Field Description public final static String
DAILY_STEP_COUNT
-
Constructor Summary
Constructors Constructor Description SHealthSubscription(Array<HealthPermissionManager.PermissionKey> permissionKeys)
SHealthSubscription(Array<String> permissionStrings)
-
Method Summary
Modifier and Type Method Description static Set<String>
getSupportedSHealthDataTypes()
Returns all SHealth data types supported by the Validic Mobile library. static Set<String>
getSupportedSHealthDataTypes(Context context)
Returns only SHealth data types that you have registered in your manifest that the library supports. static Record.RecordType
recordTypeForPermissionKey(HealthPermissionManager.PermissionKey permissionKey)
Returns the RecordType associated with a specific SHealth data type. static Array<HealthPermissionManager.PermissionKey>
permissionKeysForSubscriptionSet(SHealthSubscription.SHealthSubscriptionSet set)
Returns an array of Samsung HealthPermissionManager PermissionKey objects associated with the SHealthSubscriptionSet static Array<String>
permissionStringsForSubscriptionSet(SHealthSubscription.SHealthSubscriptionSet set)
Returns an array of Samsung HealthPermissionManager PermissionKey objects associated with the SHealthSubscriptionSet Array<HealthPermissionManager.PermissionKey>
permissionKeys()
Returns all permission keys for this subscription object. Array<String>
permissionKeyStrings()
Returns all SHealth data types currently associated with this object. -
-
Method Detail
-
getSupportedSHealthDataTypes
static Set<String> getSupportedSHealthDataTypes()
Returns all SHealth data types supported by the Validic Mobile library.
-
getSupportedSHealthDataTypes
static Set<String> getSupportedSHealthDataTypes(Context context)
Returns only SHealth data types that you have registered in your manifest that the library supports.
-
recordTypeForPermissionKey
static Record.RecordType recordTypeForPermissionKey(HealthPermissionManager.PermissionKey permissionKey)
Returns the RecordType associated with a specific SHealth data type.
-
permissionKeysForSubscriptionSet
static Array<HealthPermissionManager.PermissionKey> permissionKeysForSubscriptionSet(SHealthSubscription.SHealthSubscriptionSet set)
Returns an array of Samsung HealthPermissionManager PermissionKey objects associated with the SHealthSubscriptionSet
-
permissionStringsForSubscriptionSet
static Array<String> permissionStringsForSubscriptionSet(SHealthSubscription.SHealthSubscriptionSet set)
Returns an array of Samsung HealthPermissionManager PermissionKey objects associated with the SHealthSubscriptionSet
-
permissionKeys
Array<HealthPermissionManager.PermissionKey> permissionKeys()
Returns all permission keys for this subscription object.
-
permissionKeyStrings
Array<String> permissionKeyStrings()
Returns all SHealth data types currently associated with this object.
-
-
-
-