summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLProxyListener.h
blob: 45d961638475dda96fb6664a707a053ef5a32275 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
//  SDLProxyListener.h
//

#import <UIKit/UIKit.h>

@class SDLAddCommandResponse;
@class SDLAddSubMenuResponse;
@class SDLAlertManeuverResponse;
@class SDLAlertResponse;
@class SDLButtonPressResponse;
@class SDLChangeRegistrationResponse;
@class SDLCreateInteractionChoiceSetResponse;
@class SDLDeleteCommandResponse;
@class SDLDeleteFileResponse;
@class SDLDeleteInteractionChoiceSetResponse;
@class SDLDeleteSubMenuResponse;
@class SDLDiagnosticMessageResponse;
@class SDLDialNumberResponse;
@class SDLEncodedSyncPDataResponse;
@class SDLEndAudioPassThruResponse;
@class SDLGenericResponse;
@class SDLGetAppServiceDataResponse;
@class SDLGetDTCsResponse;
@class SDLGetFileResponse;
@class SDLGetInteriorVehicleDataResponse;
@class SDLGetSystemCapabilityResponse;
@class SDLGetVehicleDataResponse;
@class SDLGetWaypointsResponse;
@class SDLListFilesResponse;
@class SDLOnAppInterfaceUnregistered;
@class SDLOnAppServiceData;
@class SDLOnAudioPassThru;
@class SDLOnButtonEvent;
@class SDLOnButtonPress;
@class SDLOnCommand;
@class SDLOnDriverDistraction;
@class SDLOnEncodedSyncPData;
@class SDLOnHashChange;
@class SDLOnHMIStatus;
@class SDLOnInteriorVehicleData;
@class SDLOnKeyboardInput;
@class SDLOnLanguageChange;
@class SDLOnLockScreenStatus;
@class SDLOnPermissionsChange;
@class SDLOnRCStatus;
@class SDLOnSyncPData;
@class SDLOnSystemRequest;
@class SDLOnVehicleData;
@class SDLOnTBTClientState;
@class SDLOnTouchEvent;
@class SDLOnVehicleData;
@class SDLOnWayPointChange;
@class SDLPerformAppServiceInteractionResponse;
@class SDLPerformAudioPassThruResponse;
@class SDLPerformInteractionResponse;
@class SDLPublishAppService;
@class SDLPutFileResponse;
@class SDLReadDIDResponse;
@class SDLRegisterAppInterfaceResponse;
@class SDLResetGlobalPropertiesResponse;
@class SDLScrollableMessageResponse;
@class SDLSendHapticDataResponse;
@class SDLSendLocationResponse;
@class SDLSetAppIconResponse;
@class SDLSetDisplayLayoutResponse;
@class SDLSetGlobalPropertiesResponse;
@class SDLSetInteriorVehicleDataResponse;
@class SDLSetMediaClockTimerResponse;
@class SDLShowConstantTBTResponse;
@class SDLShowResponse;
@class SDLSliderResponse;
@class SDLSpeakResponse;
@class SDLSubscribeButtonResponse;
@class SDLSubscribeVehicleDataResponse;
@class SDLSubscribeWayPointsResponse;
@class SDLSyncPDataResponse;
@class SDLUpdateTurnListResponse;
@class SDLUnregisterAppInterfaceResponse;
@class SDLUnsubscribeButtonResponse;
@class SDLUnsubscribeVehicleDataResponse;
@class SDLUnsubscribeWayPointsResponse;

NS_ASSUME_NONNULL_BEGIN

@protocol SDLProxyListener <NSObject>

/**
 *  Called when a Driver Distraction notification is received from Core
 *
 *  @param notification A SDLOnDriverDistraction object
 */
- (void)onOnDriverDistraction:(SDLOnDriverDistraction *)notification;

/**
 *  Called when the HMI Status of the SDL app has changed
 *
 *  @param notification A SDLOnHMIStatus object
 */
- (void)onOnHMIStatus:(SDLOnHMIStatus *)notification;

/**
 *  Called when a connection with Core has closed
 */
- (void)onProxyClosed;

/**
 *  Called when a connection with Core has been established
 */
- (void)onProxyOpened;

@optional

