MedM DeviceKit
|
Main MedM DeviceKit entry point. More...
#import <MedMDeviceKit.h>
Class Methods | |
(BOOL) | + init:error: |
Initialize MedM DeviceKit. More... | |
(MedMScanner *_Nullable) | + getScanner: |
Gets the scanner. More... | |
(MedMDeviceManager *_Nullable) | + getDeviceManager: |
Gets the device manager. More... | |
(MedMCollector *_Nullable) | + getCollector: |
Gets the collector. More... | |
(MedMDeviceKitConfig *_Nullable) | + getConfig: |
Gets current DeviceKit configuration. More... | |
(BOOL) | + setConfig:error: |
Sets DeviceKit configuration. More... | |
(NSString *_Nonnull) | + getVersion |
Gets the kit version identifier. More... | |
(void) | + enableLogs: |
Enable or disable logs. Logs are stored in app's folder and written in the system logs. Logs are encrypted. State is reset during MedMDeviceKit#init(NSString*). More... | |
(BOOL) | + logsEnabled |
(BluetoothState *_Nullable) | + getBluetoothState: |
Gets a bluetooth state. More... | |
Main MedM DeviceKit entry point.
There are essential entry points to use DeviceKit:
init you have to initialize Kit before usage.
getScanner is where you search Bluetooth environment for new devices.
getDeviceManager is where you can control devices list: add devices found with scanner, remove devices, list devices, etc.
Sample usage:
+ (void) enableLogs: | (BOOL) | enable |
Enable or disable logs. Logs are stored in app's folder and written in the system logs. Logs are encrypted. State is reset during MedMDeviceKit#init(NSString*).
+ (BluetoothState *) getBluetoothState: | (NSError *_Nullable *_Nullable) | error |
Gets a bluetooth state.
MedMDeviceKitException | possible codes: DeviceKitNotInitialized |
+ (MedMCollector* _Nullable) getCollector: | (NSError *_Nullable *_Nullable) | error |
Gets the collector.
The collector is an object that controls communication with devices and receives medical data.
MedMDeviceKitException | possible codes: DeviceKitNotInitialized |
+ (MedMDeviceKitConfig* _Nullable) getConfig: | (NSError *_Nullable *_Nullable) | error |
Gets current DeviceKit configuration.
MedMDeviceKitException | possible codes: DeviceKitNotInitialized |
+ (MedMDeviceManager* _Nullable) getDeviceManager: | (NSError *_Nullable *_Nullable) | error |
Gets the device manager.
The device manager is an object that manages list of connected devices.
MedMDeviceKitException | possible codes: DeviceKitNotInitialized |
+ (MedMScanner* _Nullable) getScanner: | (NSError *_Nullable *_Nullable) | error |
Gets the scanner.
The scanner is an object that searches new Bluetooth devices to connect.
MedMDeviceKitException | possible codes: DeviceKitNotInitialized |
+ (NSString *) getVersion |
Gets the kit version identifier.
+ (BOOL) init: | (NSString *_Nonnull) | licenseKey | |
error: | (NSError *_Nullable *_Nullable) | error | |
Initialize MedM DeviceKit.
Called 'initialize' in swift
NSError | possible codes: DeviceKitKeyInvalid, DeviceKitBuildExpired, DeviceKitLicenseExpired, DeviceKitUnsupportedBundle, DeviceKitInitializationFailed, DeviceKitFeatureUnavailable |
+ (BOOL) logsEnabled |
+ (BOOL) setConfig: | (MedMDeviceKitConfig *_Nonnull) | config | |
error: | (NSError *_Nullable *_Nullable) | error | |
Sets DeviceKit configuration.
Note that notification is persistent between app launches.
MedMDeviceKitException | possible codes: DeviceKitNotInitialized |