Returns a source object for the current app.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Health
Kit
Declaration
+ (HKSource *)defaultSource;
Return Value
A source object for the current app.
Discussion
You can access the source object for the current app directly using this methods. To access other sources, use a source query or similar approach.