/**
 *  Called when an Add Command Response is received from Core
 *
 *  @param response A SDLAddCommandResponse object
 */
- (void)onAddCommandResponse:(SDLAddCommandResponse *)response;

/**
 *  Called when an Add SubMenu Response is received from Core
 *
 *  @param response A SDLAddSubMenuResponse object
 */
- (void)onAddSubMenuResponse:(SDLAddSubMenuResponse *)response;

/**
 *  Called when a Alert Maneuver Response is received from Core
 *
 *  @param response A SDLAlertManeuverResponse object
 */
- (void)onAlertManeuverResponse:(SDLAlertManeuverResponse *)response;

/**
 *  Called when a Alert Response is received from Core
 *
 *  @param response A SDLAlertResponse object
 */
- (void)onAlertResponse:(SDLAlertResponse *)response;

/**
 *  Called when a Button Press Response is received from Core
 *
 *  @param response A SDLButtonPressResponse object
 */
- (void)onButtonPressResponse:(SDLButtonPressResponse *)response;

/**
 *  Called when a Change Registration Response is received from Core
 *
 *  @param response A SDLChangeRegistrationResponse object
 */
- (void)onChangeRegistrationResponse:(SDLChangeRegistrationResponse *)response;

/**
 *  Called when a Create Interaction Choice Set Response is received from Core
 *
 *  @param response A SDLCreateInteractionChoiceSetResponse object
 */
- (void)onCreateInteractionChoiceSetResponse:(SDLCreateInteractionChoiceSetResponse *)response;

/**
 *  Called when a Delete Command Response is received from Core
 *
 *  @param response A SDLDeleteCommandResponse object
 */
- (void)onDeleteCommandResponse:(SDLDeleteCommandResponse *)response;

/**
 *  Called when a Delete File Response is received from Core
 *
 *  @param response A SDLDeleteFileResponse object
 */
- (void)onDeleteFileResponse:(SDLDeleteFileResponse *)response;

/**
 *  Called when a Delete Interaction Choice Set Response is received from Core
 *
 *  @param response A SDLDeleteInteractionChoiceSetResponse object
 */
- (void)onDeleteInteractionChoiceSetResponse:(SDLDeleteInteractionChoiceSetResponse *)response;

/**
 *  Called when a Delete SubMenu Response is received from Core
 *
 *  @param response A SDLDeleteSubMenuResponse object
 */
- (void)onDeleteSubMenuResponse:(SDLDeleteSubMenuResponse *)response;

/**
 *  Called when a Diagnostic Message Response is received from Core
 *
 *  @param response A SDLDiagnosticMessageResponse object
 */
- (void)onDiagnosticMessageResponse:(SDLDiagnosticMessageResponse *)response;

/**
 *  Called when a Dial Number Response is received from Core
 *
 *  @param response A SDLDialNumberResponse object
 */
- (void)onDialNumberResponse:(SDLDialNumberResponse *)response;

/**
 *  Called when an Encoded Sync P Data Response is received from Core
 *
 *  @param response A SDLEncodedSyncPDataResponse object
 */
- (void)onEncodedSyncPDataResponse:(SDLEncodedSyncPDataResponse *)response;

/**
 *  Called when an End Audio Pass Thru Response is received from Core
 *
 *  @param response A SDLEndAudioPassThruResponse object
 */
- (void)onEndAudioPassThruResponse:(SDLEndAudioPassThruResponse *)response;

/**
 *  Called when an Error message is received from Core
 *
 *  @param e An exception message
 */
- (void)onError:(NSException *)e;

/**
 *  Called when a Generic Response is received from Core
 *
 *  @param response A SDLGenericResponse object
 */
- (void)onGenericResponse:(SDLGenericResponse *)response;

/**
 *  Called when a Get App Service Data Response is received from Core
 *
 *  @param response A SDLGetAppServiceDataResponse object
 */
- (void)onGetAppServiceDataResponse:(SDLGetAppServiceDataResponse *)response;

/**
 *  Called when a Get DTCs Response is received from Core
 *
 *  @param response A SDLGetDTCsResponse object
 */
- (void)onGetDTCsResponse:(SDLGetDTCsResponse *)response;

