Xsens DOT iOS SDK  ©2022 Xsens Technologies - Version: 2022.0.0
XsensDotConnectionManager.h
Go to the documentation of this file.
1 //
2 // XsensDotConnectionManager.h
3 // XsensDotSdk
4 //
5 // Created by Nick Yang on 2019/5/15.
6 // Copyright © 2019 Xsens. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "XsensDotDevice.h"
11 #import "XsensDotDefine.h"
12 
17 @protocol XsensDotConnectionDelegate <NSObject>
18 @optional
23 - (void)onManagerStateUpdate:(XSDotManagerState)managerState;
24 
28 - (void)onScanCompleted;
29 
34 - (void)onDiscoverDevice:(XsensDotDevice *_Nonnull)device;
35 
41 - (void)onDeviceConnectSucceeded:(XsensDotDevice *_Nonnull)device;
47 - (void)onDeviceConnectFailed:(XsensDotDevice *_Nonnull)device;
52 - (void)onDeviceDisconnected:(XsensDotDevice *_Nonnull)device;
53 @end
54 
55 
56 NS_ASSUME_NONNULL_BEGIN
57 
61 @interface XsensDotConnectionManager : NSObject
62 
67 + (void)setConnectionDelegate:(nullable id<XsensDotConnectionDelegate>)delegate;
68 
73 + (XSDotManagerState)managerState;
74 
80 
84 + (void)scan;
85 
89 + (void)stopScan;
90 
95 + (void)connect:(XsensDotDevice *)device;
96 
101 + (void)disconnect:(XsensDotDevice *)device;
102 
103 @end
104 
105 NS_ASSUME_NONNULL_END
Definition: XsensDotConnectionManager.h:62
XSDotManagerState managerState()
Definition: XsensDotDevice.h:31
Definition: XsensDotConnectionManager.h:17