Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

HealthKit.isHealthDataAvailable

Checks whether health data is available.

Component Version macOS Windows Linux Server iOS SDK
HealthKit 8.2 ❌ No ❌ No ❌ No ❌ No ✅ Yes
MBS( "HealthKit.isHealthDataAvailable" )

Parameters

none

Result

Returns 1, 0 or error.

Description

Checks whether health data is available.
Returns 1 if HealthKit is supported on the device.
HealthKit is not supported on all iOS devices. Call isHealthDataAvailable before attempting to use other parts of the framework.

Please ask for a plugin with HealthKit included. We often ship without this feature as you can only use it in apps which opt-in for HealthKit.

Examples

Check status:

Show Custom Dialog [ "Health available" ; Let ( [ r = Let ( [ r = MBS( "HealthKit.isHealthDataAvailable" ); text = Case ( r = 1 ; "yes"; r = 0 ; "no" ; r )]; text)]

This function is free to use.

Created 25th April 2018, last changed 30th March 2019


HealthKit.WheelchairUse - HotKey.GetEnabled