HealthKit.isHealthDataAvailable
-------------------------------

Checks whether health data is available.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [HealthKit](component_HealthKit.md) | [8.2](newinversion82.md) | ❌ 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](HealthKitWheelchairUse.md) - [HotKey.GetEnabled](HotKeyGetEnabled.md)

[HTML Version](HealthKitisHealthDataAvailable.shtml)