summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLIAPDataSession.h
blob: 336f31e14201608d14ddb9307ed15c3ef5c1a948 (plain)
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
//
//  SDLIAPDataSession.h
//  SmartDeviceLink
//
//  Created by Nicole on 4/17/19.
//  Copyright © 2019 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SDLIAPSession.h"

@protocol SDLIAPDataSessionDelegate;


NS_ASSUME_NONNULL_BEGIN

@interface SDLIAPDataSession : SDLIAPSession


- (instancetype)init NS_UNAVAILABLE;

/**
 *  Creates a new data session.
 *
 *  @param accessory    The new connected accessory.
 *  @param delegate     The data session delegate
 *  @return             A SDLIAPSession object
 */
- (instancetype)initWithAccessory:(EAAccessory *)accessory delegate:(id<SDLIAPDataSessionDelegate>)delegate forProtocol:(NSString *)protocol;

/**
 *  Sends data to Core via the data session.
 *
 *  @param data The data to send to Core
 */
- (void)sendData:(NSData *)data;

@end

NS_ASSUME_NONNULL_END