RTKAccessorySessionCommunication.h
1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// RTKAccessorySessionCommunication.h
// RTKLEFoundation
//
// Created by jerome_gu on 2020/3/3.
// Copyright © 2020 jerome_gu. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifdef RTK_SDK_IS_STATIC_LIBRARY
#import "RTKLEGeneralDefines.h"
#import "RTKPackageCommunication.h"
#import "RTKAccessory.h"
#else
#import <RTKLEFoundation/RTKLEGeneralDefines.h>
#import <RTKLEFoundation/RTKPackageCommunication.h>
#import <RTKLEFoundation/RTKAccessory.h>
#endif
NS_ASSUME_NONNULL_BEGIN
/**
* A communication channel with an remote accessory.
*/
@interface RTKAccessorySessionCommunication : RTKPackageCommunication
/**
* The communication protocol.
*/
@property (nonatomic, readonly) NSString *protocolString;
/**
* Initialize the communication object with specific accessory and protocol.
*/
- (instancetype)initWithAccessory:(RTKAccessory *)accessory forProtocol:(nonnull NSString *)protocolString;
/**
* The communication end point.
*/
@property (nonatomic, readonly) RTKAccessory *accessory;
@end
NS_ASSUME_NONNULL_END