MedM DeviceKit
MedMDeviceKit.h
Go to the documentation of this file.
1 //
2 // MedMDeviceKit.h
3 // MedMDeviceKit
4 //
5 // Copyright (C) 2017 MedM. All rights reserved.
6 //
7 
8 #pragma once
9 
10 #import <UIKit/UIKit.h>
11 #import "AddDeviceCallback.h"
12 #import "ScannerCallback.h"
13 #import "DataCallback.h"
14 #import "DeviceInfo.h"
15 #import "MedMScanner.h"
16 #import "MedMDeviceManager.h"
17 #import "MedMCollector.h"
18 #import "MedMDeviceKitError.h"
19 #import "MedMDeviceKitConfig.h"
20 #import "PostponedAddFilter.h"
21 #import "DeviceSetting.h"
22 #import "ErrorCallback.h"
23 #import "BluetoothState.h"
24 
26 FOUNDATION_EXPORT double DeviceSDKVersionNumber;
27 
29 FOUNDATION_EXPORT const unsigned char DeviceSDKVersionString[];
30 
32 @interface MedMDeviceKit : NSObject
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 + (void) init:(NSString* _Nonnull)licenseKey NS_SWIFT_UNAVAILABLE("Use method with error");
36 + (MedMScanner* _Nonnull) getScanner NS_SWIFT_UNAVAILABLE("Use method with error");
37 + (MedMDeviceManager* _Nonnull) getDeviceManager NS_SWIFT_UNAVAILABLE("Use method with error");
38 + (MedMCollector* _Nonnull) getCollector NS_SWIFT_UNAVAILABLE("Use method with error");
39 + (MedMDeviceKitConfig* _Nonnull) getConfig NS_SWIFT_UNAVAILABLE("Use method with error");
40 + (void) setConfig:(MedMDeviceKitConfig* _Nonnull)config NS_SWIFT_UNAVAILABLE("Use method with error");
41 + (NSString* _Nonnull) getLogPath;
42 #endif
43 
49 + (BOOL) init:(NSString* _Nonnull)licenseKey error:(NSError *_Nullable *_Nullable)error NS_SWIFT_NAME(initialize(licenseKey:));
50 
59 + (MedMScanner* _Nullable) getScanner:(NSError *_Nullable *_Nullable)error;
60 
68 + (MedMDeviceManager* _Nullable) getDeviceManager:(NSError *_Nullable *_Nullable)error;
69 
77 + (MedMCollector* _Nullable) getCollector:(NSError *_Nullable *_Nullable)error;
78 
86 + (MedMDeviceKitConfig* _Nullable) getConfig:(NSError *_Nullable *_Nullable)error;
87 
94 + (BOOL) setConfig:(MedMDeviceKitConfig* _Nonnull)config error:(NSError *_Nullable *_Nullable)error;
95 
97 + (NSString* _Nonnull) getVersion;
98 
100 + (void) enableLogs:(BOOL) enable;
101 
103 + (BOOL) logsEnabled;
104 
111 + (BluetoothState* _Nullable) getBluetoothState:(NSError *_Nullable *_Nullable)error;
112 
113 @end
Object that allows listening of the current bluetooth state.
Definition: BluetoothState.h:29
BOOL logsEnabled()
Definition: MedMDeviceKit.mm:308
Definition: MedMDeviceKitConfig.h:35
Main MedM DeviceKit entry point.
Definition: MedMDeviceKit.h:32
NSString *_Nonnull getVersion()
Gets the kit version identifier.
Definition: MedMDeviceKit.mm:291
MedM Collector is where you receive data from controlled devices.
Definition: MedMCollector.h:21
FOUNDATION_EXPORT const unsigned char DeviceSDKVersionString[]
Project version string for MedMDeviceKit.
Definition: MedMDeviceKit.h:29
MedM Device Manager is where you can control devices list.
Definition: MedMDeviceManager.h:24
MedM Scanner is where you search Bluetooth environment for new devices.
Definition: MedMScanner.h:18
FOUNDATION_EXPORT double DeviceSDKVersionNumber
Project version number for MedMDeviceKit.
Definition: MedMDeviceKit.h:26