RTKAccessorySessionCommunication.h 1.03 KB
//
//  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