summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLNotificationConstants.h
blob: d99e0724c2755a9aa381075594db7cfe3a33661b (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
//
//  SDLNotificationConstants.h
//  SmartDeviceLink-iOS
//
//  Created by Justin Dickow on 9/30/15.
//  Copyright © 2015 smartdevicelink. All rights reserved.
//

#import <Foundation/Foundation.h>

@class SDLOnButtonEvent;
@class SDLOnButtonPress;
@class SDLOnCommand;
@class SDLRPCNotification;
@class SDLRPCResponse;
@class SDLRPCRequest;


NS_ASSUME_NONNULL_BEGIN

// Resolves issue of using Swift 3 and pre-iOS 10 versions due to NSNotificationName unavailability.
#if __IPHONE_OS_VERSION_MAX_ALLOWED <= __IPHONE_9_3
#define NOTIFICATION_TYPEDEF NSString *
#else
#define NOTIFICATION_TYPEDEF NSNotificationName
#endif

/// NSNotification names specific to incoming SDL RPC
typedef NOTIFICATION_TYPEDEF SDLNotificationName;

/// The key used in all SDL NSNotifications to extract the response or notification from the userInfo dictionary.
typedef NSString *SDLNotificationUserInfoKey;

#pragma mark - Blocks

/**
 *  A handler used on SDLPerformAudioPassThru.
 *
 *  @param audioData The audio data contained in the notification.
 */
typedef void (^SDLAudioPassThruHandler)(NSData *__nullable audioData);

/**
 *  A handler used on all RPC requests which fires when the response is received.
 *
 *  @param request  The request which was sent.
 *  @param response The response which was received.
 *  @param error    If sending the request encountered an error, this parameter will not be nil.
 */
typedef void (^SDLResponseHandler)(__kindof SDLRPCRequest *__nullable request, __kindof SDLRPCResponse *__nullable response, NSError *__nullable error);

/**
 A completion handler called after a sequential or simultaneous set of requests have completed sending.

 @param success True if every request succeeded, false if any failed. See the progress handler for more details on failures.
 */
typedef void (^SDLMultipleRequestCompletionHandler)(BOOL success);

/**
 A handler called after each response to a request comes in in a multiple request send.

 @param request The request that received a response
 @param response The response received
 @param error The error that occurred during the request if any occurred.
 @param percentComplete The percentage of requests that have received a response
 @return continueSendingRequests NO to cancel any requests that have not yet been sent. This is really only useful for a sequential send (sendSequentialRequests:progressHandler:completionHandler:). Return YES to continue sending requests.
 */
typedef BOOL (^SDLMultipleSequentialRequestProgressHandler)(__kindof SDLRPCRequest *request, __kindof SDLRPCResponse *__nullable response, NSError *__nullable error, float percentComplete);

/**
 A handler called after each response to a request comes in in a multiple request send.

 @param request The request that received a response
 @param response The response received
 @param error The error that occurred during the request if any occurred.
 @param percentComplete The percentage of requests that have received a response
 */
typedef void (^SDLMultipleAsyncRequestProgressHandler)(__kindof SDLRPCRequest *request, __kindof SDLRPCResponse *__nullable response, NSError *__nullable error, float percentComplete);

/**
 A handler that may optionally be run when an SDLSubscribeButton or SDLSoftButton has a corresponding notification occur.
 
 @warning This only works if you send the RPC using SDLManager.
 @warning Only one of the two parameters will be set for each block call.
 
 @param buttonPress An SDLOnButtonPress object that corresponds to this particular button.
 @param buttonEvent An SDLOnButtonEvent object that corresponds to this particular button.
 */
typedef void (^SDLRPCButtonNotificationHandler)(SDLOnButtonPress *_Nullable buttonPress,  SDLOnButtonEvent *_Nullable buttonEvent);
/**
 A handler that may optionally be run when an SDLAddCommand has a corresponding notification occur.
 
 @warning This only works if you send the RPC using SDLManager.
 
 @param command An SDLOnCommand object that corresponds to this particular SDLAddCommand.
 */
typedef void (^SDLRPCCommandNotificationHandler)(SDLOnCommand *command);


#pragma mark - Notification info dictionary keys

/**
*  The key used in all SDL NSNotifications to extract the response or notification from the userinfo dictionary.
*/
extern SDLNotificationUserInfoKey const SDLNotificationUserInfoObject;

/**
 *  Some general NSNotification names not associated with any specific RPC response or request.
 */
#pragma mark - General notifications

/// Name for a disconnection notification
extern SDLNotificationName const SDLTransportDidDisconnect;

/// Name for a connection notification
extern SDLNotificationName const SDLTransportDidConnect;

/// Name for a error during connection notification
extern SDLNotificationName const SDLTransportConnectError;

/// Name for a disconnection notification
extern SDLNotificationName const SDLRPCServiceDidDisconnect;

/// Name for a connection notification
extern SDLNotificationName const SDLRPCServiceDidConnect;

/// Name for a error during connection notification
extern SDLNotificationName const SDLRPCServiceConnectionDidError;

/// Name for a general error notification
extern SDLNotificationName const SDLDidReceiveError;

/// Name for an incoming lock screen icon notification
extern SDLNotificationName const SDLDidReceiveLockScreenIcon;

/// Name for an SDL became ready notification
extern SDLNotificationName const SDLDidBecomeReady;

/// Name for a notification sent by the user when their CarWindow view has been updated
extern SDLNotificationName const SDLDidUpdateProjectionView;

/// Name for a LockScreenStatus notification RPC
extern SDLNotificationName const SDLDidChangeLockScreenStatusNotification __deprecated_msg("This will be replaced in a future version where a fake RPC is not sent");

/**
 *  NSNotification names associated with specific RPC responses.
 */
#pragma mark - RPC responses

/// Name for an AddCommand response RPC
extern SDLNotificationName const SDLDidReceiveAddCommandResponse;

/// Name for an AddSubMenu response RPC
extern SDLNotificationName const SDLDidReceiveAddSubMenuResponse;

/// Name for an Alert response RPC
extern SDLNotificationName const SDLDidReceiveAlertResponse;

/// Name for an AlertManeuver response RPC
extern SDLNotificationName const SDLDidReceiveAlertManeuverResponse;

/// Name for an ButtonPress response RPC
extern SDLNotificationName const SDLDidReceiveButtonPressResponse;

/// Name for aa CancelInteraction response RPC
extern SDLNotificationName const SDLDidReceiveCancelInteractionResponse;

/// Name for a ChangeRegistration response RPC
extern SDLNotificationName const SDLDidReceiveChangeRegistrationResponse;

/// Name for a CloseApplication response RPC
extern SDLNotificationName const SDLDidReceiveCloseApplicationResponse;

/// Name for a CreateInteractionChoiceSet response RPC
extern SDLNotificationName const SDLDidReceiveCreateInteractionChoiceSetResponse;

/// Name for a CreateWindow response RPC
extern SDLNotificationName const SDLDidReceiveCreateWindowResponse;

/// Name for a DeleteCommand response RPC
extern SDLNotificationName const SDLDidReceiveDeleteCommandResponse;

/// Name for a DeleteFile response RPC
extern SDLNotificationName const SDLDidReceiveDeleteFileResponse;

/// Name for a DeleteInteractionChoiceSet response RPC
extern SDLNotificationName const SDLDidReceiveDeleteInteractionChoiceSetResponse;

/// Name for a DeleteSubmenu response RPC
extern SDLNotificationName const SDLDidReceiveDeleteSubmenuResponse;

/// Name for a DeleteWindow response RPC
extern SDLNotificationName const SDLDidReceiveDeleteWindowResponse;

/// Name for a DiagnosticMessage response RPC
extern SDLNotificationName const SDLDidReceiveDiagnosticMessageResponse;

/// Name for a DialNumber response RPC
extern SDLNotificationName const SDLDidReceiveDialNumberResponse;

/// Name for an EncodedSyncPData response RPC
extern SDLNotificationName const SDLDidReceiveEncodedSyncPDataResponse __deprecated;

/// Name for an EndAudioPassThru response RPC
extern SDLNotificationName const SDLDidReceiveEndAudioPassThruResponse;

/// Name for a Generic response RPC
extern SDLNotificationName const SDLDidReceiveGenericResponse;

/// Name for a GetCloudAppProperties response RPC
extern SDLNotificationName const SDLDidReceiveGetCloudAppPropertiesResponse;

/// Name for a GetAppServiceData response RPC
extern SDLNotificationName const SDLDidReceiveGetAppServiceDataResponse;

/// Name for a GetDTCs response RPC
extern SDLNotificationName const SDLDidReceiveGetDTCsResponse;

/// Name for a GetFile response RPC
extern SDLNotificationName const SDLDidReceiveGetFileResponse;

/// Name for a GetInteriorVehicleData response RPC
extern SDLNotificationName const SDLDidReceiveGetInteriorVehicleDataResponse;

/// Name for a GetInteriorVehicleDataConsent response RPC
extern SDLNotificationName const SDLDidReceiveGetInteriorVehicleDataConsentResponse;

/// Name for a GetSystemCapabilities response RPC
extern SDLNotificationName const SDLDidReceiveGetSystemCapabilitiesResponse;

/// Name for a GetVehicleData response RPC
extern SDLNotificationName const SDLDidReceiveGetVehicleDataResponse;

/// Name for a GetWaypoints response RPC
extern SDLNotificationName const SDLDidReceiveGetWaypointsResponse;

/// Name for a ListFiles response RPC
extern SDLNotificationName const SDLDidReceiveListFilesResponse;

/// Name for a PerformAppServiceInteraction response RPC
extern SDLNotificationName const SDLDidReceivePerformAppServiceInteractionResponse;

/// Name for a PerformAudioPassThru response RPC
extern SDLNotificationName const SDLDidReceivePerformAudioPassThruResponse;

/// Name for a PerformInteraction response RPC
extern SDLNotificationName const SDLDidReceivePerformInteractionResponse;

/// Name for a PublishAppService response RPC
extern SDLNotificationName const SDLDidReceivePublishAppServiceResponse;

/// Name for a ReceivePutFile response RPC
extern SDLNotificationName const SDLDidReceivePutFileResponse;

/// Name for a ReceiveReadDID response RPC
extern SDLNotificationName const SDLDidReceiveReadDIDResponse;

/// Name for a RegisterAppInterface response RPC
extern SDLNotificationName const SDLDidReceiveRegisterAppInterfaceResponse;

/// Name for a ReleaseInteriorVehicleDataModule response RPC
extern SDLNotificationName const SDLDidReceiveReleaseInteriorVehicleDataModuleResponse;

/// Name for a ResetGlobalProperties response RPC
extern SDLNotificationName const SDLDidReceiveResetGlobalPropertiesResponse;

/// Name for a ScrollableMessage response RPC
extern SDLNotificationName const SDLDidReceiveScrollableMessageResponse;

/// Name for a SendHapticData response RPC
extern SDLNotificationName const SDLDidReceiveSendHapticDataResponse;

/// Name for a SendLocation response RPC
extern SDLNotificationName const SDLDidReceiveSendLocationResponse;

/// Name for a SetAppIcon response RPC
extern SDLNotificationName const SDLDidReceiveSetAppIconResponse;

/// Name for a SetCloudAppProperties response RPC
extern SDLNotificationName const SDLDidReceiveSetCloudAppPropertiesResponse;

/// Name for a SetDisplayLayout response RPC
extern SDLNotificationName const SDLDidReceiveSetDisplayLayoutResponse;

/// Name for a SetGlobalProperties response RPC
extern SDLNotificationName const SDLDidReceiveSetGlobalPropertiesResponse;

/// Name for a SetInteriorVehicleData response RPC
extern SDLNotificationName const SDLDidReceiveSetInteriorVehicleDataResponse;

/// Name for a SetMediaClockTimer response RPC
extern SDLNotificationName const SDLDidReceiveSetMediaClockTimerResponse;

/// Name for a ShowConstantTBT response RPC
extern SDLNotificationName const SDLDidReceiveShowConstantTBTResponse;

/// Name for a Show response RPC
extern SDLNotificationName const SDLDidReceiveShowResponse;

/// Name for a ShowAppMenu response RPC
extern SDLNotificationName const SDLDidReceiveShowAppMenuResponse;

/// Name for a Slider response RPC
extern SDLNotificationName const SDLDidReceiveSliderResponse;

/// Name for a Speak response RPC
extern SDLNotificationName const SDLDidReceiveSpeakResponse;

/// Name for a SubscribeButton response RPC
extern SDLNotificationName const SDLDidReceiveSubscribeButtonResponse;

/// Name for a SubscribeVehicleData response RPC
extern SDLNotificationName const SDLDidReceiveSubscribeVehicleDataResponse;

/// Name for a SubscribeWaypoints response RPC
extern SDLNotificationName const SDLDidReceiveSubscribeWaypointsResponse;

/// Name for a SyncPData response RPC
extern SDLNotificationName const SDLDidReceiveSyncPDataResponse __deprecated;

/// Name for a SystemRequest response RPC
extern SDLNotificationName const SDLDidReceiveSystemRequestResponse;

/// Name for an UpdateTurnList response RPC
extern SDLNotificationName const SDLDidReceiveUpdateTurnListResponse;

/// Name for an UnpublishAppService response RPC
extern SDLNotificationName const SDLDidReceiveUnpublishAppServiceResponse;

/// Name for an UnregisterAppInterface response RPC
extern SDLNotificationName const SDLDidReceiveUnregisterAppInterfaceResponse;

/// Name for an UnsubscribeButton response RPC
extern SDLNotificationName const SDLDidReceiveUnsubscribeButtonResponse;

/// Name for an UnsubscribeVehicleData response RPC
extern SDLNotificationName const SDLDidReceiveUnsubscribeVehicleDataResponse;

/// Name for an UnsubscribeWaypoints response RPC
extern SDLNotificationName const SDLDidReceiveUnsubscribeWaypointsResponse;

/**
 *  NSNotification names associated with specific RPC requests.
 */
#pragma mark - RPC requests

/// Name for an AddCommand request RPC
extern SDLNotificationName const SDLDidReceiveAddCommandRequest;

/// Name for an AddSubMenu request RPC
extern SDLNotificationName const SDLDidReceiveAddSubMenuRequest;

/// Name for an Alert request RPC
extern SDLNotificationName const SDLDidReceiveAlertRequest;

/// Name for an AlertManeuver request RPC
extern SDLNotificationName const SDLDidReceiveAlertManeuverRequest;

/// Name for a ButtonPress request RPC
extern SDLNotificationName const SDLDidReceiveButtonPressRequest;

/// Name for a CancelInteraction request RPC
extern SDLNotificationName const SDLDidReceiveCancelInteractionRequest;

/// Name for a ChangeRegistration request RPC
extern SDLNotificationName const SDLDidReceiveChangeRegistrationRequest;

/// Name for a CloseApplication request RPC
extern SDLNotificationName const SDLDidReceiveCloseApplicationRequest;

/// Name for a CreateInteractionChoiceSet request RPC
extern SDLNotificationName const SDLDidReceiveCreateInteractionChoiceSetRequest;

/// Name for a CreateWindow request RPC
extern SDLNotificationName const SDLDidReceiveCreateWindowRequest;

/// Name for a DeleteCommand request RPC
extern SDLNotificationName const SDLDidReceiveDeleteCommandRequest;

/// Name for a DeleteFile request RPC
extern SDLNotificationName const SDLDidReceiveDeleteFileRequest;

/// Name for a DeleteInteractionChoiceSet request RPC
extern SDLNotificationName const SDLDidReceiveDeleteInteractionChoiceSetRequest;

/// Name for a DeleteSubMenu request RPC
extern SDLNotificationName const SDLDidReceiveDeleteSubMenuRequest;

/// Name for a DeleteSubMenu request RPC
extern SDLNotificationName const SDLDidReceiveDeleteWindowRequest;

/// Name for a DiagnosticMessage request RPC
extern SDLNotificationName const SDLDidReceiveDiagnosticMessageRequest;

/// Name for a DialNumberR request RPC
extern SDLNotificationName const SDLDidReceiveDialNumberRequest;

/// Name for an EncodedSyncPData request RPC
extern SDLNotificationName const SDLDidReceiveEncodedSyncPDataRequest __deprecated;

/// Name for a EndAudioPass request RPC
extern SDLNotificationName const SDLDidReceiveEndAudioPassThruRequest;

/// Name for a GetAppServiceData request RPC
extern SDLNotificationName const SDLDidReceiveGetAppServiceDataRequest;

/// Name for a GetCloudAppProperties request RPC
extern SDLNotificationName const SDLDidReceiveGetCloudAppPropertiesRequest;

/// Name for a ReceiveGetDTCs request RPC
extern SDLNotificationName const SDLDidReceiveGetDTCsRequest;

/// Name for a GetFile request RPC
extern SDLNotificationName const SDLDidReceiveGetFileRequest;

/// Name for a GetInteriorVehicleData request RPC
extern SDLNotificationName const SDLDidReceiveGetInteriorVehicleDataRequest;

/// Name for a GetInteriorVehicleDataConsent request RPC
extern SDLNotificationName const SDLDidReceiveGetInteriorVehicleDataConsentRequest;

/// Name for a GetSystemCapability request RPC
extern SDLNotificationName const SDLDidReceiveGetSystemCapabilityRequest;

/// Name for a GetVehicleData request RPC
extern SDLNotificationName const SDLDidReceiveGetVehicleDataRequest;

/// Name for a GetWayPoints request RPC
extern SDLNotificationName const SDLDidReceiveGetWayPointsRequest;

/// Name for a ListFiles request RPC
extern SDLNotificationName const SDLDidReceiveListFilesRequest;

/// Name for a PerformAppServiceInteraction request RPC
extern SDLNotificationName const SDLDidReceivePerformAppServiceInteractionRequest;

/// Name for a PerformAudioPassThru request RPC
extern SDLNotificationName const SDLDidReceivePerformAudioPassThruRequest;

/// Name for a PerformInteraction request RPC
extern SDLNotificationName const SDLDidReceivePerformInteractionRequest;

/// Name for a PublishAppService request RPC
extern SDLNotificationName const SDLDidReceivePublishAppServiceRequest;

/// Name for a PutFile request RPC
extern SDLNotificationName const SDLDidReceivePutFileRequest;

/// Name for a ReadDID request RPC
extern SDLNotificationName const SDLDidReceiveReadDIDRequest;

/// Name for a RegisterAppInterfacr request RPC
extern SDLNotificationName const SDLDidReceiveRegisterAppInterfaceRequest;

/// Name for a ReleaseInteriorVehicleData request RPC
extern SDLNotificationName const SDLDidReceiveReleaseInteriorVehicleDataModuleRequest;

/// Name for a ResetGlobalProperties request RPC
extern SDLNotificationName const SDLDidReceiveResetGlobalPropertiesRequest;

/// Name for a ScrollableMessage request RPC
extern SDLNotificationName const SDLDidReceiveScrollableMessageRequest;

/// Name for a SendHapticData request RPC
extern SDLNotificationName const SDLDidReceiveSendHapticDataRequest;

/// Name for a SendLocation request RPC
extern SDLNotificationName const SDLDidReceiveSendLocationRequest;

/// Name for a SetAppIcon request RPC
extern SDLNotificationName const SDLDidReceiveSetAppIconRequest;

/// Name for a SetCloudProperties request RPC
extern SDLNotificationName const SDLDidReceiveSetCloudAppPropertiesRequest;

/// Name for a SetDisplayLayout request RPC
extern SDLNotificationName const SDLDidReceiveSetDisplayLayoutRequest;

/// Name for a SetGlobalProperties request RPC
extern SDLNotificationName const SDLDidReceiveSetGlobalPropertiesRequest;

/// Name for a SetInteriorVehicleData request RPC
extern SDLNotificationName const SDLDidReceiveSetInteriorVehicleDataRequest;

/// Name for a SetMediaClockTimer request RPC
extern SDLNotificationName const SDLDidReceiveSetMediaClockTimerRequest;

/// Name for a Show request RPC
extern SDLNotificationName const SDLDidReceiveShowRequest;

/// Name for a ShowAppMenu request RPC
extern SDLNotificationName const SDLDidReceiveShowAppMenuRequest;

/// Name for a ShowConstantTBT request RPC
extern SDLNotificationName const SDLDidReceiveShowConstantTBTRequest;

/// Name for a Slider request RPC
extern SDLNotificationName const SDLDidReceiveSliderRequest;

/// Name for a Speak request RPC
extern SDLNotificationName const SDLDidReceiveSpeakRequest;

/// Name for a SubscribeButton request RPC
extern SDLNotificationName const SDLDidReceiveSubscribeButtonRequest;

/// Name for a SubscribeVehicleData request RPC
extern SDLNotificationName const SDLDidReceiveSubscribeVehicleDataRequest;

/// Name for a ubscribeWayPoints request RPC
extern SDLNotificationName const SDLDidReceiveSubscribeWayPointsRequest;

/// Name for a SyncPData request RPC
extern SDLNotificationName const SDLDidReceiveSyncPDataRequest __deprecated;

/// Name for a SystemRequest request RPC
extern SDLNotificationName const SDLDidReceiveSystemRequestRequest;

/// Name for an UnpublishAppService request RPC
extern SDLNotificationName const SDLDidReceiveUnpublishAppServiceRequest;

/// Name for an UnregisterAppInterface request RPC
extern SDLNotificationName const SDLDidReceiveUnregisterAppInterfaceRequest;

/// Name for an UnsubscribeButton request RPC
extern SDLNotificationName const SDLDidReceiveUnsubscribeButtonRequest;

/// Name for an UnsubscribeVehicleData request RPC
extern SDLNotificationName const SDLDidReceiveUnsubscribeVehicleDataRequest;

/// Name for an UnsubscribeWayPoints request RPC
extern SDLNotificationName const SDLDidReceiveUnsubscribeWayPointsRequest;

/// Name for an UpdateTurnList request RPC
extern SDLNotificationName const SDLDidReceiveUpdateTurnListRequest;

/**
 *  NSNotification names associated with specific RPC notifications.
 */
#pragma mark - RPC Notifications

/// Name for a DriverDistractionState notification RPC
extern SDLNotificationName const SDLDidChangeDriverDistractionStateNotification;

/// Name for a HMIStatus notification RPC
extern SDLNotificationName const SDLDidChangeHMIStatusNotification;

/// Name for an AppServiceData notification RPC
extern SDLNotificationName const SDLDidReceiveAppServiceDataNotification;

/// Name for an AppUnregistered notification RPC
extern SDLNotificationName const SDLDidReceiveAppUnregisteredNotification;

/// Name for an AudioPassThru notification RPC
extern SDLNotificationName const SDLDidReceiveAudioPassThruNotification;

/// Name for a ButtonEvent notification RPC
extern SDLNotificationName const SDLDidReceiveButtonEventNotification;

/// Name for a ButtonPress notification RPC
extern SDLNotificationName const SDLDidReceiveButtonPressNotification;

/// Name for a Command notification RPC
extern SDLNotificationName const SDLDidReceiveCommandNotification;

/// Name for a EncodedSyncPData notification RPC
extern SDLNotificationName const SDLDidReceiveEncodedDataNotification __deprecated;

/// Name for a InteriorVehicleData notification RPC
extern SDLNotificationName const SDLDidReceiveInteriorVehicleDataNotification;

/// Name for a KeyboardInput notification RPC
extern SDLNotificationName const SDLDidReceiveKeyboardInputNotification;

/// Name for a Language notification RPC
extern SDLNotificationName const SDLDidChangeLanguageNotification;

/// Name for a NewHash notification RPC
extern SDLNotificationName const SDLDidReceiveNewHashNotification;

/// Name for a VehicleIcon notification RPC
extern SDLNotificationName const SDLDidReceiveVehicleIconNotification;

/// Name for a ChangePermissions notification RPC
extern SDLNotificationName const SDLDidChangePermissionsNotification;

/// Name for a RemoteControlStatus notification RPC
extern SDLNotificationName const SDLDidReceiveRemoteControlStatusNotification;

/// Name for an OnSyncPData notification RPC
extern SDLNotificationName const SDLDidReceiveSyncPDataNotification __deprecated;

/// Name for a SystemCapability notification RPC
extern SDLNotificationName const SDLDidReceiveSystemCapabilityUpdatedNotification;

/// Name for a SystemRequest notification RPC
extern SDLNotificationName const SDLDidReceiveSystemRequestNotification;

/// Name for a TurnByTurnStat notification RPC
extern SDLNotificationName const SDLDidChangeTurnByTurnStateNotification;

/// Name for a TouchEvent notification RPC
extern SDLNotificationName const SDLDidReceiveTouchEventNotification;

/// Name for a VehicleData notification RPC
extern SDLNotificationName const SDLDidReceiveVehicleDataNotification;

/// Name for a Waypoint notification RPC
extern SDLNotificationName const SDLDidReceiveWaypointNotification;

/// This class defines methods for getting groups of notifications
@interface SDLNotificationConstants : NSObject

/**
 All of the possible SDL RPC Response notification names

 @return All response notification names
 */
+ (NSArray<SDLNotificationName> *)allResponseNames;

/**
 All of the possible SDL Button event notification names

 @return The names
 */
+ (NSArray<SDLNotificationName> *)allButtonEventNotifications;

@end

NS_ASSUME_NONNULL_END