forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApiDefinition.cs
4472 lines (3491 loc) · 175 KB
/
ApiDefinition.cs
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
using System;
using ObjCRuntime;
using Foundation;
using UIKit;
using CoreGraphics;
using SessionOptions = Foundation.NSDictionary<Foundation.NSString, Foundation.INSCoding>;
namespace Google.Cast {
[Static]
interface Common {
[Field ("kGCKFrameworkVersion", "__Internal")]
NSString FrameworkVersion { get; }
// extern NSString *const kGCKThreadException __attribute__((visibility("default")));
[Field ("kGCKThreadException", "__Internal")]
NSString ThreadException { get; }
[Field ("kGCKInvalidRequestID", "__Internal")]
nint InvalidRequestId { get; }
}
// @interface GCKAdBreakClipVastAdsRequest : NSObject <NSCopying, NSSecureCoding>
[Obsolete ("Use the VASTAdsRequest class instead.")]
[BaseType (typeof (NSObject), Name = "GCKAdBreakClipVastAdsRequest")]
interface AdBreakClipVastAdsRequest : INSCopying, INSSecureCoding { }
// @interface GCKAdBreakClipInfo : NSObject <NSCopying>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKAdBreakClipInfo")]
interface AdBreakClipInfo : INSCopying, INSSecureCoding {
// @property (readonly, copy, nonatomic) NSString * _Nonnull adBreakClipID;
[Export ("adBreakClipID", ArgumentSemantic.Strong)]
string AdBreakClipId { get; }
// @property (readonly, assign, nonatomic) NSTimeInterval duration;
[Export ("duration")]
double Duration { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable title;
[NullAllowed]
[Export ("title", ArgumentSemantic.Strong)]
string Title { get; }
// @property (readonly, copy, nonatomic) NSURL * _Nullable clickThroughURL;
[NullAllowed]
[Export ("clickThroughURL", ArgumentSemantic.Strong)]
NSUrl ClickThroughUrl { get; }
// @property (readonly, copy, nonatomic) NSURL * _Nullable contentURL;
[NullAllowed]
[Export ("contentURL", ArgumentSemantic.Strong)]
NSUrl ContentUrl { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable mimeType;
[NullAllowed]
[Export ("mimeType", ArgumentSemantic.Strong)]
string MimeType { get; }
// @property(nonatomic, strong, readonly, GCK_NULLABLE) NSString *contentID;
[NullAllowed]
[Export ("contentID", ArgumentSemantic.Strong)]
string ContentId { get; }
// @property(nonatomic, strong, readonly, GCK_NULLABLE) NSURL *posterURL;
[NullAllowed]
[Export ("posterURL", ArgumentSemantic.Strong)]
NSUrl PosterUrl { get; }
// @property(nonatomic, assign, readonly) NSTimeInterval whenSkippable;
[Export ("whenSkippable")]
double WhenSkippable { get; }
// @property(nonatomic, assign, readonly) GCKHLSSegmentFormat hlsSegmentFormat;
[Export ("hlsSegmentFormat")]
HlsSegmentFormat HlsSegmentFormat { get; }
// @property (readonly, nonatomic) GCKVASTAdsRequest * _Nullable vastAdsRequest;
[NullAllowed]
[Export ("vastAdsRequest")]
VASTAdsRequest VastAdsRequest { get; }
// @property (readonly, nonatomic, strong) id _Nullable customData;
[NullAllowed]
[Export ("customData", ArgumentSemantic.Strong)]
NSObject CustomData { get; }
}
// @interface GCKAdBreakClipInfoBuilder : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKAdBreakClipInfoBuilder")]
interface AdBreakClipInfoBuilder {
// @property (copy, nonatomic) NSString * _Nonnull adBreakClipID;
[Export ("adBreakClipID")]
string AdBreakClipId { get; set; }
// @property (nonatomic) NSTimeInterval duration;
[Export ("duration")]
double Duration { get; set; }
// @property (copy, nonatomic) NSString * _Nullable title;
[NullAllowed]
[Export ("title")]
string Title { get; set; }
// @property (copy, nonatomic) NSURL * _Nullable clickThroughURL;
[NullAllowed]
[Export ("clickThroughURL", ArgumentSemantic.Copy)]
NSUrl ClickThroughUrl { get; set; }
// @property (copy, nonatomic) NSURL * _Nullable contentURL;
[NullAllowed]
[Export ("contentURL", ArgumentSemantic.Copy)]
NSUrl ContentUrl { get; set; }
// @property (copy, nonatomic) NSString * _Nullable mimeType;
[NullAllowed]
[Export ("mimeType")]
string MimeType { get; set; }
// @property (copy, nonatomic) NSString * _Nullable contentID;
[NullAllowed]
[Export ("contentID")]
string ContentId { get; set; }
// @property (copy, nonatomic) NSURL * _Nullable posterURL;
[NullAllowed]
[Export ("posterURL", ArgumentSemantic.Copy)]
NSUrl PosterUrl { get; set; }
// @property (nonatomic) NSTimeInterval whenSkippable;
[Export ("whenSkippable")]
double WhenSkippable { get; set; }
// @property (nonatomic) GCKHLSSegmentFormat hlsSegmentFormat;
[Export ("hlsSegmentFormat", ArgumentSemantic.Assign)]
HlsSegmentFormat HlsSegmentFormat { get; set; }
// @property (nonatomic) GCKVASTAdsRequest * _Nullable vastAdsRequest;
[NullAllowed]
[Export ("vastAdsRequest", ArgumentSemantic.Assign)]
VASTAdsRequest VastAdsRequest { get; set; }
// @property (nonatomic) id _Nullable customData;
[NullAllowed]
[Export ("customData", ArgumentSemantic.Assign)]
NSObject CustomData { get; set; }
// -(instancetype _Nonnull)initWithAdBreakClipInfo:(GCKAdBreakClipInfo * _Nonnull)adBreakClipInfo;
[Export ("initWithAdBreakClipInfo:")]
IntPtr Constructor (AdBreakClipInfo adBreakClipInfo);
// -(instancetype _Nonnull)initWithAdBreakClipID:(NSString * _Nonnull)adBreakClipID __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithAdBreakClipID:")]
IntPtr Constructor (string adBreakClipId);
// -(GCKAdBreakClipInfo * _Nonnull)build;
[Export ("build")]
AdBreakClipInfo Build ();
}
// @interface GCKAdBreakInfoBuilder : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKAdBreakInfoBuilder")]
interface AdBreakInfoBuilder {
// @property (copy, nonatomic) NSString * _Nonnull adBreakID;
[Export ("adBreakID")]
string AdBreakId { get; set; }
// @property (assign, nonatomic) NSTimeInterval playbackPosition;
[Export ("playbackPosition")]
double PlaybackPosition { get; set; }
// @property (copy, nonatomic) NSArray<NSString *> * _Nullable adBreakClipIDs;
[NullAllowed]
[Export ("adBreakClipIDs", ArgumentSemantic.Copy)]
string [] AdBreakClipIds { get; set; }
// @property (assign, nonatomic) BOOL watched;
[Export ("watched")]
bool Watched { get; set; }
// @property (assign, nonatomic) BOOL embedded;
[Export ("embedded")]
bool Embedded { get; set; }
// -(instancetype _Nonnull)initWithAdBreakInfo:(GCKAdBreakInfo * _Nonnull)adBreakInfo;
[Export ("initWithAdBreakInfo:")]
IntPtr Constructor (AdBreakInfo adBreakInfo);
// -(instancetype _Nonnull)initWithAdBreakID:(NSString * _Nonnull)adBreakID adBreakClipIds:(NSArray<NSString *> * _Nullable)adBreakClipIDs __attribute__((objc_designated_initializer));
[DesignatedInitializer]
[Export ("initWithAdBreakID:adBreakClipIds:")]
IntPtr Constructor (string adBreakId, [NullAllowed] string [] adBreakClipIds);
// -(GCKAdBreakInfo * _Nonnull)build;
[Export ("build")]
AdBreakInfo Build ();
}
// @interface GCKAdBreakInfo : NSObject <NSCopying>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKAdBreakInfo")]
interface AdBreakInfo : INSCopying, INSSecureCoding {
// @property (readonly, copy, nonatomic) NSString * _Nonnull adBreakID;
[Export ("adBreakID", ArgumentSemantic.Strong)]
string AdBreakId { get; }
// @property (readonly, assign, nonatomic) NSTimeInterval playbackPosition;
[Export ("playbackPosition")]
double PlaybackPosition { get; }
// @property (readonly, assign, nonatomic) BOOL watched;
[Export ("watched")]
bool Watched { get; }
// @property (readonly, nonatomic, strong) NSArray<NSString *> * _Nonnull adBreakClipIDs;
[Export ("adBreakClipIDs", ArgumentSemantic.Strong)]
string [] AdBreakClipIds { get; }
// @property(nonatomic, assign, readonly) BOOL embedded;
[Export ("embedded")]
bool Embedded { get; }
// -(instancetype _Nonnull)initWithPlaybackPosition:(NSTimeInterval)playbackPosition;
[Obsolete ("Use the AdBreakInfoBuilder class to initialize AdBreakInfos")]
[Export ("initWithPlaybackPosition:")]
IntPtr Constructor (double playbackPosition);
}
// @interface GCKAdBreakStatus : NSObject <NSCopying>
[BaseType (typeof (NSObject), Name = "GCKAdBreakStatus")]
interface AdBreakStatus : INSCopying {
// @property (readonly, assign, nonatomic) NSTimeInterval currentAdBreakTime;
[Export ("currentAdBreakTime")]
double CurrentAdBreakTime { get; }
// @property (readonly, assign, nonatomic) NSTimeInterval currentAdBreakClipTime;
[Export ("currentAdBreakClipTime")]
double CurrentAdBreakClipTime { get; }
// @property (readonly, assign, nonatomic) NSTimeInterval whenSkippable;
[Export("whenSkippable")]
double WhenSkippable { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull adBreakID;
[Export ("adBreakID", ArgumentSemantic.Strong)]
string AdBreakId { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull adBreakClipID;
[Export ("adBreakClipID", ArgumentSemantic.Strong)]
string AdBreakClipId { get; }
}
[BaseType (typeof (NSObject), Name = "GCKApplicationMetadata")]
interface ApplicationMetadata : INSCopying {
[Export ("applicationID", ArgumentSemantic.Copy)]
string ApplicationId { get; }
[Export ("applicationName", ArgumentSemantic.Copy)]
string ApplicationName { get; }
[Obsolete ("Use IconUrl property instead.")]
[NullAllowed]
[Export ("images", ArgumentSemantic.Copy)]
Image [] Images { get; }
// @property (readonly, copy, nonatomic) NSURL * _Nullable iconURL;
[NullAllowed]
[Export ("iconURL", ArgumentSemantic.Copy)]
NSUrl IconUrl { get; }
[NullAllowed]
[Export ("namespaces", ArgumentSemantic.Copy)]
string [] Namespaces { get; }
[NullAllowed]
[Export ("senderApplicationInfo", ArgumentSemantic.Copy)]
SenderApplicationInfo SenderApplicationInfo { get; }
[NullAllowed]
[Export ("senderAppIdentifier")]
string SenderAppIdentifier { get; }
[NullAllowed]
[Export ("senderAppLaunchURL")]
NSUrl SenderAppLaunchUrl { get; }
}
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKCastChannel")]
interface CastChannel {
[Field ("kGCKInvalidRequestID", "__Internal")]
nint InvalidRequestId { get; }
[Export ("protocolNamespace", ArgumentSemantic.Copy)]
string ProtocolNamespace { get; }
[Export ("isConnected", ArgumentSemantic.Assign)]
bool IsConnected { get; }
// @property(nonatomic, assign, readonly) BOOL isWritable;
[Export ("isWritable", ArgumentSemantic.Assign)]
bool IsWritable { get; }
[Export ("initWithNamespace:")]
IntPtr Constructor (string protocolNamespace);
[Export ("didReceiveTextMessage:")]
void DidReceiveTextMessage (string message);
// - (BOOL)sendTextMessage:(NSString *)message error:(GCKError **)error;
[Export ("sendTextMessage:error:")]
bool SendTextMessage (string message, out Error error);
[Export ("generateRequestID")]
nint GenerateRequestId ();
[return: NullAllowed]
[Export ("generateRequestNumber")]
NSNumber GenerateRequestNumber ();
[Export ("didConnect")]
void DidConnect ();
[Export ("didDisconnect")]
void DidDisconnect ();
// - (void)didChangeWritableState:(BOOL)isWritable;
[Export ("didChangeWritableState:")]
void DidChangeWritableState (bool isWritable);
}
interface CastStateDidChangeDidChangeEventArgs {
[Export ("kGCKNotificationKeyCastState")]
CastState CastState { get; }
}
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKCastContext")]
interface CastContext {
// extern NSString *const _Nonnull kGCKNotificationKeyCastState __attribute__((visibility("default")));
[Field ("kGCKNotificationKeyCastState", "__Internal")]
NSString NotificationKeyCastState { get; }
// extern NSString *const _Nonnull kGCKCastStateDidChangeNotification __attribute__((visibility("default")));
[Notification (typeof (CastStateDidChangeDidChangeEventArgs))]
[Field ("kGCKCastStateDidChangeNotification", "__Internal")]
NSString CastStateDidChangeNotification { get; }
// @property (readonly, assign, nonatomic) GCKCastState castState;
[Export ("castState", ArgumentSemantic.Assign)]
CastState CastState { get; }
// @property (readonly, nonatomic, strong) GCKDiscoveryManager * _Nonnull discoveryManager;
[Export ("discoveryManager", ArgumentSemantic.Strong)]
DiscoveryManager DiscoveryManager { get; }
// @property (readonly, nonatomic, strong) GCKSessionManager * _Nonnull sessionManager;
[Export ("sessionManager", ArgumentSemantic.Strong)]
SessionManager SessionManager { get; }
// +(void)setSharedInstanceWithOptions:(GCKCastOptions * _Nonnull)options;
[Static]
[Export ("setSharedInstanceWithOptions:")]
void SetSharedInstance (CastOptions options);
// + (BOOL)setSharedInstanceWithOptions:(GCKCastOptions *)options error:(GCKError* GCK_NULLABLE_TYPE * GCK_NULLABLE_TYPE)error;
[Static]
[Export ("setSharedInstanceWithOptions:error:")]
void SetSharedInstance (CastOptions options, out NSError error);
// + (instancetype) sharedInstance
[Static]
[Export ("sharedInstance")]
CastContext SharedInstance { get; }
// +(BOOL) isSharedInstanceInitialized
[Static]
[Export ("isSharedInstanceInitialized")]
bool IsSharedInstanceInitialized { get; }
// -(void)registerDeviceProvider:(GCKDeviceProvider * _Nonnull)deviceProvider;
[Export ("registerDeviceProvider:")]
void RegisterDeviceProvider (DeviceProvider deviceProvider);
// -(void)unregisterDeviceProviderForCategory:(NSString * _Nonnull)category;
[Export ("unregisterDeviceProviderForCategory:")]
void UnregisterDeviceProviderForCategory (string category);
////////////////////////////////////
/// From Category CastContext_UI ///
////////////////////////////////////
// GCK_EXTERN NSString *const kGCKExpandedMediaControlsTriggeredNotification;
[Notification]
[Field ("kGCKExpandedMediaControlsTriggeredNotification", "__Internal")]
NSString ExpandedMediaControlsTriggeredNotification { get; }
// GCK_EXTERN NSString *const kGCKUICastDialogWillShowNotification;
[Notification]
[Field ("kGCKUICastDialogWillShowNotification", "__Internal")]
NSString UICastDialogWillShowNotification { get; }
// GCK_EXTERN NSString *const kGCKUICastDialogDidHideNotification;
[Notification]
[Field ("kGCKUICastDialogDidHideNotification", "__Internal")]
NSString UICastDialogDidHideNotification { get; }
// @property (nonatomic, strong, readwrite, GCK_NULLABLE) id<GCKUIImageCache> imageCache;
[NullAllowed]
[Export ("imageCache", ArgumentSemantic.Strong)]
IUIImageCache ImageCache { get; set; }
// @property(nonatomic, strong, readwrite, GCK_NULLABLE) id<GCKUIImagePicker> imagePicker;
[NullAllowed]
[Export ("imagePicker", ArgumentSemantic.Strong)]
IUIImagePicker ImagePicker { get; set; }
// @property(nonatomic, assign, readwrite) BOOL useDefaultExpandedMediaControls;
[Export ("useDefaultExpandedMediaControls", ArgumentSemantic.Assign)]
bool UseDefaultExpandedMediaControls { get; set; }
// @property(nonatomic, strong, readonly) GCKUIExpandedMediaControlsViewController* defaultExpandedMediaControlsViewController;
[Export ("defaultExpandedMediaControlsViewController", ArgumentSemantic.Assign)]
UIExpandedMediaControlsViewController DefaultExpandedMediaControlsViewController { get; }
}
[Category]
[BaseType (typeof (CastContext))]
interface CastContext_UI {
// - (void)presentCastDialog;
[Export ("presentCastDialog")]
void PresentCastDialog ();
// - (GCKUICastContainerViewController *)createCastContainerControllerForViewController:(UIViewController*)viewController;
[Export ("createCastContainerControllerForViewController:")]
UICastContainerViewController CreateCastContainerController (UIViewController viewController);
// - (GCKUIMiniMediaControlsViewController *)createMiniMediaControlsViewController;
[Export ("createMiniMediaControlsViewController")]
UIMiniMediaControlsViewController CreateMiniMediaControlsViewController ();
// - (BOOL) presentCastInstructionsViewControllerOnce GCK_DEPRECATED ("Use presentCastInstructionsViewControllerOnceWithCastButton:");
[Obsolete ("Use PresentCastInstructionsViewControllerOnce overloaded method instead.")]
[Export ("presentCastInstructionsViewControllerOnce")]
bool PresentCastInstructionsViewControllerOnce ();
// -(BOOL)presentCastInstructionsViewControllerOnceWithCastButton:(GCKUICastButton * _Nonnull)castButton;
[Export ("presentCastInstructionsViewControllerOnceWithCastButton:")]
bool PresentCastInstructionsViewControllerOnce (UICastButton castButton);
// - (void)clearCastInstructionsShownFlag;
[Export ("clearCastInstructionsShownFlag")]
void ClearCastInstructionsShownFlag ();
// - (void)presentDefaultExpandedMediaControls;
[Export ("presentDefaultExpandedMediaControls")]
void PresentDefaultExpandedMediaControls ();
}
// @interface GCKCastOptions : NSObject <NSCopying>
[BaseType (typeof (NSObject), Name = "GCKCastOptions")]
interface CastOptions : INSCopying, INSSecureCoding {
// -(instancetype _Nonnull)initWithDiscoveryCriteria:(GCKDiscoveryCriteria * _Nonnull)discoveryCriteria;
[Export ("initWithDiscoveryCriteria:")]
IntPtr Constructor (DiscoveryCriteria discoveryCriteria);
// -(instancetype _Nonnull)initWithReceiverApplicationID:(NSString * _Nonnull)applicationID;
[Obsolete ("Use Constructor (DiscoveryCriteria) overload instead.")]
[Export ("initWithReceiverApplicationID:")]
IntPtr Constructor (string applicationId);
// -(instancetype _Nonnull)initWithSupportedNamespaces:(NSArray<NSString *> * _Nonnull)namespaces;
[Obsolete ("Use Constructor (DiscoveryCriteria) overload instead.")]
[Export ("initWithSupportedNamespaces:")]
IntPtr Constructor (string [] namespaces);
// @property (assign, readwrite, nonatomic) BOOL physicalVolumeButtonsWillControlDeviceVolume;
[Export ("physicalVolumeButtonsWillControlDeviceVolume")]
bool PhysicalVolumeButtonsWillControlDeviceVolume { get; set; }
// @property (nonatomic, assign, readwrite) BOOL disableDiscoveryAutostart;
[Export ("disableDiscoveryAutostart")]
bool DisableDiscoveryAutostart { get; set; }
// @property (assign, readwrite, nonatomic) BOOL disableAnalyticsLogging;
[Export ("disableAnalyticsLogging")]
bool DisableAnalyticsLogging { get; set; }
// @property (readwrite, copy, nonatomic) GCKLaunchOptions * _Nullable launchOptions;
[NullAllowed]
[Export ("launchOptions", ArgumentSemantic.Copy)]
LaunchOptions LaunchOptions { get; set; }
// @property (readwrite, copy, nonatomic) NSString * _Nullable sharedContainerIdentifier;
[NullAllowed]
[Export ("sharedContainerIdentifier")]
string SharedContainerIdentifier { get; set; }
// @property(nonatomic, assign, readwrite) BOOL suspendSessionsWhenBackgrounded;
[Export ("suspendSessionsWhenBackgrounded")]
bool SuspendSessionsWhenBackgrounded { get; set; }
// @property (assign, readwrite, nonatomic) BOOL stopReceiverApplicationWhenEndingSession;
[Export ("stopReceiverApplicationWhenEndingSession")]
bool StopReceiverApplicationWhenEndingSession { get; set; }
}
// @interface GCKCastSession : GCKSession
[BaseType (typeof (Session), Name = "GCKCastSession")]
interface CastSession {
// @property (readonly, assign, nonatomic) GCKActiveInputStatus activeInputStatus;
[Export ("activeInputStatus", ArgumentSemantic.Assign)]
ActiveInputStatus ActiveInputStatus { get; }
// @property (readonly, assign, nonatomic) GCKStandbyStatus standbyStatus;
[Export ("standbyStatus", ArgumentSemantic.Assign)]
StandbyStatus StandbyStatus { get; }
// @property (readonly, copy, nonatomic) GCKApplicationMetadata * _Nullable applicationMetadata;
[NullAllowed]
[Export ("applicationMetadata", ArgumentSemantic.Copy)]
ApplicationMetadata ApplicationMetadata { get; }
// -(instancetype _Nonnull)initWithDevice:(GCKDevice * _Nonnull)device sessionID:(NSString * _Nullable)sessionID sessionOptions:(GCKSessionOptions * _Nullable)sessionOptions castOptions:(GCKCastOptions * _Nonnull)castOptions;
[Export ("initWithDevice:sessionID:sessionOptions:castOptions:")]
IntPtr Constructor (Device device, [NullAllowed] string sessionId, [NullAllowed] SessionOptions sessionOptions, CastOptions castOptions);
// -(BOOL)addChannel:(GCKCastChannel * _Nonnull)channel;
[Export ("addChannel:")]
bool AddChannel (CastChannel channel);
// -(BOOL)removeChannel:(GCKCastChannel * _Nonnull)channel;
[Export ("removeChannel:")]
bool RemoveChannel (CastChannel channel);
// -(void)addDeviceStatusListener:(id<GCKCastDeviceStatusListener> _Nonnull)listener;
[Export ("addDeviceStatusListener:")]
void AddDeviceStatusListener (ICastDeviceStatusListener listener);
// -(void)removeDeviceStatusListener:(id<GCKCastDeviceStatusListener> _Nonnull)listener;
[Export ("removeDeviceStatusListener:")]
void RemoveDeviceStatusListener (ICastDeviceStatusListener listener);
// -(GCKRequest * _Nonnull)setDeviceVolume:(float)volume forMultizoneDevice:(GCKMultizoneDevice * _Nonnull)device;
[Export ("setDeviceVolume:forMultizoneDevice:")]
Request SetDeviceVolume (float volume, MultizoneDevice device);
// -(GCKRequest * _Nonnull)setDeviceMuted:(BOOL)muted forMultizoneDevice:(GCKMultizoneDevice * _Nonnull)device;
[Export ("setDeviceMuted:forMultizoneDevice:")]
Request SetDeviceMuted (bool muted, MultizoneDevice device);
// -(GCKRequest * _Nonnull)requestMultizoneStatus;
[return: NullAllowed]
[Export ("requestMultizoneStatus")]
Request RequestMultizoneStatus ();
}
interface ICastDeviceStatusListener {
}
// @protocol GCKCastDeviceStatusListener <NSObject>
[Model (AutoGeneratedName = true)]
[Protocol]
[BaseType (typeof (NSObject), Name = "GCKCastDeviceStatusListener")]
interface CastDeviceStatusListener {
// @optional -(void)castSession:(GCKCastSession * _Nonnull)castSession didReceiveActiveInputStatus:(GCKActiveInputStatus)activeInputStatus;
[Export ("castSession:didReceiveActiveInputStatus:")]
void DidReceiveActiveInputStatus (CastSession castSession, ActiveInputStatus activeInputStatus);
// @optional -(void)castSession:(GCKCastSession * _Nonnull)castSession didReceiveStandbyStatus:(GCKStandbyStatus)standbyStatus;
[Export ("castSession:didReceiveStandbyStatus:")]
void DidReceiveStandbyStatus (CastSession castSession, StandbyStatus standbyStatus);
// @optional -(void)castSession:(GCKCastSession * _Nonnull)castSession didReceiveMultizoneStatus:(GCKMultizoneStatus * _Nonnull)multizoneStatus;
[Export ("castSession:didReceiveMultizoneStatus:")]
void DidReceiveMultizoneStatus (CastSession castSession, MultizoneStatus multizoneStatus);
// @optional -(void)castSession:(GCKCastSession * _Nonnull)castSession didAddMultizoneDevice:(GCKMultizoneDevice * _Nonnull)device;
[Export ("castSession:didAddMultizoneDevice:")]
void DidAddMultizoneDevice (CastSession castSession, MultizoneDevice device);
// @optional -(void)castSession:(GCKCastSession * _Nonnull)castSession didUpdateMultizoneDevice:(GCKMultizoneDevice * _Nonnull)device;
[Export ("castSession:didUpdateMultizoneDevice:")]
void DidUpdateMultizoneDevice (CastSession castSession, MultizoneDevice device);
// @optional -(void)castSession:(GCKCastSession * _Nonnull)castSession didRemoveMultizoneDeviceWithID:(NSString * _Nonnull)deviceID;
[Export ("castSession:didRemoveMultizoneDeviceWithID:")]
void DidRemoveMultizoneDevice (CastSession castSession, string deviceId);
}
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKColor")]
interface Color : INSCopying, INSSecureCoding {
[Export ("red")]
nfloat Red { get; }
[Export ("green")]
nfloat Green { get; }
[Export ("blue")]
nfloat Blue { get; }
[Export ("alpha")]
nfloat Alpha { get; }
[Export ("initWithRed:green:blue:alpha:")]
IntPtr Constructor (nfloat red, nfloat green, nfloat blue, nfloat alpha);
[Export ("initWithRed:green:blue:")]
IntPtr Constructor (nfloat red, nfloat green, nfloat blue);
[Export ("initWithUIColor:")]
IntPtr Constructor (UIColor color);
[Export ("initWithCGColor:")]
IntPtr Constructor (CGColor color);
// -(instancetype _Nonnull)initWithCGColor:(CGColorRef _Nonnull)color alpha:(CGFloat)alpha;
[Export ("initWithCGColor:alpha:")]
IntPtr Constructor (CGColor color, nfloat alpha);
[Export ("initWithCSSString:")]
IntPtr Constructor (string cssString);
[Export ("CSSString")]
string CSSString { get; }
[Static]
[Export ("black")]
Color GetBlack ();
[Static]
[Export ("red")]
Color GetRed ();
[Static]
[Export ("green")]
Color GetGreen ();
[Static]
[Export ("blue")]
Color GetBlue ();
[Static]
[Export ("cyan")]
Color GetCyan ();
[Static]
[Export ("magenta")]
Color GetMagenta ();
[Static]
[Export ("yellow")]
Color GetYellow ();
[Static]
[Export ("white")]
Color GetWhite ();
}
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKDevice")]
interface Device : INSCopying, INSSecureCoding {
// extern NSString *const _Nonnull kGCKCastDeviceCategory __attribute__((visibility("default")));
[Field ("kGCKCastDeviceCategory", "__Internal")]
NSString CastDeviceCategory { get; }
[Obsolete ("Use NetworkAddress for both IPv4 and IPv6 support.")]
[Export ("ipAddress", ArgumentSemantic.Copy)]
string IpAddress { get; }
// @property(nonatomic, copy, readonly) GCKNetworkAddress *networkAddress;
[Export ("networkAddress", ArgumentSemantic.Copy)]
NetworkAddress NetworkAddress { get; }
[Export ("servicePort")]
ushort ServicePort { get; }
[Export ("deviceID", ArgumentSemantic.Copy)]
string DeviceId { get; }
[NullAllowed]
[Export ("friendlyName", ArgumentSemantic.Copy)]
string FriendlyName { get; set; }
[NullAllowed]
[Export ("modelName", ArgumentSemantic.Copy)]
string ModelName { get; set; }
[NullAllowed]
[Export ("icons", ArgumentSemantic.Copy)]
Image [] Icons { get; set; }
[Export ("status")]
DeviceStatus Status { get; set; }
[NullAllowed]
[Export ("statusText", ArgumentSemantic.Copy)]
string StatusText { get; set; }
[NullAllowed]
[Export ("deviceVersion", ArgumentSemantic.Copy)]
string DeviceVersion { get; set; }
[Export ("isOnLocalNetwork")]
bool IsOnLocalNetwork { get; }
// @property(nonatomic, assign, readonly) GCKDeviceType type;
[Export ("type")]
DeviceType Type { get; }
// @property (nonatomic, copy, readonly) NSString* category;
[Export ("category", ArgumentSemantic.Copy)]
string Category { get; }
// @property (readonly, copy, nonatomic) NSString * _Nonnull uniqueID;
[Export ("uniqueID")]
string UniqueId { get; }
[Export ("isSameDeviceAs:")]
bool SameDevice (Device device);
[Export ("hasCapabilities:")]
bool HasCapabilities (DeviceCapabilities deviceCapabilities);
[Obsolete ("Use HasCapabilities (DeviceCapabilities) overload method instead. This will be removed in future versions.")]
[Wrap ("HasCapabilities ((DeviceCapabilities)(long)deviceCapabilities)")]
bool HasCapabilities (nint deviceCapabilities);
[Export ("setAttribute:forKey:")]
void SetAttribute (INSSecureCoding attribute, string key);
[return: NullAllowed]
[Export ("attributeForKey:")]
INSSecureCoding GetAttribute (string key);
[Export ("removeAttributeForKey:")]
void RemoveAttribute (string key);
// - (void)removeAllAttributes;
[Export ("removeAllAttributes")]
void RemoveAllAttributes ();
// +(NSString * _Nonnull)deviceCategoryForDeviceUniqueID:(NSString * _Nonnull)deviceUniqueID;
[Static]
[Export ("deviceCategoryForDeviceUniqueID:")]
string GetDeviceCategory (string deviceUniqueId);
}
// @interface GCKDeviceProvider : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKDeviceProvider")]
interface DeviceProvider {
// @property (readonly, copy, nonatomic) NSString * _Nonnull deviceCategory;
[Export ("deviceCategory")]
string DeviceCategory { get; }
// @property (assign, readwrite, nonatomic) BOOL passiveScan;
[Export ("passiveScan")]
bool PassiveScan { get; set; }
// @property (readonly, copy, nonatomic) NSArray<GCKDevice *> * _Nonnull devices;
[Export ("devices", ArgumentSemantic.Copy)]
Device [] Devices { get; }
// -(instancetype _Nonnull)initWithDeviceCategory:(NSString * _Nonnull)deviceCategory;
[DesignatedInitializer]
[Export ("initWithDeviceCategory:")]
IntPtr Constructor (string deviceCategory);
// -(void)startDiscovery;
[Export ("startDiscovery")]
void StartDiscovery ();
// -(void)stopDiscovery;
[Export ("stopDiscovery")]
void StopDiscovery ();
// -(GCKSession * _Nonnull)createSessionForDevice:(GCKDevice * _Nonnull)device sessionID:(NSString * _Nullable)sessionID sessionOptions:(GCKSessionOptions * _Nullable)sessionOptions;
[Export ("createSessionForDevice:sessionID:sessionOptions:")]
Session CreateSession (Device device, [NullAllowed] string sessionId, [NullAllowed] SessionOptions sessionOptions);
// -(GCKSession * _Nonnull)createSessionForDevice:(GCKDevice * _Nonnull)device sessionID:(NSString * _Nullable)sessionID;
[Obsolete ("Use CreateSession method instead.")]
[Export ("createSessionForDevice:sessionID:")]
Session CreateSessionForDevice (Device device, [NullAllowed] string sessionId);
}
// @interface Protected (GCKDeviceProvider)
[Category]
[BaseType (typeof (DeviceProvider))]
interface DeviceProvider_Protected {
// -(void)notifyDidStartDiscovery;
[Export ("notifyDidStartDiscovery")]
void NotifyDidStartDiscovery ();
// -(void)notifyDidPublishDevice:(GCKDevice * _Nonnull)device;
[Export ("notifyDidPublishDevice:")]
void NotifyDidPublishDevice (Device device);
// -(void)notifyDidUnpublishDevice:(GCKDevice * _Nonnull)device;
[Export ("notifyDidUnpublishDevice:")]
void NotifyDidUnpublishDevice (Device device);
// -(void)notifyDidUpdateDevice:(GCKDevice * _Nonnull)device;
[Export ("notifyDidUpdateDevice:")]
void NotifyDidUpdateDevice (Device device);
// -(GCKDevice * _Nonnull)createDeviceWithID:(NSString * _Nonnull)deviceID ipAddress:(NSString * _Nonnull)ipAddress servicePort:(uint16_t)servicePort;
[Obsolete ("Use createDeviceWithID:networkAddress:servicePort: for IPv4 and IPv6 support.")]
[Export ("createDeviceWithID:ipAddress:servicePort:")]
Device CreateDevice (string deviceId, string ipAddress, ushort servicePort);
// - (GCKDevice *)createDeviceWithID:(NSString *)deviceID networkAddress:(GCKNetworkAddress*)networkAddress servicePort:(uint16_t)servicePort;
[Export ("createDeviceWithID:networkAddress:servicePort:")]
Device CreateDevice (string deviceId, NetworkAddress networkAddress, ushort servicePort);
}
// @interface GCKDiscoveryCriteria : NSObject <NSCopying, NSSecureCoding>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKDiscoveryCriteria")]
interface DiscoveryCriteria : INSCopying, INSSecureCoding {
// extern NSString *const _Nonnull kGCKDefaultMediaReceiverApplicationID __attribute__((visibility("default")));
[Field ("kGCKDefaultMediaReceiverApplicationID", "__Internal")]
NSString DefaultMediaReceiverApplicationId { get; }
// @property (readonly, nonatomic, strong) NSOrderedSet<NSString *> * _Nullable applicationIDs;
[NullAllowed]
[Export ("applicationIDs", ArgumentSemantic.Strong)]
NSOrderedSet<NSString> ApplicationIds { get; }
// @property (readonly, assign, nonatomic) BOOL hasApplicationIDs;
[Export ("hasApplicationIDs")]
bool HasApplicationIds { get; }
// @property (readonly, nonatomic, strong) NSSet<NSString *> * _Nullable namespaces;
[NullAllowed]
[Export ("namespaces", ArgumentSemantic.Strong)]
NSSet<NSString> Namespaces { get; }
// @property (readonly, assign, nonatomic) BOOL hasNamespaces;
[Export ("hasNamespaces")]
bool HasNamespaces { get; }
// @property (readonly, nonatomic, strong) NSSet<NSString *> * _Nonnull allSubtypes;
[Export ("allSubtypes", ArgumentSemantic.Strong)]
NSSet<NSString> AllSubtypes { get; }
// -(instancetype _Nonnull)initWithApplicationID:(NSString * _Nonnull)applicationID;
[Export ("initWithApplicationID:")]
IntPtr Constructor (string applicationId);
// -(instancetype _Nonnull)initWithNamespaces:(NSSet<NSString *> * _Nonnull)namespaces;
[Internal]
[Export ("initWithNamespaces:")]
IntPtr _InitWithNamespaces (NSSet<NSString> namespaces);
}
// @interface GCKDiscoveryManager : NSObject
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKDiscoveryManager")]
interface DiscoveryManager {
// extern NSString *const _Nonnull kGCKKeyHasDiscoveredDevices __attribute__((visibility("default")));
[Field ("kGCKKeyHasDiscoveredDevices", "__Internal")]
NSString KeyHasDiscoveredDevices { get; }
// @property (readonly, assign, nonatomic) GCKDiscoveryState discoveryState;
[Export ("discoveryState", ArgumentSemantic.Assign)]
DiscoveryState DiscoveryState { get; }
// @property (readonly, assign, nonatomic) BOOL hasDiscoveredDevices;
[Export ("hasDiscoveredDevices")]
bool HasDiscoveredDevices { get; }
// @property (assign, readwrite, nonatomic) BOOL passiveScan;
[Export ("passiveScan")]
bool PassiveScan { get; set; }
// @property(nonatomic, assign, readonly) BOOL discoveryActive;
[Export ("discoveryActive")]
bool DiscoveryActive { get; }
// @property (readonly, assign, nonatomic) NSUInteger deviceCount;
[Export ("deviceCount")]
nuint DeviceCount { get; }
// -(void)addListener:(id<GCKDiscoveryManagerListener> _Nonnull)listener;
[Export ("addListener:")]
void AddListener (IDiscoveryManagerListener listener);
// -(void)removeListener:(id<GCKDiscoveryManagerListener> _Nonnull)listener;
[Export ("removeListener:")]
void RemoveListener (IDiscoveryManagerListener listener);
// -(void)startDiscovery;
[Export ("startDiscovery")]
void StartDiscovery ();
// -(void)stopDiscovery;
[Export ("stopDiscovery")]
void StopDiscovery ();
// -(BOOL)isDiscoveryActiveForDeviceCategory:(NSString * _Nonnull)deviceCategory;
[Export ("isDiscoveryActiveForDeviceCategory:")]
bool IsDiscoveryActiveForDeviceCategory (string deviceCategory);
// -(GCKDevice * _Nonnull)deviceAtIndex:(NSUInteger)index;
[Export ("deviceAtIndex:")]
Device GetDevice (nuint index);
// -(GCKDevice * _Nullable)deviceWithUniqueID:(NSString * _Nonnull)uniqueID;
[return: NullAllowed]
[Export ("deviceWithUniqueID:")]
Device GetDevice (string uniqueId);
// -(void)findDeviceWithUniqueID:(NSString * _Nonnull)uniqueID timeout:(NSTimeInterval)timeout completion:(void (^ _Nonnull)(GCKDevice * _Nonnull))completion;
[Async]
[Export ("findDeviceWithUniqueID:timeout:completion:")]
void FindDevice (string uniqueId, double timeout, Action<Device> completion);
// -(void)cancelFindOperation;
[Export ("cancelFindOperation")]
void CancelFindOperation ();
}
interface IDiscoveryManagerListener {
}
// @protocol GCKDiscoveryManagerListener <NSObject>
[Model (AutoGeneratedName = true)]
[Protocol]
[BaseType (typeof (NSObject), Name = "GCKDiscoveryManagerListener")]
interface DiscoveryManagerListener {
// @optional -(void)didStartDiscoveryForDeviceCategory:(NSString * _Nonnull)deviceCategory;
[Export ("didStartDiscoveryForDeviceCategory:")]
void DidStartDiscoveryForDeviceCategory (string deviceCategory);
// @optional -(void)willUpdateDeviceList;
[Export ("willUpdateDeviceList")]
void WillUpdateDeviceList ();
// @optional -(void)didUpdateDeviceList;
[Export ("didUpdateDeviceList")]
void DidUpdateDeviceList ();
// @optional -(void)didInsertDevice:(GCKDevice * _Nonnull)device atIndex:(NSUInteger)index;
[Export ("didInsertDevice:atIndex:")]
void DidInsertDevice (Device device, nuint index);
// @optional -(void)didUpdateDevice:(GCKDevice * _Nonnull)device atIndex:(NSUInteger)index;
[Export ("didUpdateDevice:atIndex:")]
void DidUpdateDevice (Device device, nuint index);
// @optional -(void)didUpdateDevice:(GCKDevice * _Nonnull)device atIndex:(NSUInteger)index andMoveToIndex:(NSUInteger)newIndex;
[Export ("didUpdateDevice:atIndex:andMoveToIndex:")]
void DidUpdateDevice (Device device, nuint index, nuint newIndex);
// @optional -(void)didRemoveDeviceAtIndex:(NSUInteger)index;
[Export ("didRemoveDeviceAtIndex:")]
void DidRemoveDevice (nuint index);
// @optional - (void)didRemoveDevice:(GCKDevice *)device atIndex:(NSUInteger)index;
[Export ("didRemoveDevice:atIndex:")]
void DidRemoveDevice (Device device, nuint index);
// @optional -(void)didHaveDiscoveredDeviceWhenStartingDiscovery;
[Export ("didHaveDiscoveredDeviceWhenStartingDiscovery")]
void DidHaveDiscoveredDeviceWhenStartingDiscovery ();
}
// @interface GCKDynamicDevice : NSObject <NSCopying, NSSecureCoding>
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "GCKDynamicDevice")]
interface DynamicDevice : INSCopying, INSSecureCoding {
// @property (readonly, copy, nonatomic) NSString * _Nonnull deviceID;
[Export ("deviceID")]
string DeviceId { get; }
// @property (readonly, copy, nonatomic) NSString * _Nullable friendlyName;
[NullAllowed]
[Export ("friendlyName")]
string FriendlyName { get; }
// @property (readonly, assign, nonatomic) GCKDeviceCapabilities capabilities;
[Export ("capabilities", ArgumentSemantic.Assign)]
DeviceCapabilities Capabilities { get; }
// -(BOOL)hasCapabilities:(GCKDeviceCapabilities)deviceCapabilities;
[Export ("hasCapabilities:")]
bool HasCapabilities (DeviceCapabilities deviceCapabilities);
}
[DisableDefaultCtor]