/**
 *  Called when a Get File Response is received from Core
 *
 *  @param response A SDLGetFileResponse object
 */
- (void)onGetFileResponse:(SDLGetFileResponse *)response;

/**
 *  Called when a Get Interior Vehicle Data Response is received from Core
 *
 *  @param response A SDLGetInteriorVehicleDataResponse object
 */
- (void)onGetInteriorVehicleDataResponse:(SDLGetInteriorVehicleDataResponse *)response;

/**
 *  Called when a Get System Capability Response is received from Core
 *
 *  @param response A SDLGetSystemCapabilityResponse object
 */
- (void)onGetSystemCapabilityResponse:(SDLGetSystemCapabilityResponse *)response;

/**
 *  Called when a Get Vehicle Data Response is received from Core
 *
 *  @param response A SDLGetVehicleDataResponse object
 */
- (void)onGetVehicleDataResponse:(SDLGetVehicleDataResponse *)response;

/**
 *  Called when a Get Way Points Response is received from Core
 *
 *  @param response A SDLGetWaypointsResponse object
 */
- (void)onGetWayPointsResponse:(SDLGetWaypointsResponse *)response;

/**
 *  Called when a List Files Response is received from Core
 *
 *  @param response A SDLListFilesResponse object
 */
- (void)onListFilesResponse:(SDLListFilesResponse *)response;

/**
 *  Called when a Received Lock Screen Icon notification is received from Core
 *
 *  @param icon An image
 */
- (void)onReceivedLockScreenIcon:(UIImage *)icon;

/**
 *  Called when an On App Interface Unregistered notification is received from Core
 *
 *  @param notification A SDLOnAppInterfaceUnregistered object
 */
- (void)onOnAppInterfaceUnregistered:(SDLOnAppInterfaceUnregistered *)notification;

/**
 *  Called when an On App Service Data notification is received from Core
 *
 *  @param notification A SDLOnAppServiceData object
 */
- (void)onOnAppServiceData:(SDLOnAppServiceData *)notification;

/**
 *  Called when an On Audio Pass Thru notification is received from Core
 *
 *  @param notification A SDLOnAudioPassThru object
 */
- (void)onOnAudioPassThru:(SDLOnAudioPassThru *)notification;

/**
 *  Called when an On Button Event notification is received from Core
 *
 *  @param notification A SDLOnButtonEvent object
 */
- (void)onOnButtonEvent:(SDLOnButtonEvent *)notification;

/**
 *  Called when an On Button Press notification is received from Core
 *
 *  @param notification A SDLOnButtonPress object
 */
- (void)onOnButtonPress:(SDLOnButtonPress *)notification;

/**
 *  Called when an On Command notification is received from Core
 *
 *  @param notification A SDLOnCommand object
 */
- (void)onOnCommand:(SDLOnCommand *)notification;

/**
 *  Called when an On Encoded Sync P Data notification is received from Core
 *
 *  @param notification A SDLOnEncodedSyncPData object
 */
- (void)onOnEncodedSyncPData:(SDLOnEncodedSyncPData *)notification;

/**
 *  Called when an On Hash Change notification is received from Core
 *
 *  @param notification A SDLOnHashChange object
 */
- (void)onOnHashChange:(SDLOnHashChange *)notification;

/**
 *  Called when an On Interior Vehicle Data notification is received from Core
 *
 *  @param notification A SDLOnInteriorVehicleData object
 */
- (void)onOnInteriorVehicleData:(SDLOnInteriorVehicleData *)notification;

/**
 *  Called when an On Keyboard Input notification is received from Core
 *
 *  @param notification A SDLOnKeyboardInput object
 */
- (void)onOnKeyboardInput:(SDLOnKeyboardInput *)notification;

/**
 *  Called when an On Language Change notification is received from Core
 *
 *  @param notification A SDLOnLanguageChange object
 */
- (void)onOnLanguageChange:(SDLOnLanguageChange *)notification;

/**
 *  Called when an On Lock Screen notification is received from Core
 *
 *  @param notification A SDLOnLockScreenStatus object
 */
- (void)onOnLockScreenNotification:(SDLOnLockScreenStatus *)notification;

