forked from FMXExpress/ios-object-pascal-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiOSapi.MobileCoreServices.pas
975 lines (814 loc) · 26 KB
/
iOSapi.MobileCoreServices.pas
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
{ *********************************************************** }
{ }
{ CodeGear Delphi Runtime Library }
{ }
{ Copyright(c) 2012-2014 Embarcadero Technologies, Inc. }
{ }
{ *********************************************************** }
//
// Delphi-Objective-C Bridge
// Interfaces for Cocoa framework MobileCoreServices
//
unit iOSapi.MobileCoreServices;
interface
uses
Macapi.CoreFoundation,
Macapi.CoreServices,
Macapi.Dispatch,
Macapi.Foundation,
Macapi.Mach,
Macapi.ObjCRuntime,
Macapi.ObjectiveC,
Macapi.QuartzCore,
iOSapi.CocoaTypes,
iOSapi.Foundation;
type
// ===== Framework typedefs =====
{$M+}
CFStringRef = Pointer;
CFArrayRef = Pointer;
Boolean = Byte;
CFDictionaryRef = Pointer;
CFURLRef = Pointer;
FourCharCode = UInt32;
OSType = FourCharCode;
// ===== Exported string consts =====
function kUTTypeItem: Pointer;
function kUTTypeContent: Pointer;
function kUTTypeCompositeContent: Pointer;
function kUTTypeMessage: Pointer;
function kUTTypeContact: Pointer;
function kUTTypeArchive: Pointer;
function kUTTypeDiskImage: Pointer;
function kUTTypeData: Pointer;
function kUTTypeDirectory: Pointer;
function kUTTypeResolvable: Pointer;
function kUTTypeSymLink: Pointer;
function kUTTypeExecutable: Pointer;
function kUTTypeMountPoint: Pointer;
function kUTTypeAliasFile: Pointer;
function kUTTypeAliasRecord: Pointer;
function kUTTypeURLBookmarkData: Pointer;
function kUTTypeURL: Pointer;
function kUTTypeFileURL: Pointer;
function kUTTypeText: Pointer;
function kUTTypePlainText: Pointer;
function kUTTypeUTF8PlainText: Pointer;
function kUTTypeUTF16ExternalPlainText: Pointer;
function kUTTypeUTF16PlainText: Pointer;
function kUTTypeDelimitedText: Pointer;
function kUTTypeCommaSeparatedText: Pointer;
function kUTTypeTabSeparatedText: Pointer;
function kUTTypeUTF8TabSeparatedText: Pointer;
function kUTTypeRTF: Pointer;
function kUTTypeHTML: Pointer;
function kUTTypeXML: Pointer;
function kUTTypeSourceCode: Pointer;
function kUTTypeAssemblyLanguageSource: Pointer;
function kUTTypeCSource: Pointer;
function kUTTypeObjectiveCSource: Pointer;
function kUTTypeSwiftSource: Pointer;
function kUTTypeCPlusPlusSource: Pointer;
function kUTTypeObjectiveCPlusPlusSource: Pointer;
function kUTTypeCHeader: Pointer;
function kUTTypeCPlusPlusHeader: Pointer;
function kUTTypeJavaSource: Pointer;
function kUTTypeScript: Pointer;
function kUTTypeAppleScript: Pointer;
function kUTTypeOSAScript: Pointer;
function kUTTypeOSAScriptBundle: Pointer;
function kUTTypeJavaScript: Pointer;
function kUTTypeShellScript: Pointer;
function kUTTypePerlScript: Pointer;
function kUTTypePythonScript: Pointer;
function kUTTypeRubyScript: Pointer;
function kUTTypePHPScript: Pointer;
function kUTTypeJSON: Pointer;
function kUTTypePropertyList: Pointer;
function kUTTypeXMLPropertyList: Pointer;
function kUTTypeBinaryPropertyList: Pointer;
function kUTTypePDF: Pointer;
function kUTTypeRTFD: Pointer;
function kUTTypeFlatRTFD: Pointer;
function kUTTypeTXNTextAndMultimediaData: Pointer;
function kUTTypeWebArchive: Pointer;
function kUTTypeImage: Pointer;
function kUTTypeJPEG: Pointer;
function kUTTypeJPEG2000: Pointer;
function kUTTypeTIFF: Pointer;
function kUTTypePICT: Pointer;
function kUTTypeGIF: Pointer;
function kUTTypePNG: Pointer;
function kUTTypeQuickTimeImage: Pointer;
function kUTTypeAppleICNS: Pointer;
function kUTTypeBMP: Pointer;
function kUTTypeICO: Pointer;
function kUTTypeRawImage: Pointer;
function kUTTypeScalableVectorGraphics: Pointer;
function kUTTypeLivePhoto: Pointer;
function kUTTypeAudiovisualContent: Pointer;
function kUTTypeMovie: Pointer;
function kUTTypeVideo: Pointer;
function kUTTypeAudio: Pointer;
function kUTTypeQuickTimeMovie: Pointer;
function kUTTypeMPEG: Pointer;
function kUTTypeMPEG2Video: Pointer;
function kUTTypeMPEG2TransportStream: Pointer;
function kUTTypeMP3: Pointer;
function kUTTypeMPEG4: Pointer;
function kUTTypeMPEG4Audio: Pointer;
function kUTTypeAppleProtectedMPEG4Audio: Pointer;
function kUTTypeAppleProtectedMPEG4Video: Pointer;
function kUTTypeAVIMovie: Pointer;
function kUTTypeAudioInterchangeFileFormat: Pointer;
function kUTTypeWaveformAudio: Pointer;
function kUTTypeMIDIAudio: Pointer;
function kUTTypePlaylist: Pointer;
function kUTTypeM3UPlaylist: Pointer;
function kUTTypeFolder: Pointer;
function kUTTypeVolume: Pointer;
function kUTTypePackage: Pointer;
function kUTTypeBundle: Pointer;
function kUTTypePluginBundle: Pointer;
function kUTTypeSpotlightImporter: Pointer;
function kUTTypeQuickLookGenerator: Pointer;
function kUTTypeXPCService: Pointer;
function kUTTypeFramework: Pointer;
function kUTTypeApplication: Pointer;
function kUTTypeApplicationBundle: Pointer;
function kUTTypeApplicationFile: Pointer;
function kUTTypeUnixExecutable: Pointer;
function kUTTypeWindowsExecutable: Pointer;
function kUTTypeJavaClass: Pointer;
function kUTTypeJavaArchive: Pointer;
function kUTTypeSystemPreferencesPane: Pointer;
function kUTTypeGNUZipArchive: Pointer;
function kUTTypeBzip2Archive: Pointer;
function kUTTypeZipArchive: Pointer;
function kUTTypeSpreadsheet: Pointer;
function kUTTypePresentation: Pointer;
function kUTTypeDatabase: Pointer;
function kUTTypeVCard: Pointer;
function kUTTypeToDoItem: Pointer;
function kUTTypeCalendarEvent: Pointer;
function kUTTypeEmailMessage: Pointer;
function kUTTypeInternetLocation: Pointer;
function kUTTypeInkText: Pointer;
function kUTTypeFont: Pointer;
function kUTTypeBookmark: Pointer;
function kUTType3DContent: Pointer;
function kUTTypePKCS12: Pointer;
function kUTTypeX509Certificate: Pointer;
function kUTTypeElectronicPublication: Pointer;
function kUTTypeLog: Pointer;
function kUTExportedTypeDeclarationsKey: Pointer;
function kUTImportedTypeDeclarationsKey: Pointer;
function kUTTypeIdentifierKey: Pointer;
function kUTTypeTagSpecificationKey: Pointer;
function kUTTypeConformsToKey: Pointer;
function kUTTypeDescriptionKey: Pointer;
function kUTTypeIconFileKey: Pointer;
function kUTTypeReferenceURLKey: Pointer;
function kUTTypeVersionKey: Pointer;
function kUTTagClassFilenameExtension: Pointer;
function kUTTagClassMIMEType: Pointer;
function kUTTagClassNSPboardType: Pointer;
function kUTTagClassOSType: Pointer;
// ===== External functions =====
const
libMobileCoreServices =
'/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices';
function UTTypeCreatePreferredIdentifierForTag(inTagClass: CFStringRef;
inTag: CFStringRef; inConformingToUTI: CFStringRef): CFStringRef; cdecl;
external libMobileCoreServices name _PU +
'UTTypeCreatePreferredIdentifierForTag';
function UTTypeCreateAllIdentifiersForTag(inTagClass: CFStringRef;
inTag: CFStringRef; inConformingToUTI: CFStringRef): CFArrayRef; cdecl;
external libMobileCoreServices name _PU + 'UTTypeCreateAllIdentifiersForTag';
function UTTypeCopyPreferredTagWithClass(inUTI: CFStringRef;
inTagClass: CFStringRef): CFStringRef; cdecl;
external libMobileCoreServices name _PU + 'UTTypeCopyPreferredTagWithClass';
function UTTypeCopyAllTagsWithClass(inUTI: CFStringRef; inTagClass: CFStringRef)
: CFArrayRef; cdecl; external libMobileCoreServices name _PU +
'UTTypeCopyAllTagsWithClass';
function UTTypeEqual(inUTI1: CFStringRef; inUTI2: CFStringRef): Boolean; cdecl;
external libMobileCoreServices name _PU + 'UTTypeEqual';
function UTTypeConformsTo(inUTI: CFStringRef; inConformsToUTI: CFStringRef)
: Boolean; cdecl; external libMobileCoreServices name _PU +
'UTTypeConformsTo';
function UTTypeCopyDescription(inUTI: CFStringRef): CFStringRef; cdecl;
external libMobileCoreServices name _PU + 'UTTypeCopyDescription';
function UTTypeIsDeclared(inUTI: CFStringRef): Boolean; cdecl;
external libMobileCoreServices name _PU + 'UTTypeIsDeclared';
function UTTypeIsDynamic(inUTI: CFStringRef): Boolean; cdecl;
external libMobileCoreServices name _PU + 'UTTypeIsDynamic';
function UTTypeCopyDeclaration(inUTI: CFStringRef): CFDictionaryRef; cdecl;
external libMobileCoreServices name _PU + 'UTTypeCopyDeclaration';
function UTTypeCopyDeclaringBundleURL(inUTI: CFStringRef): CFURLRef; cdecl;
external libMobileCoreServices name _PU + 'UTTypeCopyDeclaringBundleURL';
function UTCreateStringForOSType(inOSType: OSType): CFStringRef; cdecl;
external libMobileCoreServices name _PU + 'UTCreateStringForOSType';
function UTGetOSTypeFromString(inString: CFStringRef): OSType; cdecl;
external libMobileCoreServices name _PU + 'UTGetOSTypeFromString';
implementation
{$IF defined(IOS) and NOT defined(CPUARM)}
uses
Posix.Dlfcn;
var
MobileCoreServicesModule: THandle;
{$ENDIF IOS}
function kUTTypeItem: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeItem');
end;
function kUTTypeContent: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeContent');
end;
function kUTTypeCompositeContent: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeCompositeContent');
end;
function kUTTypeMessage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMessage');
end;
function kUTTypeContact: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeContact');
end;
function kUTTypeArchive: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeArchive');
end;
function kUTTypeDiskImage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeDiskImage');
end;
function kUTTypeData: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeData');
end;
function kUTTypeDirectory: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeDirectory');
end;
function kUTTypeResolvable: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeResolvable');
end;
function kUTTypeSymLink: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeSymLink');
end;
function kUTTypeExecutable: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeExecutable');
end;
function kUTTypeMountPoint: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMountPoint');
end;
function kUTTypeAliasFile: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeAliasFile');
end;
function kUTTypeAliasRecord: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeAliasRecord');
end;
function kUTTypeURLBookmarkData: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeURLBookmarkData');
end;
function kUTTypeURL: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeURL');
end;
function kUTTypeFileURL: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeFileURL');
end;
function kUTTypeText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeText');
end;
function kUTTypePlainText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePlainText');
end;
function kUTTypeUTF8PlainText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeUTF8PlainText');
end;
function kUTTypeUTF16ExternalPlainText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeUTF16ExternalPlainText');
end;
function kUTTypeUTF16PlainText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeUTF16PlainText');
end;
function kUTTypeDelimitedText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeDelimitedText');
end;
function kUTTypeCommaSeparatedText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeCommaSeparatedText');
end;
function kUTTypeTabSeparatedText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeTabSeparatedText');
end;
function kUTTypeUTF8TabSeparatedText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeUTF8TabSeparatedText');
end;
function kUTTypeRTF: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeRTF');
end;
function kUTTypeHTML: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeHTML');
end;
function kUTTypeXML: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeXML');
end;
function kUTTypeSourceCode: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeSourceCode');
end;
function kUTTypeAssemblyLanguageSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeAssemblyLanguageSource');
end;
function kUTTypeCSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeCSource');
end;
function kUTTypeObjectiveCSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeObjectiveCSource');
end;
function kUTTypeSwiftSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeSwiftSource');
end;
function kUTTypeCPlusPlusSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeCPlusPlusSource');
end;
function kUTTypeObjectiveCPlusPlusSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeObjectiveCPlusPlusSource');
end;
function kUTTypeCHeader: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeCHeader');
end;
function kUTTypeCPlusPlusHeader: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeCPlusPlusHeader');
end;
function kUTTypeJavaSource: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJavaSource');
end;
function kUTTypeScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeScript');
end;
function kUTTypeAppleScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeAppleScript');
end;
function kUTTypeOSAScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeOSAScript');
end;
function kUTTypeOSAScriptBundle: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeOSAScriptBundle');
end;
function kUTTypeJavaScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJavaScript');
end;
function kUTTypeShellScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeShellScript');
end;
function kUTTypePerlScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePerlScript');
end;
function kUTTypePythonScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePythonScript');
end;
function kUTTypeRubyScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeRubyScript');
end;
function kUTTypePHPScript: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePHPScript');
end;
function kUTTypeJSON: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJSON');
end;
function kUTTypePropertyList: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePropertyList');
end;
function kUTTypeXMLPropertyList: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeXMLPropertyList');
end;
function kUTTypeBinaryPropertyList: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeBinaryPropertyList');
end;
function kUTTypePDF: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePDF');
end;
function kUTTypeRTFD: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeRTFD');
end;
function kUTTypeFlatRTFD: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeFlatRTFD');
end;
function kUTTypeTXNTextAndMultimediaData: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeTXNTextAndMultimediaData');
end;
function kUTTypeWebArchive: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeWebArchive');
end;
function kUTTypeImage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeImage');
end;
function kUTTypeJPEG: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJPEG');
end;
function kUTTypeJPEG2000: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJPEG2000');
end;
function kUTTypeTIFF: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeTIFF');
end;
function kUTTypePICT: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePICT');
end;
function kUTTypeGIF: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeGIF');
end;
function kUTTypePNG: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePNG');
end;
function kUTTypeQuickTimeImage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeQuickTimeImage');
end;
function kUTTypeAppleICNS: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeAppleICNS');
end;
function kUTTypeBMP: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeBMP');
end;
function kUTTypeICO: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeICO');
end;
function kUTTypeRawImage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeRawImage');
end;
function kUTTypeScalableVectorGraphics: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeScalableVectorGraphics');
end;
function kUTTypeLivePhoto: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeLivePhoto');
end;
function kUTTypeAudiovisualContent: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeAudiovisualContent');
end;
function kUTTypeMovie: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMovie');
end;
function kUTTypeVideo: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeVideo');
end;
function kUTTypeAudio: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeAudio');
end;
function kUTTypeQuickTimeMovie: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeQuickTimeMovie');
end;
function kUTTypeMPEG: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMPEG');
end;
function kUTTypeMPEG2Video: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMPEG2Video');
end;
function kUTTypeMPEG2TransportStream: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeMPEG2TransportStream');
end;
function kUTTypeMP3: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMP3');
end;
function kUTTypeMPEG4: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMPEG4');
end;
function kUTTypeMPEG4Audio: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMPEG4Audio');
end;
function kUTTypeAppleProtectedMPEG4Audio: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeAppleProtectedMPEG4Audio');
end;
function kUTTypeAppleProtectedMPEG4Video: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeAppleProtectedMPEG4Video');
end;
function kUTTypeAVIMovie: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeAVIMovie');
end;
function kUTTypeAudioInterchangeFileFormat: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeAudioInterchangeFileFormat');
end;
function kUTTypeWaveformAudio: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeWaveformAudio');
end;
function kUTTypeMIDIAudio: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeMIDIAudio');
end;
function kUTTypePlaylist: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePlaylist');
end;
function kUTTypeM3UPlaylist: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeM3UPlaylist');
end;
function kUTTypeFolder: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeFolder');
end;
function kUTTypeVolume: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeVolume');
end;
function kUTTypePackage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePackage');
end;
function kUTTypeBundle: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeBundle');
end;
function kUTTypePluginBundle: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePluginBundle');
end;
function kUTTypeSpotlightImporter: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeSpotlightImporter');
end;
function kUTTypeQuickLookGenerator: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeQuickLookGenerator');
end;
function kUTTypeXPCService: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeXPCService');
end;
function kUTTypeFramework: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeFramework');
end;
function kUTTypeApplication: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeApplication');
end;
function kUTTypeApplicationBundle: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeApplicationBundle');
end;
function kUTTypeApplicationFile: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeApplicationFile');
end;
function kUTTypeUnixExecutable: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeUnixExecutable');
end;
function kUTTypeWindowsExecutable: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeWindowsExecutable');
end;
function kUTTypeJavaClass: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJavaClass');
end;
function kUTTypeJavaArchive: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeJavaArchive');
end;
function kUTTypeSystemPreferencesPane: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeSystemPreferencesPane');
end;
function kUTTypeGNUZipArchive: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeGNUZipArchive');
end;
function kUTTypeBzip2Archive: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeBzip2Archive');
end;
function kUTTypeZipArchive: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeZipArchive');
end;
function kUTTypeSpreadsheet: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeSpreadsheet');
end;
function kUTTypePresentation: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePresentation');
end;
function kUTTypeDatabase: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeDatabase');
end;
function kUTTypeVCard: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeVCard');
end;
function kUTTypeToDoItem: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeToDoItem');
end;
function kUTTypeCalendarEvent: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeCalendarEvent');
end;
function kUTTypeEmailMessage: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeEmailMessage');
end;
function kUTTypeInternetLocation: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeInternetLocation');
end;
function kUTTypeInkText: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeInkText');
end;
function kUTTypeFont: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeFont');
end;
function kUTTypeBookmark: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeBookmark');
end;
function kUTType3DContent: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTType3DContent');
end;
function kUTTypePKCS12: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypePKCS12');
end;
function kUTTypeX509Certificate: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeX509Certificate');
end;
function kUTTypeElectronicPublication: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeElectronicPublication');
end;
function kUTTypeLog: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeLog');
end;
function kUTExportedTypeDeclarationsKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTExportedTypeDeclarationsKey');
end;
function kUTImportedTypeDeclarationsKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTImportedTypeDeclarationsKey');
end;
function kUTTypeIdentifierKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeIdentifierKey');
end;
function kUTTypeTagSpecificationKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTypeTagSpecificationKey');
end;
function kUTTypeConformsToKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeConformsToKey');
end;
function kUTTypeDescriptionKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeDescriptionKey');
end;
function kUTTypeIconFileKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeIconFileKey');
end;
function kUTTypeReferenceURLKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeReferenceURLKey');
end;
function kUTTypeVersionKey: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTypeVersionKey');
end;
function kUTTagClassFilenameExtension: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices,
'kUTTagClassFilenameExtension');
end;
function kUTTagClassMIMEType: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTagClassMIMEType');
end;
function kUTTagClassNSPboardType: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTagClassNSPboardType');
end;
function kUTTagClassOSType: Pointer;
begin
Result := CocoaPointerConst(libMobileCoreServices, 'kUTTagClassOSType');
end;
{$IF defined(IOS) and NOT defined(CPUARM)}
initialization
MobileCoreServicesModule := dlopen(MarshaledAString(libMobileCoreServices),
RTLD_LAZY);
finalization
dlclose(MobileCoreServicesModule);
{$ENDIF IOS}
end.