isAvailable()

Use this function to determine whether HealthService functionality is available.

None.

Returns true when used on a supported device and false otherwise.

Use this function to disable or hide health data features on platforms where HealthService isn’t supported. For example:

See Also