Xsens DOT iOS SDK  ©2022 Xsens Technologies - Version: 2022.0.0
XsensDotDevicePool.h
Go to the documentation of this file.
1 //
2 // XsensDotDevicePool.h
3 // XsensDotSdk
4 //
5 // Created by Nick Yang on 2019/6/18.
6 // Copyright © 2019 Xsens. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "XsensDotDevice.h"
11 
12 NS_ASSUME_NONNULL_BEGIN
13 
14 extern NSInteger const XSDotDevicePoolCapacityMax;
15 
21 @interface XsensDotDevicePool : NSObject
26 + (XsensDotDevice *)inquireDeviceWithPeripheral:(CBPeripheral *)peripheral;
27 
32 + (void)bindDevices:(NSArray <XsensDotDevice *>*)devices;
33 
38 + (BOOL)bindDevice:(XsensDotDevice *)device;
39 
44 + (void)unbindDevice:(XsensDotDevice *)device;
45 
49 + (void)unbindAllDevices;
50 
55 + (NSArray <XsensDotDevice *>*)allBoundDevices;
56 
61 + (NSArray <XsensDotDevice *>*)allOtaDevices;
62 
67 + (void)addOtaDevice:(XsensDotDevice *)device;
68 @end
69 
70 
72 
77 + (XsensDotDevice *)heldDeviceWithPeripheral:(CBPeripheral *)peripheral;
78 
83 + (void)holdDevice:(XsensDotDevice *)device;
84 
89 + (void)releaseDevice:(XsensDotDevice *)device;
90 
94 + (void)onCentralStateUpdated;
95 @end
96 
97 NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_BEGIN NSInteger const XSDotDevicePoolCapacityMax
Definition: XsensDotDevicePool.h:71
Definition: XsensDotDevice.h:31
Definition: XsensDotDevicePool.h:22
NSArray< XsensDotDevice * > * allBoundDevices()
NSArray< XsensDotDevice * > * allOtaDevices()