/**
 *  Called when an On Permissions Change notification is received from Core
 *
 *  @param notification A SDLOnPermissionsChange object
 */
- (void)onOnPermissionsChange:(SDLOnPermissionsChange *)notification;

/**
 *  Called when an On RC Change notification is received from Core
 *
 *  @param notification A SDLOnRCStatus object
 */
- (void)onOnRCStatus:(SDLOnRCStatus *)notification;

/**
 *  Called when an On Sync P notification is received from Core
 *
 *  @param notification A SDLOnSyncPData object
 */
- (void)onOnSyncPData:(SDLOnSyncPData *)notification;

/**
 *  Called when an On System Request notification is received from Core
 *
 *  @param notification A SDLOnSystemRequest object
 */
- (void)onOnSystemRequest:(SDLOnSystemRequest *)notification;

/**
 *  Called when an On TBT Client State notification is received from Core
 *
 *  @param notification A SDLOnTBTClientState object
 */
- (void)onOnTBTClientState:(SDLOnTBTClientState *)notification;

/**
 *  Called when an On Touch Event notification is received from Core
 *
 *  @param notification A SDLOnTouchEvent object
 */
- (void)onOnTouchEvent:(SDLOnTouchEvent *)notification;

/**
 *  Called when an On Vehicle Data notification is received from Core
 *
 *  @param notification A SDLOnVehicleData object
 */
- (void)onOnVehicleData:(SDLOnVehicleData *)notification;

/**
 *  Called when an On Way Point Change notification is received from Core
 *
 *  @param notification A SDLOnWayPointChange object
 */
- (void)onOnWayPointChange:(SDLOnWayPointChange *)notification;

/**
 *  Called when a Perform App Service Interaction Response is received from Core
 *
 *  @param response A SDLPerformAppServiceInteractionResponse object
 */
- (void)onPerformAppServiceInteractionResponse:(SDLPerformAppServiceInteractionResponse *)response;

/**
 *  Called when a Perform Audio Pass Thru Response is received from Core
 *
 *  @param response A SDLPerformAudioPassThruResponse object
 */
- (void)onPerformAudioPassThruResponse:(SDLPerformAudioPassThruResponse *)response;

/**
 *  Called when a Perform Interaction Response is received from Core
 *
 *  @param response A SDLPerformInteractionResponse object
 */
- (void)onPerformInteractionResponse:(SDLPerformInteractionResponse *)response;

/**
 *  Called when a Publish App Service Response is received from Core
 *
 *  @param response A SDLPublishAppService object
 */
- (void)onPublishAppService:(SDLPublishAppService *)response;

/**
 *  Called when a Put File Response is received from Core
 *
 *  @param response A SDLPutFileResponse object
 */
- (void)onPutFileResponse:(SDLPutFileResponse *)response;

/**
 *  Called when a Read DID Response is received from Core
 *
 *  @param response A SDLReadDIDResponse object
 */
- (void)onReadDIDResponse:(SDLReadDIDResponse *)response;

/**
 *  Called when a Register App Interface Response is received from Core
 *
 *  @param response A SDLRegisterAppInterfaceResponse object
 */
- (void)onRegisterAppInterfaceResponse:(SDLRegisterAppInterfaceResponse *)response;

/**
 *  Called when a Reset Global Properties Response is received from Core
 *
 *  @param response A SDLResetGlobalPropertiesResponse object
 */
- (void)onResetGlobalPropertiesResponse:(SDLResetGlobalPropertiesResponse *)response;

/**
 *  Called when a Scrollable Message Response is received from Core
 *
 *  @param response A SDLScrollableMessageResponse object
 */
- (void)onScrollableMessageResponse:(SDLScrollableMessageResponse *)response;

/**
 *  Called when a Send Haptic Data Response is received from Core
 *
 *  @param response A SDLSendHapticDataResponse object
 */
- (void)onSendHapticDataResponse:(SDLSendHapticDataResponse *)response;

/**
 *  Called when a Send Location Response is received from Core
 *
 *  @param response A SDLSendLocationResponse object
 */
- (void)onSendLocationResponse:(SDLSendLocationResponse *)response;

/**
 *  Called when a Set App Icon Response is received from Core
 *
 *  @param response A SDLSetAppIconResponse object
 */
