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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
HealthKit.AuthorizationStatusForType
Queries authentication status for a type.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| HealthKit | 8.2 | No | No | No | No | Yes |
MBS( "HealthKit.AuthorizationStatusForType"; Type ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| Type | The type to check. | "BiologicalSex" |
Result
Returns value or error.
Description
Queries authentication status for a type.Returns the application's authorization status for the given object type.
Value is NotDetermined, SharingDenied or SharingAuthorized.
Use HealthKit.RequestAuthorizationToShareTypes to request authentication.
Please enable HealthKit for the app entitlements for Xcode, add HealthKit framework and set NSHealthShareUsageDescription descriptor for info.plist.
Examples
Check status:
Set Variable [ $r ; Value: MBS( "HealthKit.AuthorizationStatusForType"; "BiologicalSex" ) ]
Show Custom Dialog [ "Status" ; $r ]
See also
Blog Entries
Created 25th April 2018, last changed 9th August 2018
Hash.SHA512.HMAC - HealthKit.BiologicalSex
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins