-
Notifications
You must be signed in to change notification settings - Fork 0
/
Intents.framework.h
16209 lines (11837 loc) · 688 KB
/
Intents.framework.h
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
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ========== Intents.framework/Headers/INRestaurantReservationBooking.h
//
// INRestaurantReservationBooking.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
// This API requires you to work with Apple Maps before your application can use it. For information on how to get started, please go to MapsConnect.
//
// http://mapsconnect.apple.com/info/extensions
#import <Foundation/Foundation.h>
#import <Intents/INRestaurant.h>
#import <Intents/INRestaurantOffer.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.0))
API_UNAVAILABLE(macosx, watchos)
// represents a booking at a restaurant during a given time for a given party size
@interface INRestaurantReservationBooking : NSObject <NSSecureCoding, NSCopying>
- (instancetype)initWithRestaurant:(INRestaurant *)restaurant bookingDate:(NSDate *)bookingDate partySize:(NSUInteger)partySize bookingIdentifier:(NSString *)bookingIdentifier NS_DESIGNATED_INITIALIZER;
@property (copy, NS_NONATOMIC_IOSONLY) INRestaurant *restaurant;
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSString *bookingDescription; // A nullable string describing the booking
@property (copy, NS_NONATOMIC_IOSONLY) NSDate *bookingDate;
@property (NS_NONATOMIC_IOSONLY) NSUInteger partySize;
@property (copy, NS_NONATOMIC_IOSONLY) NSString *bookingIdentifier; // A vendor specific identifier that refers to this booking.
@property (getter = isBookingAvailable, NS_NONATOMIC_IOSONLY) BOOL bookingAvailable; // Boolean indicating whether timeslot is available for booking. Defaults to YES.
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSArray <INRestaurantOffer *> *offers;
@property (NS_NONATOMIC_IOSONLY) BOOL requiresManualRequest; // YES means restaurant must be contacted by phone before confirmation is given. Defaults to NO.
@property (NS_NONATOMIC_IOSONLY) BOOL requiresEmailAddress; // YES means an email address is required to book. Defaults to NO.
@property (NS_NONATOMIC_IOSONLY) BOOL requiresName; // YES means a name is required to book. Defaults to NO.
@property (NS_NONATOMIC_IOSONLY) BOOL requiresPhoneNumber; // YES means a phone number required to book. Defaults to NO.
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INGetAvailableRestaurantReservationBookingDefaultsIntentResponse.h
//
// INGetAvailableRestaurantReservationBookingDefaultsIntentResponse.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
// This API requires you to work with Apple Maps before your application can use it. For information on how to get started, please go to MapsConnect.
//
// http://mapsconnect.apple.com/info/extensions
#import <Intents/INIntentResponse.h>
#import <Intents/INImage.h>
typedef NS_ENUM(NSInteger, INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCode) {
INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCodeSuccess,
INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCodeFailure,
INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCodeUnspecified
};
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.0))
API_UNAVAILABLE(macosx, watchos)
@interface INGetAvailableRestaurantReservationBookingDefaultsIntentResponse : INIntentResponse
@property (readonly, NS_NONATOMIC_IOSONLY) NSUInteger defaultPartySize; // default party size for an available bookings request
@property (readonly, copy, NS_NONATOMIC_IOSONLY) NSDate *defaultBookingDate; // default booking time for an available bookings request
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *maximumPartySize;
@property (copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *minimumPartySize;
@property (copy, NS_NONATOMIC_IOSONLY) INImage *providerImage;
- (instancetype)initWithDefaultPartySize:(NSUInteger)defaultPartySize defaultBookingDate:(NSDate *)defaultBookingDate code:(INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER;
@property (readonly, NS_NONATOMIC_IOSONLY) INGetAvailableRestaurantReservationBookingDefaultsIntentResponseCode code;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INCancelRideIntentResponse.h
//
// INCancelRideIntentResponse.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResponse.h>
@class INCurrencyAmount;
typedef NS_ENUM(NSInteger, INCancelRideIntentResponseCode) {
INCancelRideIntentResponseCodeUnspecified = 0,
INCancelRideIntentResponseCodeReady,
INCancelRideIntentResponseCodeSuccess,
INCancelRideIntentResponseCodeFailure,
} API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos);
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(11.0))
API_UNAVAILABLE(watchos, macos)
@interface INCancelRideIntentResponse : INIntentResponse
- (instancetype)init NS_UNAVAILABLE;
// The app extension has the option of capturing its private state as an NSUserActivity and returning it as the 'currentActivity'.
// If the the app is launched, an NSUserActivity will be passed in with the private state. The NSUserActivity may also be used to query the app's UI extension (if provided) for a view controller representing the current intent handling state.
// In the case of app launch, the NSUserActivity will have its activityType set to the name of the intent. This intent object will also be available in the NSUserActivity.interaction property.
- (instancetype)initWithCode:(INCancelRideIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER;
@property (readonly, NS_NONATOMIC_IOSONLY) INCancelRideIntentResponseCode code;
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) INCurrencyAmount *cancellationFee; // Used during confirmation to warn the user about any cancellation fees
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSDateComponents *cancellationFeeThreshold; // The time after which canceling the ride will incur the cancellation fee
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INCallRecordTypeOptionsResolutionResult.h
//
// INCallRecordTypeOptionsResolutionResult.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResolutionResult.h>
#import <Intents/INCallRecordTypeOptions.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(11.0), watchos(4.0))
API_UNAVAILABLE(macosx)
@interface INCallRecordTypeOptionsResolutionResult : INIntentResolutionResult
// This resolution result is for when the app extension wants to tell Siri to proceed, with a given INCallRecordTypeOptions. The resolvedValue can be different than the original INCallRecordTypeOptions. This allows app extensions to apply business logic constraints.
// Use +notRequired to continue with a 'nil' value.
+ (instancetype)successWithResolvedCallRecordTypeOptions:(INCallRecordTypeOptions)resolvedCallRecordTypeOptions NS_SWIFT_NAME(success(with:));
+ (instancetype)successWithResolvedValue:(INCallRecordTypeOptions)resolvedValue NS_SWIFT_UNAVAILABLE("Please use 'success(with:)' instead.") API_DEPRECATED_WITH_REPLACEMENT("+successWithResolvedCallRecordTypeOptions:", ios(10.0, 11.0), watchos(3.2, 4.0));
// This resolution result is to ask Siri to confirm if this is the value with which the user wants to continue.
+ (instancetype)confirmationRequiredWithCallRecordTypeOptionsToConfirm:(INCallRecordTypeOptions)callRecordTypeOptionsToConfirm NS_SWIFT_NAME(confirmationRequired(with:));
+ (instancetype)confirmationRequiredWithValueToConfirm:(INCallRecordTypeOptions)valueToConfirm NS_SWIFT_UNAVAILABLE("Please use 'confirmationRequired(with:)' instead.") API_DEPRECATED_WITH_REPLACEMENT("+confirmationRequiredWithCallRecordTypeOptionsToConfirm:", ios(10.0, 11.0), watchos(3.2, 4.0));
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INDoubleResolutionResult.h
//
// INDoubleResolutionResult.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResolutionResult.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.0), watchos(3.2)) API_UNAVAILABLE(macosx)
@interface INDoubleResolutionResult : INIntentResolutionResult
// This resolution result is for when the app extension wants to tell Siri to proceed, with a given number. The resolvedValue can be different than the original number. This allows app extensions to apply business logic constraints. For example, the extension could precisely control rounding the value.
// Use +notRequired to continue with a 'nil' value.
+ (instancetype)successWithResolvedValue:(double)resolvedValue NS_SWIFT_NAME(success(with:));
// This resolution result is to ask Siri to confirm if this is the double value with which the user wants to continue.
+ (instancetype)confirmationRequiredWithValueToConfirm:(nullable NSNumber *)valueToConfirm NS_REFINED_FOR_SWIFT;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INCarDefroster.h
//
// INCarDefroster.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#ifndef INCarDefroster_h
#define INCarDefroster_h
#import <Foundation/Foundation.h>
#import <Intents/IntentsDefines.h>
typedef NS_ENUM(NSInteger, INCarDefroster) {
INCarDefrosterUnknown = 0,
INCarDefrosterFront,
INCarDefrosterRear,
INCarDefrosterAll,
} API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macosx);
#endif // INCarDefroster_h
// ========== Intents.framework/Headers/INMediaDestination.h
//
// INMediaDestination.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Intents/INMediaDestinationType.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(13.0), watchos(6.0))
API_UNAVAILABLE(macosx)
@interface INMediaDestination : NSObject <NSCopying, NSSecureCoding>
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)libraryDestination;
+ (instancetype)playlistDestinationWithName:(NSString *)playlistName;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INMediaDestinationType mediaDestinationType;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *playlistName;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INVisualCodeType.h
//
// INVisualCodeType.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#ifndef INVisualCodeType_h
#define INVisualCodeType_h
#import <Foundation/Foundation.h>
#import <Intents/IntentsDefines.h>
typedef NS_ENUM(NSInteger, INVisualCodeType) {
INVisualCodeTypeUnknown = 0,
INVisualCodeTypeContact,
INVisualCodeTypeRequestPayment,
INVisualCodeTypeSendPayment,
INVisualCodeTypeTransit API_AVAILABLE(ios(12.0), watchos(5.0)),
INVisualCodeTypeBus API_AVAILABLE(ios(12.0), watchos(5.0)),
INVisualCodeTypeSubway API_AVAILABLE(ios(12.0), watchos(5.0)),
} API_AVAILABLE(ios(11.0), watchos(4.0)) API_UNAVAILABLE(macosx);
#endif // INVisualCodeType_h
// ========== Intents.framework/Headers/INMessageAttributeResolutionResult.h
//
// INMessageAttributeResolutionResult.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResolutionResult.h>
#import <Intents/INMessageAttribute.h>
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.0), watchos(3.2))
API_UNAVAILABLE(macosx)
@interface INMessageAttributeResolutionResult : INIntentResolutionResult
// This resolution result is for when the app extension wants to tell Siri to proceed, with a given INMessageAttribute. The resolvedValue can be different than the original INMessageAttribute. This allows app extensions to apply business logic constraints.
// Use +notRequired to continue with a 'nil' value.
+ (instancetype)successWithResolvedMessageAttribute:(INMessageAttribute)resolvedMessageAttribute NS_SWIFT_NAME(success(with:));
+ (instancetype)successWithResolvedValue:(INMessageAttribute)resolvedValue NS_SWIFT_UNAVAILABLE("Please use 'success(with:)' instead.") API_DEPRECATED_WITH_REPLACEMENT("+successWithResolvedMessageAttribute:", ios(10.0, 11.0), watchos(3.2, 4.0));
// This resolution result is to ask Siri to confirm if this is the value with which the user wants to continue.
+ (instancetype)confirmationRequiredWithMessageAttributeToConfirm:(INMessageAttribute)messageAttributeToConfirm NS_SWIFT_NAME(confirmationRequired(with:));
+ (instancetype)confirmationRequiredWithValueToConfirm:(INMessageAttribute)valueToConfirm NS_SWIFT_UNAVAILABLE("Please use 'confirmationRequired(with:)' instead.") API_DEPRECATED_WITH_REPLACEMENT("+confirmationRequiredWithMessageAttributeToConfirm:", ios(10.0, 11.0), watchos(3.2, 4.0));
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INRelevantShortcut.h
//
// INRelevantShortcut.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INRelevanceProvider.h>
#import <Intents/INDefaultCardTemplate.h>
#import <Intents/INShortcut.h>
@class INShortcut;
NS_ASSUME_NONNULL_BEGIN
/*!
@abstract The role of the relevant shortcut.
@discussion Provides a hint to Siri about the expected user experience.
*/
typedef NS_ENUM(NSInteger, INRelevantShortcutRole) {
/*!
@abstract The relevant shortcut represents an action that the user may want to perform using your app.
*/
INRelevantShortcutRoleAction,
/*!
@abstract The relevant shortcut represents information that the user may want to glance at.
*/
INRelevantShortcutRoleInformation,
} API_AVAILABLE(ios(12.0), watchos(5.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(macosx);
/*!
@abstract Lets you provide relevant shortcut to Siri, for display on the Siri Watch Face.
@discussion Including relevance information allows Siri to make suggestions for shortcuts that the user might be interested in but has not previously performed.
*/
API_AVAILABLE(ios(12.0), watchos(5.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(macosx)
@interface INRelevantShortcut : NSObject <NSSecureCoding, NSCopying>
/*!
@abstract A collection of relevance information that is attached to the relevant shortcuts.
@discussion Providing additional relevance information allows Siri to suggest a shortcut that the user is interested in but has not previously performed.
@seealso INRelevanceProvider
*/
@property (copy, NS_NONATOMIC_IOSONLY) NSArray<INRelevanceProvider *> *relevanceProviders;
/*!
@abstract Customizes the display of the relevant shortcut on the Siri watch face.
@discussion By default, the UI for the relevant shortcut can be derivied from the information provided in the @c INShortcut. In certain situations, it may be desirable to override this behavior and provide a custom template.
@seealso INDefaultCardTemplate
*/
@property (copy, nullable, NS_NONATOMIC_IOSONLY) INDefaultCardTemplate *watchTemplate;
/*!
@abstract The role of the relevant shortcut.
@discussion Provides a hint to Siri about the expected user experience. The default is @c INRelevantShortcutRoleAction.
@seealso INRelevantShortcutRole
*/
@property (NS_NONATOMIC_IOSONLY) INRelevantShortcutRole shortcutRole;
/*!
@abstract The shortcut that will be performed when this relevant shortcut is invoked.
@seealso INShortcut
*/
@property (readonly, copy, NS_NONATOMIC_IOSONLY) INShortcut *shortcut;
/*!
@abstract Creates a relevant shortcut for the given shortcut.
*/
- (instancetype)initWithShortcut:(INShortcut *)shortcut NS_DESIGNATED_INITIALIZER;
/*!
@note Must be initilaized with a shortcut, using that initializer.
*/
- (instancetype)init NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INSaveProfileInCarIntentResponse.h
//
// INSaveProfileInCarIntentResponse.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResponse.h>
typedef NS_ENUM(NSInteger, INSaveProfileInCarIntentResponseCode) {
INSaveProfileInCarIntentResponseCodeUnspecified = 0,
INSaveProfileInCarIntentResponseCodeReady,
INSaveProfileInCarIntentResponseCodeInProgress,
INSaveProfileInCarIntentResponseCodeSuccess,
INSaveProfileInCarIntentResponseCodeFailure,
INSaveProfileInCarIntentResponseCodeFailureRequiringAppLaunch,
} API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos, macosx);
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.0))
API_UNAVAILABLE(watchos, macosx)
@interface INSaveProfileInCarIntentResponse : INIntentResponse
- (id)init NS_UNAVAILABLE;
// The app extension has the option of capturing its private state as an NSUserActivity and returning it as the 'currentActivity'.
// If the the app is launched, an NSUserActivity will be passed in with the private state. The NSUserActivity may also be used to query the app's UI extension (if provided) for a view controller representing the current intent handling state.
// In the case of app launch, the NSUserActivity will have its activityType set to the name of the intent. This intent object will also be available in the NSUserActivity.interaction property.
- (instancetype)initWithCode:(INSaveProfileInCarIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER;
@property (readonly, NS_NONATOMIC_IOSONLY) INSaveProfileInCarIntentResponseCode code;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INPlaybackQueueLocation.h
//
// INPlaybackQueueLocation.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#ifndef INPlaybackQueueLocation_h
#define INPlaybackQueueLocation_h
#import <Foundation/Foundation.h>
#import <Intents/IntentsDefines.h>
typedef NS_ENUM(NSInteger, INPlaybackQueueLocation) {
INPlaybackQueueLocationUnknown = 0,
INPlaybackQueueLocationNow,
INPlaybackQueueLocationNext,
INPlaybackQueueLocationLater,
} API_AVAILABLE(ios(13.0), watchos(6.0)) API_UNAVAILABLE(macosx);
#endif // INPlaybackQueueLocation_h
// ========== Intents.framework/Headers/INMediaSearch.h
//
// INMediaSearch.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Intents/INMediaItemType.h>
#import <Intents/INMediaReference.h>
#import <Intents/INMediaSortOrder.h>
@class INDateComponentsRange;
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(13.0), watchos(6.0))
API_UNAVAILABLE(macosx)
@interface INMediaSearch : NSObject <NSCopying, NSSecureCoding>
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithMediaType:(INMediaItemType)mediaType
sortOrder:(INMediaSortOrder)sortOrder
mediaName:(nullable NSString *)mediaName
artistName:(nullable NSString *)artistName
albumName:(nullable NSString *)albumName
genreNames:(nullable NSArray<NSString *> *)genreNames
moodNames:(nullable NSArray<NSString *> *)moodNames
activityNames:(nullable NSArray<NSString *> *)activityNames
releaseDate:(nullable INDateComponentsRange *)releaseDate
reference:(INMediaReference)reference
mediaIdentifier:(nullable NSString *)mediaIdentifier NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INMediaItemType mediaType;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INMediaSortOrder sortOrder;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *mediaName;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *artistName;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *albumName;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<NSString *> *genreNames;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<NSString *> *moodNames;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<NSString *> *activityNames;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INDateComponentsRange *releaseDate;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INMediaReference reference;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSString *mediaIdentifier;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INSetSeatSettingsInCarIntent_Deprecated.h
//
// INSetSeatSettingsInCarIntent_Deprecated.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INSetSeatSettingsInCarIntent.h>
NS_ASSUME_NONNULL_BEGIN
@interface INSetSeatSettingsInCarIntent (Deprecated)
- (instancetype)initWithEnableHeating:(nullable NSNumber *)enableHeating
enableCooling:(nullable NSNumber *)enableCooling
enableMassage:(nullable NSNumber *)enableMassage
seat:(INCarSeat)seat
level:(nullable NSNumber *)level
relativeLevelSetting:(INRelativeSetting)relativeLevelSetting API_DEPRECATED_WITH_REPLACEMENT("-initWithEnableHeating:enableCooling:enableMassage:seat:level:relativeLevelSetting:relativeLevelSetting:carName:", ios(10.0, 12.0)) NS_REFINED_FOR_SWIFT;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INGetCarPowerLevelStatusIntentResponse.h
//
// INGetCarPowerLevelStatusIntentResponse.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResponse.h>
typedef NS_ENUM(NSInteger, INGetCarPowerLevelStatusIntentResponseCode) {
INGetCarPowerLevelStatusIntentResponseCodeUnspecified = 0,
INGetCarPowerLevelStatusIntentResponseCodeReady,
INGetCarPowerLevelStatusIntentResponseCodeInProgress,
INGetCarPowerLevelStatusIntentResponseCodeSuccess,
INGetCarPowerLevelStatusIntentResponseCodeFailure,
INGetCarPowerLevelStatusIntentResponseCodeFailureRequiringAppLaunch,
} API_AVAILABLE(ios(10.3), watchos(3.2)) API_UNAVAILABLE(macosx);
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.3), watchos(3.2))
API_UNAVAILABLE(macosx)
@interface INGetCarPowerLevelStatusIntentResponse : INIntentResponse
- (id)init NS_UNAVAILABLE;
// The app extension has the option of capturing its private state as an NSUserActivity and returning it as the 'currentActivity'.
// If the the app is launched, an NSUserActivity will be passed in with the private state. The NSUserActivity may also be used to query the app's UI extension (if provided) for a view controller representing the current intent handling state.
// In the case of app launch, the NSUserActivity will have its activityType set to the name of the intent. This intent object will also be available in the NSUserActivity.interaction property.
- (instancetype)initWithCode:(INGetCarPowerLevelStatusIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER;
@property (readonly, NS_NONATOMIC_IOSONLY) INGetCarPowerLevelStatusIntentResponseCode code;
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *fuelPercentRemaining NS_REFINED_FOR_SWIFT;
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *chargePercentRemaining NS_REFINED_FOR_SWIFT;
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSMeasurement<NSUnitLength *> *distanceRemaining;
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *charging NS_REFINED_FOR_SWIFT API_AVAILABLE(ios(12.0), watchos(5.0));
@property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSNumber *minutesToFull NS_REFINED_FOR_SWIFT API_AVAILABLE(ios(12.0), watchos(5.0));
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INIntents.h
//
// INIntents.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INSearchCallHistoryIntent.h>
#import <Intents/INStartAudioCallIntent.h>
#import <Intents/INStartCallIntent.h>
#import <Intents/INStartVideoCallIntent.h>
#import <Intents/INActivateCarSignalIntent.h>
#import <Intents/INGetCarLockStatusIntent.h>
#import <Intents/INGetCarPowerLevelStatusIntent.h>
#import <Intents/INSaveProfileInCarIntent.h>
#import <Intents/INSetAudioSourceInCarIntent.h>
#import <Intents/INSetCarLockStatusIntent.h>
#import <Intents/INSetClimateSettingsInCarIntent.h>
#import <Intents/INSetDefrosterSettingsInCarIntent.h>
#import <Intents/INSetProfileInCarIntent.h>
#import <Intents/INSetSeatSettingsInCarIntent.h>
#import <Intents/INCancelWorkoutIntent.h>
#import <Intents/INEndWorkoutIntent.h>
#import <Intents/INPauseWorkoutIntent.h>
#import <Intents/INResumeWorkoutIntent.h>
#import <Intents/INStartWorkoutIntent.h>
#import <Intents/INAddMediaIntent.h>
#import <Intents/INPlayMediaIntent.h>
#import <Intents/INSearchForMediaIntent.h>
#import <Intents/INUpdateMediaAffinityIntent.h>
#import <Intents/INSetRadioStationIntent.h>
#import <Intents/INSearchForMessagesIntent.h>
#import <Intents/INSendMessageIntent.h>
#import <Intents/INSetMessageAttributeIntent.h>
#import <Intents/INAddTasksIntent.h>
#import <Intents/INAppendToNoteIntent.h>
#import <Intents/INCreateNoteIntent.h>
#import <Intents/INCreateTaskListIntent.h>
#import <Intents/INDeleteTasksIntent.h>
#import <Intents/INSearchForNotebookItemsIntent.h>
#import <Intents/INSetTaskAttributeIntent.h>
#import <Intents/INSnoozeTasksIntent.h>
#import <Intents/INPayBillIntent.h>
#import <Intents/INRequestPaymentIntent.h>
#import <Intents/INSearchForAccountsIntent.h>
#import <Intents/INSearchForBillsIntent.h>
#import <Intents/INSendPaymentIntent.h>
#import <Intents/INTransferMoneyIntent.h>
#import <Intents/INSearchForPhotosIntent.h>
#import <Intents/INStartPhotoPlaybackIntent.h>
#import <Intents/INGetReservationDetailsIntent.h>
#import <Intents/INGetRideStatusIntent.h>
#import <Intents/INListRideOptionsIntent.h>
#import <Intents/INRequestRideIntent.h>
#import <Intents/INCancelRideIntent.h>
#import <Intents/INSendRideFeedbackIntent.h>
#import <Intents/INGetVisualCodeIntent.h>
// ========== Intents.framework/Headers/INSendRideFeedbackIntentResponse.h
//
// INSendRideFeedbackIntentResponse.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResponse.h>
typedef NS_ENUM(NSInteger, INSendRideFeedbackIntentResponseCode) {
INSendRideFeedbackIntentResponseCodeUnspecified = 0,
INSendRideFeedbackIntentResponseCodeReady,
INSendRideFeedbackIntentResponseCodeSuccess,
INSendRideFeedbackIntentResponseCodeFailure,
} API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos);
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(11.0))
API_UNAVAILABLE(watchos, macos)
@interface INSendRideFeedbackIntentResponse : INIntentResponse
- (id)init NS_UNAVAILABLE;
// The app extension has the option of capturing its private state as an NSUserActivity and returning it as the 'currentActivity'.
// If the the app is launched, an NSUserActivity will be passed in with the private state. The NSUserActivity may also be used to query the app's UI extension (if provided) for a view controller representing the current intent handling state.
// In the case of app launch, the NSUserActivity will have its activityType set to the name of the intent. This intent object will also be available in the NSUserActivity.interaction property.
- (instancetype)initWithCode:(INSendRideFeedbackIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER;
@property (readonly, NS_NONATOMIC_IOSONLY) INSendRideFeedbackIntentResponseCode code;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INSearchForMessagesIntent_Deprecated.h
//
// INRequestRideIntent_Deprecated.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INSearchForMessagesIntent.h>
NS_ASSUME_NONNULL_BEGIN
@interface INSearchForMessagesIntent (DeprecatedSearchForMessages)
- (instancetype)initWithRecipients:(nullable NSArray<INPerson *> *)recipients
senders:(nullable NSArray<INPerson *> *)senders
searchTerms:(nullable NSArray<NSString *> *)searchTerms
attributes:(INMessageAttributeOptions)attributes
dateTimeRange:(nullable INDateComponentsRange *)dateTimeRange
identifiers:(nullable NSArray<NSString *> *)identifiers
notificationIdentifiers:(nullable NSArray<NSString *> *)notificationIdentifiers
groupNames:(nullable NSArray<NSString *> *)groupNames API_DEPRECATED("Use the designated initializer instead", ios(10.0, 11.0), watchos(3.2, 4.0), macosx(10.12, 10.13));
- (instancetype)initWithRecipients:(nullable NSArray<INPerson *> *)recipients
senders:(nullable NSArray<INPerson *> *)senders
searchTerms:(nullable NSArray<NSString *> *)searchTerms
attributes:(INMessageAttributeOptions)attributes
dateTimeRange:(nullable INDateComponentsRange *)dateTimeRange
identifiers:(nullable NSArray<NSString *> *)identifiers
notificationIdentifiers:(nullable NSArray<NSString *> *)notificationIdentifiers
speakableGroupNames:(nullable NSArray<INSpeakableString *> *)speakableGroupNames API_DEPRECATED("Use the designated initializer instead", ios(11.0, 12.0), watchos(4.0, 5.0), macosx(10.13, 10.14));
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<NSString *> *groupNames API_DEPRECATED("Use speakableGroupNames instead", ios(10.0, 11.0), watchos(3.2, 4.0), macosx(10.12, 10.13));
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INConditionalOperator groupNamesOperator API_DEPRECATED("Use speakableGroupNamesOperator instead", ios(10.0, 11.0), watchos(3.2, 4.0), macosx(10.12, 10.13));
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INCarSeat.h
//
// INCarSeat.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#ifndef INCarSeat_h
#define INCarSeat_h
#import <Foundation/Foundation.h>
#import <Intents/IntentsDefines.h>
typedef NS_ENUM(NSInteger, INCarSeat) {
INCarSeatUnknown = 0,
INCarSeatDriver,
INCarSeatPassenger,
INCarSeatFrontLeft,
INCarSeatFrontRight,
INCarSeatFront,
INCarSeatRearLeft,
INCarSeatRearRight,
INCarSeatRear,
INCarSeatThirdRowLeft,
INCarSeatThirdRowRight,
INCarSeatThirdRow,
INCarSeatAll,
} API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(macosx);
#endif // INCarSeat_h
// ========== Intents.framework/Headers/INMediaAffinityType.h
//
// INMediaAffinityType.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#ifndef INMediaAffinityType_h
#define INMediaAffinityType_h
#import <Foundation/Foundation.h>
#import <Intents/IntentsDefines.h>
typedef NS_ENUM(NSInteger, INMediaAffinityType) {
INMediaAffinityTypeUnknown = 0,
INMediaAffinityTypeLike,
INMediaAffinityTypeDislike,
} API_AVAILABLE(ios(13.0), watchos(6.0)) API_UNAVAILABLE(macosx);
#endif // INMediaAffinityType_h
// ========== Intents.framework/Headers/INSetDefrosterSettingsInCarIntentResponse.h
//
// INSetDefrosterSettingsInCarIntentResponse.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntentResponse.h>
typedef NS_ENUM(NSInteger, INSetDefrosterSettingsInCarIntentResponseCode) {
INSetDefrosterSettingsInCarIntentResponseCodeUnspecified = 0,
INSetDefrosterSettingsInCarIntentResponseCodeReady,
INSetDefrosterSettingsInCarIntentResponseCodeInProgress,
INSetDefrosterSettingsInCarIntentResponseCodeSuccess,
INSetDefrosterSettingsInCarIntentResponseCodeFailure,
INSetDefrosterSettingsInCarIntentResponseCodeFailureRequiringAppLaunch,
} API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(watchos, macosx);
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(10.0))
API_UNAVAILABLE(watchos, macosx)
@interface INSetDefrosterSettingsInCarIntentResponse : INIntentResponse
- (id)init NS_UNAVAILABLE;
// The app extension has the option of capturing its private state as an NSUserActivity and returning it as the 'currentActivity'.
// If the the app is launched, an NSUserActivity will be passed in with the private state. The NSUserActivity may also be used to query the app's UI extension (if provided) for a view controller representing the current intent handling state.
// In the case of app launch, the NSUserActivity will have its activityType set to the name of the intent. This intent object will also be available in the NSUserActivity.interaction property.
- (instancetype)initWithCode:(INSetDefrosterSettingsInCarIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER;
@property (readonly, NS_NONATOMIC_IOSONLY) INSetDefrosterSettingsInCarIntentResponseCode code;
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INStartCallIntent.h
//
// INStartCallIntent.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntent.h>
#import <Intents/INIntentResolutionResult.h>
#import <Intents/INCallAudioRoute.h>
#import <Intents/INCallCapability.h>
#import <Intents/INCallDestinationType.h>
@class INCallCapabilityResolutionResult;
@class INCallDestinationTypeResolutionResult;
@class INPerson;
@class INPersonResolutionResult;
@class INStartCallCallCapabilityResolutionResult;
@class INStartCallContactResolutionResult;
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(13.0), watchos(6.0))
API_UNAVAILABLE(macosx)
@interface INStartCallIntent : INIntent
- (instancetype)initWithAudioRoute:(INCallAudioRoute)audioRoute
destinationType:(INCallDestinationType)destinationType
contacts:(nullable NSArray<INPerson *> *)contacts
callCapability:(INCallCapability)callCapability NS_DESIGNATED_INITIALIZER;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INCallAudioRoute audioRoute;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INCallDestinationType destinationType;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<INPerson *> *contacts;
@property (readonly, assign, NS_NONATOMIC_IOSONLY) INCallCapability callCapability;
@end
@class INStartCallIntentResponse;
/*!
@abstract Protocol to declare support for handling an INStartCallIntent. By implementing this protocol, a class can provide logic for resolving, confirming and handling the intent.
@discussion The minimum requirement for an implementing class is that it should be able to handle the intent. The resolution and confirmation methods are optional. The handling method is always called last, after resolving and confirming the intent.
*/
API_AVAILABLE(ios(13.0), watchos(6.0))
API_UNAVAILABLE(macosx)
@protocol INStartCallIntentHandling <NSObject>
@required
/*!
@abstract Handling method - Execute the task represented by the INStartCallIntent that's passed in
@discussion Called to actually execute the intent. The app must return a response for this intent.
@param intent The input intent
@param completion The response handling block takes a INStartCallIntentResponse containing the details of the result of having executed the intent
@see INStartCallIntentResponse
*/
- (void)handleStartCall:(INStartCallIntent *)intent
completion:(void (^)(INStartCallIntentResponse *response))completion NS_SWIFT_NAME(handle(intent:completion:));
@optional
/*!
@abstract Confirmation method - Validate that this intent is ready for the next step (i.e. handling)
@discussion Called prior to asking the app to handle the intent. The app should return a response object that contains additional information about the intent, which may be relevant for the system to show the user prior to handling. If unimplemented, the system will assume the intent is valid following resolution, and will assume there is no additional information relevant to this intent.
@param intent The input intent
@param completion The response block contains an INStartCallIntentResponse containing additional details about the intent that may be relevant for the system to show the user prior to handling.
@see INStartCallIntentResponse
*/
- (void)confirmStartCall:(INStartCallIntent *)intent
completion:(void (^)(INStartCallIntentResponse *response))completion NS_SWIFT_NAME(confirm(intent:completion:));
/*!
@abstract Resolution methods - Determine if this intent is ready for the next step (confirmation)
@discussion Called to make sure the app extension is capable of handling this intent in its current form. This method is for validating if the intent needs any further fleshing out.
@param intent The input intent
@param completion The response block contains an INIntentResolutionResult for the parameter being resolved
@see INIntentResolutionResult
*/
- (void)resolveDestinationTypeForStartCall:(INStartCallIntent *)intent
withCompletion:(void (^)(INCallDestinationTypeResolutionResult *resolutionResult))completion NS_SWIFT_NAME(resolveDestinationType(for:with:));
- (void)resolveContactsForStartCall:(INStartCallIntent *)intent
withCompletion:(void (^)(NSArray<INStartCallContactResolutionResult *> *resolutionResults))completion NS_SWIFT_NAME(resolveContacts(for:with:));
- (void)resolveCallCapabilityForStartCall:(INStartCallIntent *)intent
withCompletion:(void (^)(INStartCallCallCapabilityResolutionResult *resolutionResult))completion NS_SWIFT_NAME(resolveCallCapability(for:with:));
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INAddMediaIntent.h
//
// INAddMediaIntent.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntent.h>
#import <Intents/INIntentResolutionResult.h>
@class INAddMediaMediaDestinationResolutionResult;
@class INAddMediaMediaItemResolutionResult;
@class INMediaDestination;
@class INMediaDestinationResolutionResult;
@class INMediaItem;
@class INMediaItemResolutionResult;
@class INMediaSearch;
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(13.0), watchos(6.0))
API_UNAVAILABLE(macosx)
@interface INAddMediaIntent : INIntent
- (instancetype)initWithMediaItems:(nullable NSArray<INMediaItem *> *)mediaItems
mediaSearch:(nullable INMediaSearch *)mediaSearch
mediaDestination:(nullable INMediaDestination *)mediaDestination NS_DESIGNATED_INITIALIZER;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) NSArray<INMediaItem *> *mediaItems;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INMediaSearch *mediaSearch;
@property (readonly, copy, nullable, NS_NONATOMIC_IOSONLY) INMediaDestination *mediaDestination;
@end
@class INAddMediaIntentResponse;
/*!
@abstract Protocol to declare support for handling an INAddMediaIntent. By implementing this protocol, a class can provide logic for resolving, confirming and handling the intent.
@discussion The minimum requirement for an implementing class is that it should be able to handle the intent. The resolution and confirmation methods are optional. The handling method is always called last, after resolving and confirming the intent.
*/
API_AVAILABLE(ios(13.0), watchos(6.0))
API_UNAVAILABLE(macosx)
@protocol INAddMediaIntentHandling <NSObject>
@required
/*!
@abstract Handling method - Execute the task represented by the INAddMediaIntent that's passed in
@discussion Called to actually execute the intent. The app must return a response for this intent.
@param intent The input intent
@param completion The response handling block takes a INAddMediaIntentResponse containing the details of the result of having executed the intent
@see INAddMediaIntentResponse
*/
- (void)handleAddMedia:(INAddMediaIntent *)intent
completion:(void (^)(INAddMediaIntentResponse *response))completion NS_SWIFT_NAME(handle(intent:completion:));
@optional
/*!
@abstract Confirmation method - Validate that this intent is ready for the next step (i.e. handling)
@discussion Called prior to asking the app to handle the intent. The app should return a response object that contains additional information about the intent, which may be relevant for the system to show the user prior to handling. If unimplemented, the system will assume the intent is valid following resolution, and will assume there is no additional information relevant to this intent.
@param intent The input intent
@param completion The response block contains an INAddMediaIntentResponse containing additional details about the intent that may be relevant for the system to show the user prior to handling.
@see INAddMediaIntentResponse
*/
- (void)confirmAddMedia:(INAddMediaIntent *)intent
completion:(void (^)(INAddMediaIntentResponse *response))completion NS_SWIFT_NAME(confirm(intent:completion:));
/*!
@abstract Resolution methods - Determine if this intent is ready for the next step (confirmation)
@discussion Called to make sure the app extension is capable of handling this intent in its current form. This method is for validating if the intent needs any further fleshing out.
@param intent The input intent
@param completion The response block contains an INIntentResolutionResult for the parameter being resolved
@see INIntentResolutionResult
*/
- (void)resolveMediaItemsForAddMedia:(INAddMediaIntent *)intent
withCompletion:(void (^)(NSArray<INAddMediaMediaItemResolutionResult *> *resolutionResults))completion NS_SWIFT_NAME(resolveMediaItems(for:with:));
- (void)resolveMediaDestinationForAddMedia:(INAddMediaIntent *)intent
withCompletion:(void (^)(INAddMediaMediaDestinationResolutionResult *resolutionResult))completion NS_SWIFT_NAME(resolveMediaDestination(for:with:));
@end
NS_ASSUME_NONNULL_END
// ========== Intents.framework/Headers/INStartAudioCallIntent.h
//
// INStartAudioCallIntent.h
// Intents
//
// Copyright (c) 2016-2019 Apple Inc. All rights reserved.
//
#import <Intents/INIntent.h>
#import <Intents/INIntentResolutionResult.h>
#import <Intents/INCallDestinationType.h>