- (void)onSetAppIconResponse:(SDLSetAppIconResponse *)response;

/**
 *  Called when a Set Display Layout Response is received from Core
 *
 *  @param response A SDLSetDisplayLayoutResponse object
 */
- (void)onSetDisplayLayoutResponse:(SDLSetDisplayLayoutResponse *)response;

/**
 *  Called when a Set Global Properties Response is received from Core
 *
 *  @param response A SDLSetGlobalPropertiesResponse object
 */
- (void)onSetGlobalPropertiesResponse:(SDLSetGlobalPropertiesResponse *)response;

/**
 *  Called when a Set Interior Vehicle Data Response is received from Core
 *
 *  @param response A SDLSetInteriorVehicleDataResponse object
 */
- (void)onSetInteriorVehicleDataResponse:(SDLSetInteriorVehicleDataResponse *)response;

/**
 *  Called when a Set Media Clock Timer Response is received from Core
 *
 *  @param response A SDLSetMediaClockTimerResponse object
 */
- (void)onSetMediaClockTimerResponse:(SDLSetMediaClockTimerResponse *)response;

/**
 *  Called when a Show Constant TBT Response is received from Core
 *
 *  @param response A SDLShowConstantTBTResponse object
 */
- (void)onShowConstantTBTResponse:(SDLShowConstantTBTResponse *)response;

/**
 *  Called when a Show Response is received from Core
 *
 *  @param response A SDLShowResponse object
 */
- (void)onShowResponse:(SDLShowResponse *)response;

/**
 *  Called when a Slider Response is received from Core
 *
 *  @param response A SDLSliderResponse object
 */
- (void)onSliderResponse:(SDLSliderResponse *)response;

/**
 *  Called when a Speak Response is received from Core
 *
 *  @param response A SDLSpeakResponse object
 */
- (void)onSpeakResponse:(SDLSpeakResponse *)response;

/**
 *  Called when a Subscribe Button Response is received from Core
 *
 *  @param response A SDLSubscribeButtonResponse object
 */
- (void)onSubscribeButtonResponse:(SDLSubscribeButtonResponse *)response;

/**
 *  Called when a Subscribe Vehicle Data Response is received from Core
 *
 *  @param response A SDLSubscribeVehicleDataResponse object
 */
- (void)onSubscribeVehicleDataResponse:(SDLSubscribeVehicleDataResponse *)response;

/**
 *  Called when a Subscribe Way Points Response is received from Core
 *
 *  @param response A SDLSubscribeWayPointsResponse object
 */
- (void)onSubscribeWayPointsResponse:(SDLSubscribeWayPointsResponse *)response;

/**
 *  Called when a Sync P Data Response is received from Core
 *
 *  @param response A SDLSyncPDataResponse object
 */
- (void)onSyncPDataResponse:(SDLSyncPDataResponse *)response;

/**
 *  Called when an Update Turn List Response is received from Core
 *
 *  @param response A SDLUpdateTurnListResponse object
 */
- (void)onUpdateTurnListResponse:(SDLUpdateTurnListResponse *)response;

/**
 *  Called when an Unregister App Interface Response is received from Core
 *
 *  @param response A SDLUnregisterAppInterfaceResponse object
 */
- (void)onUnregisterAppInterfaceResponse:(SDLUnregisterAppInterfaceResponse *)response;

/**
 *  Called when an Unsubscribe Button Response is received from Core
 *
 *  @param response A SDLUnsubscribeButtonResponse object
 */
- (void)onUnsubscribeButtonResponse:(SDLUnsubscribeButtonResponse *)response;

/**
 *  Called when an Unsubscribe Vehicle Data Response is received from Core
 *
 *  @param response A SDLUnsubscribeVehicleDataResponse object
 */
- (void)onUnsubscribeVehicleDataResponse:(SDLUnsubscribeVehicleDataResponse *)response;

/**
 *  Called when an Unsubscribe Way Points Response is received from Core
 *
 *  @param response A SDLUnsubscribeWayPointsResponse object
 */
- (void)onUnsubscribeWayPointsResponse:(SDLUnsubscribeWayPointsResponse *)response;

@end

NS_ASSUME_NONNULL_END