Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem