@octane-xplat/macos-renderer 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
|
|
3
|
+
declare const NSUserActivityTypeLiveActivity: string
|
|
4
|
+
|
|
5
|
+
declare const WGWidgetUserInfoKeyActivityID: string
|
|
6
|
+
|
|
7
|
+
declare const WGWidgetUserInfoKeyKind: string
|
|
8
|
+
|
|
9
|
+
declare const WGWidgetUserInfoKeyFamily: string
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const kCLDistanceFilterNone: number
|
|
5
|
+
|
|
6
|
+
declare const kCLLocationCoordinate2DInvalid: CLLocationCoordinate2D
|
|
7
|
+
|
|
8
|
+
declare const kCLLocationAccuracyKilometer: number
|
|
9
|
+
|
|
10
|
+
declare const kCLLocationAccuracyHundredMeters: number
|
|
11
|
+
|
|
12
|
+
declare const kCLLocationAccuracyNearestTenMeters: number
|
|
13
|
+
|
|
14
|
+
declare const kCLLocationAccuracyBest: number
|
|
15
|
+
|
|
16
|
+
declare const kCLLocationAccuracyBestForNavigation: number
|
|
17
|
+
|
|
18
|
+
declare const kCLLocationAccuracyThreeKilometers: number
|
|
19
|
+
|
|
20
|
+
declare const CLLocationDistanceMax: number
|
|
21
|
+
|
|
22
|
+
declare const CLTimeIntervalMax: number
|
|
23
|
+
|
|
24
|
+
declare const kCLLocationAccuracyReduced: number
|
|
25
|
+
|
|
26
|
+
declare class CLLocationCoordinate2D {
|
|
27
|
+
constructor(init?: CLLocationCoordinate2D)
|
|
28
|
+
latitude: number
|
|
29
|
+
longitude: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare function CLLocationCoordinate2DIsValid(coord: CLLocationCoordinate2D): boolean
|
|
33
|
+
|
|
34
|
+
declare function CLLocationCoordinate2DMake(
|
|
35
|
+
latitude: number,
|
|
36
|
+
longitude: number,
|
|
37
|
+
): CLLocationCoordinate2D
|
|
38
|
+
|
|
39
|
+
declare class CLFloor extends NSObject implements NSCopying, NSSecureCoding {
|
|
40
|
+
readonly level: number
|
|
41
|
+
|
|
42
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
43
|
+
|
|
44
|
+
static readonly supportsSecureCoding: boolean
|
|
45
|
+
|
|
46
|
+
encodeWithCoder(coder: NSCoder): void
|
|
47
|
+
|
|
48
|
+
initWithCoder(coder: NSCoder): this
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare class CLLocation extends NSObject implements NSCopying, NSSecureCoding, CKRecordValue {
|
|
52
|
+
initWithLatitudeLongitude(latitude: number, longitude: number): this
|
|
53
|
+
|
|
54
|
+
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(
|
|
55
|
+
coordinate: CLLocationCoordinate2D,
|
|
56
|
+
altitude: number,
|
|
57
|
+
hAccuracy: number,
|
|
58
|
+
vAccuracy: number,
|
|
59
|
+
timestamp: NSDate,
|
|
60
|
+
): this
|
|
61
|
+
|
|
62
|
+
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(
|
|
63
|
+
coordinate: CLLocationCoordinate2D,
|
|
64
|
+
altitude: number,
|
|
65
|
+
hAccuracy: number,
|
|
66
|
+
vAccuracy: number,
|
|
67
|
+
course: number,
|
|
68
|
+
speed: number,
|
|
69
|
+
timestamp: NSDate,
|
|
70
|
+
): this
|
|
71
|
+
|
|
72
|
+
initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(
|
|
73
|
+
coordinate: CLLocationCoordinate2D,
|
|
74
|
+
altitude: number,
|
|
75
|
+
hAccuracy: number,
|
|
76
|
+
vAccuracy: number,
|
|
77
|
+
course: number,
|
|
78
|
+
courseAccuracy: number,
|
|
79
|
+
speed: number,
|
|
80
|
+
speedAccuracy: number,
|
|
81
|
+
timestamp: NSDate,
|
|
82
|
+
): this
|
|
83
|
+
|
|
84
|
+
readonly coordinate: CLLocationCoordinate2D
|
|
85
|
+
|
|
86
|
+
readonly altitude: number
|
|
87
|
+
|
|
88
|
+
readonly horizontalAccuracy: number
|
|
89
|
+
|
|
90
|
+
readonly verticalAccuracy: number
|
|
91
|
+
|
|
92
|
+
readonly course: number
|
|
93
|
+
|
|
94
|
+
readonly courseAccuracy: number
|
|
95
|
+
|
|
96
|
+
readonly speed: number
|
|
97
|
+
|
|
98
|
+
readonly speedAccuracy: number
|
|
99
|
+
|
|
100
|
+
readonly timestamp: NSDate
|
|
101
|
+
|
|
102
|
+
readonly floor: CLFloor
|
|
103
|
+
|
|
104
|
+
getDistanceFrom(location: CLLocation): number
|
|
105
|
+
|
|
106
|
+
distanceFromLocation(location: CLLocation): number
|
|
107
|
+
|
|
108
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
109
|
+
|
|
110
|
+
static readonly supportsSecureCoding: boolean
|
|
111
|
+
|
|
112
|
+
encodeWithCoder(coder: NSCoder): void
|
|
113
|
+
|
|
114
|
+
initWithCoder(coder: NSCoder): this
|
|
115
|
+
|
|
116
|
+
isEqual(object: interop.Object): boolean
|
|
117
|
+
|
|
118
|
+
readonly hash: number
|
|
119
|
+
|
|
120
|
+
readonly superclass: interop.Pointer
|
|
121
|
+
|
|
122
|
+
class(): interop.Pointer
|
|
123
|
+
|
|
124
|
+
self(): this
|
|
125
|
+
|
|
126
|
+
performSelector(aSelector: string): interop.Object
|
|
127
|
+
|
|
128
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
129
|
+
|
|
130
|
+
performSelectorWithObjectWithObject(
|
|
131
|
+
aSelector: string,
|
|
132
|
+
object1: interop.Object,
|
|
133
|
+
object2: interop.Object,
|
|
134
|
+
): interop.Object
|
|
135
|
+
|
|
136
|
+
readonly isProxy: boolean
|
|
137
|
+
|
|
138
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
139
|
+
|
|
140
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
141
|
+
|
|
142
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
143
|
+
|
|
144
|
+
respondsToSelector(aSelector: string): boolean
|
|
145
|
+
|
|
146
|
+
retain(): this
|
|
147
|
+
|
|
148
|
+
release(): void
|
|
149
|
+
|
|
150
|
+
autorelease(): this
|
|
151
|
+
|
|
152
|
+
retainCount(): number
|
|
153
|
+
|
|
154
|
+
readonly zone: interop.Pointer
|
|
155
|
+
|
|
156
|
+
readonly description: string
|
|
157
|
+
|
|
158
|
+
readonly debugDescription: string
|
|
159
|
+
}
|
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const ITLibPlaylistPropertyMaster: string
|
|
5
|
+
|
|
6
|
+
declare const ITLibPlaylistPropertyKind: string
|
|
7
|
+
|
|
8
|
+
declare const ITLibPlaylistPropertyVisible: string
|
|
9
|
+
|
|
10
|
+
declare const ITLibPlaylistPropertyDistinguisedKind: string
|
|
11
|
+
|
|
12
|
+
declare const ITLibPlaylistPropertyAllItemsPlaylist: string
|
|
13
|
+
|
|
14
|
+
declare const ITLibPlaylistPropertyName: string
|
|
15
|
+
|
|
16
|
+
declare const ITLibMediaItemPropertyYear: string
|
|
17
|
+
|
|
18
|
+
declare const ITLibMediaItemPropertyVoiceOverLanguage: string
|
|
19
|
+
|
|
20
|
+
declare const ITLibMediaItemPropertyTrackNumber: string
|
|
21
|
+
|
|
22
|
+
declare const ITLibMediaItemPropertySkipDate: string
|
|
23
|
+
|
|
24
|
+
declare const ITLibMediaItemPropertyFileSize: string
|
|
25
|
+
|
|
26
|
+
declare const ITLibMediaItemPropertySampleRate: string
|
|
27
|
+
|
|
28
|
+
declare const ITLibMediaItemPropertyRatingComputed: string
|
|
29
|
+
|
|
30
|
+
declare const ITLibMediaItemPropertyMovementCount: string
|
|
31
|
+
|
|
32
|
+
declare const ITLibMediaItemPropertyIsPurchased: string
|
|
33
|
+
|
|
34
|
+
declare const ITLibMediaItemPropertyPlayCount: string
|
|
35
|
+
|
|
36
|
+
declare const ITLibMediaItemPropertySortTitle: string
|
|
37
|
+
|
|
38
|
+
declare const ITLibMediaItemPropertyTitle: string
|
|
39
|
+
|
|
40
|
+
declare const ITLibMediaItemPropertyDescription: string
|
|
41
|
+
|
|
42
|
+
declare const ITLibMediaItemPropertyContentRating: string
|
|
43
|
+
|
|
44
|
+
declare const ITLibMediaItemPropertyComposer: string
|
|
45
|
+
|
|
46
|
+
declare const ITLibMediaItemPropertyCategory: string
|
|
47
|
+
|
|
48
|
+
declare const ITLibMediaItemPropertyBitRate: string
|
|
49
|
+
|
|
50
|
+
declare const ITLibMediaItemPropertyVideoEpisodeOrder: string
|
|
51
|
+
|
|
52
|
+
declare const ITLibMediaItemPropertyVideoEpisode: string
|
|
53
|
+
|
|
54
|
+
declare const ITLibMediaItemPropertyVideoSeason: string
|
|
55
|
+
|
|
56
|
+
declare const ITLibMediaItemPropertyAlbumTrackCount: string
|
|
57
|
+
|
|
58
|
+
declare const ITLibMediaItemPropertyAlbumDiscNumber: string
|
|
59
|
+
|
|
60
|
+
declare const ITLibMediaItemPropertyAlbumDiscCount: string
|
|
61
|
+
|
|
62
|
+
declare const ITLibMediaItemPropertyAlbumRatingComputed: string
|
|
63
|
+
|
|
64
|
+
declare const ITLibMediaItemPropertyAlbumArtist: string
|
|
65
|
+
|
|
66
|
+
declare const ITLibMediaItemPropertySortAlbumTitle: string
|
|
67
|
+
|
|
68
|
+
declare const ITLibMediaItemPropertyAlbumTitle: string
|
|
69
|
+
|
|
70
|
+
declare const ITLibMediaEntityPropertyPersistentID: string
|
|
71
|
+
|
|
72
|
+
declare const ITLibMediaItemPropertyVolumeAdjustment: string
|
|
73
|
+
|
|
74
|
+
declare const ITLibMediaItemPropertyMediaKind: string
|
|
75
|
+
|
|
76
|
+
declare const ITLibMediaItemPropertyAlbumIsGapless: string
|
|
77
|
+
|
|
78
|
+
declare const ITLibMediaItemPropertyPlayStatus: string
|
|
79
|
+
|
|
80
|
+
declare const ITLibPlaylistPropertyParentPersistentID: string
|
|
81
|
+
|
|
82
|
+
declare const ITLibMediaItemPropertyTotalTime: string
|
|
83
|
+
|
|
84
|
+
declare const ITLibMediaItemPropertyLastPlayDate: string
|
|
85
|
+
|
|
86
|
+
declare const ITLibMediaItemPropertyGenre: string
|
|
87
|
+
|
|
88
|
+
declare const ITLibMediaItemPropertyVideoWidth: string
|
|
89
|
+
|
|
90
|
+
declare const ITLibMediaItemPropertyHasArtwork: string
|
|
91
|
+
|
|
92
|
+
declare const ITLibMediaItemPropertyIsUserDisabled: string
|
|
93
|
+
|
|
94
|
+
declare const ITLibMediaItemPropertyMovementName: string
|
|
95
|
+
|
|
96
|
+
declare const ITLibMediaItemPropertyArtwork: string
|
|
97
|
+
|
|
98
|
+
declare const ITLibMediaItemPropertyFileType: string
|
|
99
|
+
|
|
100
|
+
declare const ITLibMediaItemPropertyArtistName: string
|
|
101
|
+
|
|
102
|
+
declare const ITLibMediaItemPropertyVolumeNormalizationEnergy: string
|
|
103
|
+
|
|
104
|
+
declare const ITLibMediaItemPropertySortComposer: string
|
|
105
|
+
|
|
106
|
+
declare const ITLibMediaItemPropertyVideoIsHD: string
|
|
107
|
+
|
|
108
|
+
declare const ITLibMediaItemPropertySortAlbumArtist: string
|
|
109
|
+
|
|
110
|
+
declare const ITLibMediaItemPropertyIsVideo: string
|
|
111
|
+
|
|
112
|
+
declare const ITLibMediaItemPropertyMovementNumber: string
|
|
113
|
+
|
|
114
|
+
declare const ITLibMediaItemPropertyRating: string
|
|
115
|
+
|
|
116
|
+
declare const ITLibMediaItemPropertyReleaseDate: string
|
|
117
|
+
|
|
118
|
+
declare const ITLibMediaItemPropertyLyricsContentRating: string
|
|
119
|
+
|
|
120
|
+
declare const ITLibMediaItemPropertyVideoSeries: string
|
|
121
|
+
|
|
122
|
+
declare const ITLibMediaItemPropertyStartTime: string
|
|
123
|
+
|
|
124
|
+
declare const ITLibMediaItemPropertySortArtistName: string
|
|
125
|
+
|
|
126
|
+
declare const ITLibMediaItemPropertyWork: string
|
|
127
|
+
|
|
128
|
+
declare const ITLibMediaItemPropertyLocationType: string
|
|
129
|
+
|
|
130
|
+
declare const ITLibMediaItemPropertyKind: string
|
|
131
|
+
|
|
132
|
+
declare const ITLibMediaItemPropertyVideoHeight: string
|
|
133
|
+
|
|
134
|
+
declare const ITLibMediaItemPropertyBeatsPerMinute: string
|
|
135
|
+
|
|
136
|
+
declare const ITLibMediaItemPropertyAddedDate: string
|
|
137
|
+
|
|
138
|
+
declare const ITLibMediaItemPropertyVideoSortSeries: string
|
|
139
|
+
|
|
140
|
+
declare const ITLibMediaItemPropertyStopTime: string
|
|
141
|
+
|
|
142
|
+
declare const ITLibMediaItemPropertyComments: string
|
|
143
|
+
|
|
144
|
+
declare const ITLibMediaItemPropertyAlbumIsCompilation: string
|
|
145
|
+
|
|
146
|
+
declare const ITLibMediaItemPropertyLocation: string
|
|
147
|
+
|
|
148
|
+
declare const ITLibPlaylistPropertyItems: string
|
|
149
|
+
|
|
150
|
+
declare const ITLibMediaItemPropertyAlbumRating: string
|
|
151
|
+
|
|
152
|
+
declare const ITLibMediaItemPropertyGrouping: string
|
|
153
|
+
|
|
154
|
+
declare const ITLibMediaItemPropertySize: string
|
|
155
|
+
|
|
156
|
+
declare const ITLibMediaItemPropertyIsDRMProtected: string
|
|
157
|
+
|
|
158
|
+
declare const ITLibMediaItemPropertyModifiedDate: string
|
|
159
|
+
|
|
160
|
+
declare const ITLibMediaItemPropertyUserSkipCount: string
|
|
161
|
+
|
|
162
|
+
declare const ITLibInitOptions: {
|
|
163
|
+
None: 0
|
|
164
|
+
LazyLoadData: 1
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare const ITLibExportFeature: {
|
|
168
|
+
ITLibExportFeatureNone: 0
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare const ITLibMediaItemPlayStatus: {
|
|
172
|
+
None: 0
|
|
173
|
+
PartiallyPlayed: 1
|
|
174
|
+
Unplayed: 2
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
declare const ITLibMediaItemLocationType: {
|
|
178
|
+
Unknown: 0
|
|
179
|
+
File: 1
|
|
180
|
+
URL: 2
|
|
181
|
+
Remote: 3
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare const ITLibMediaItemLyricsContentRating: {
|
|
185
|
+
None: 0
|
|
186
|
+
Explicit: 1
|
|
187
|
+
Clean: 2
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare const ITLibPlaylistKind: {
|
|
191
|
+
Regular: 0
|
|
192
|
+
Smart: 1
|
|
193
|
+
Genius: 2
|
|
194
|
+
Folder: 3
|
|
195
|
+
GeniusMix: 4
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare const ITLibDistinguishedPlaylistKind: {
|
|
199
|
+
KindNone: 0
|
|
200
|
+
KindMovies: 1
|
|
201
|
+
KindTVShows: 2
|
|
202
|
+
KindMusic: 3
|
|
203
|
+
KindAudiobooks: 4
|
|
204
|
+
KindBooks: 4
|
|
205
|
+
KindRingtones: 5
|
|
206
|
+
KindPodcasts: 7
|
|
207
|
+
KindVoiceMemos: 14
|
|
208
|
+
KindPurchases: 16
|
|
209
|
+
KindiTunesU: 26
|
|
210
|
+
Kind90sMusic: 42
|
|
211
|
+
KindMyTopRated: 43
|
|
212
|
+
KindTop25MostPlayed: 44
|
|
213
|
+
KindRecentlyPlayed: 45
|
|
214
|
+
KindRecentlyAdded: 46
|
|
215
|
+
KindMusicVideos: 47
|
|
216
|
+
KindClassicalMusic: 48
|
|
217
|
+
KindLibraryMusicVideos: 49
|
|
218
|
+
KindHomeVideos: 50
|
|
219
|
+
KindApplications: 51
|
|
220
|
+
KindLovedSongs: 52
|
|
221
|
+
KindMusicShowsAndMovies: 53
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare const ITLibArtworkFormat: {
|
|
225
|
+
None: 0
|
|
226
|
+
Bitmap: 1
|
|
227
|
+
JPEG: 2
|
|
228
|
+
JPEG2000: 3
|
|
229
|
+
GIF: 4
|
|
230
|
+
PNG: 5
|
|
231
|
+
BMP: 6
|
|
232
|
+
TIFF: 7
|
|
233
|
+
PICT: 8
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare const ITLibMediaItemMediaKind: {
|
|
237
|
+
KindUnknown: 1
|
|
238
|
+
KindSong: 2
|
|
239
|
+
KindMovie: 3
|
|
240
|
+
KindPodcast: 4
|
|
241
|
+
KindAudiobook: 5
|
|
242
|
+
KindPDFBooklet: 6
|
|
243
|
+
KindMusicVideo: 7
|
|
244
|
+
KindTVShow: 8
|
|
245
|
+
KindInteractiveBooklet: 9
|
|
246
|
+
KindHomeVideo: 12
|
|
247
|
+
KindRingtone: 14
|
|
248
|
+
KindDigitalBooklet: 15
|
|
249
|
+
KindIOSApplication: 16
|
|
250
|
+
KindVoiceMemo: 17
|
|
251
|
+
KindiTunesU: 18
|
|
252
|
+
KindBook: 19
|
|
253
|
+
KindPDFBook: 20
|
|
254
|
+
KindAlertTone: 21
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
declare class ITLibrary extends NSObject {
|
|
258
|
+
readonly applicationVersion: string
|
|
259
|
+
|
|
260
|
+
readonly features: interop.Enum<typeof ITLibExportFeature>
|
|
261
|
+
|
|
262
|
+
readonly apiMajorVersion: number
|
|
263
|
+
|
|
264
|
+
readonly apiMinorVersion: number
|
|
265
|
+
|
|
266
|
+
readonly mediaFolderLocation: NSURL
|
|
267
|
+
|
|
268
|
+
readonly musicFolderLocation: NSURL
|
|
269
|
+
|
|
270
|
+
readonly showContentRating: boolean
|
|
271
|
+
|
|
272
|
+
readonly allMediaItems: NSArray
|
|
273
|
+
|
|
274
|
+
readonly allPlaylists: NSArray
|
|
275
|
+
|
|
276
|
+
static libraryWithAPIVersionError<This extends abstract new (...args: any) => any>(
|
|
277
|
+
this: This,
|
|
278
|
+
requestedAPIVersion: string,
|
|
279
|
+
error: interop.PointerConvertible,
|
|
280
|
+
): InstanceType<This>
|
|
281
|
+
|
|
282
|
+
static libraryWithAPIVersionOptionsError<This extends abstract new (...args: any) => any>(
|
|
283
|
+
this: This,
|
|
284
|
+
requestedAPIVersion: string,
|
|
285
|
+
options: interop.Enum<typeof ITLibInitOptions>,
|
|
286
|
+
error: interop.PointerConvertible,
|
|
287
|
+
): InstanceType<This>
|
|
288
|
+
|
|
289
|
+
initWithAPIVersionError(requestedAPIVersion: string, error: interop.PointerConvertible): this
|
|
290
|
+
|
|
291
|
+
initWithAPIVersionOptionsError(
|
|
292
|
+
requestedAPIVersion: string,
|
|
293
|
+
options: interop.Enum<typeof ITLibInitOptions>,
|
|
294
|
+
error: interop.PointerConvertible,
|
|
295
|
+
): this
|
|
296
|
+
|
|
297
|
+
artworkForMediaFile(mediaFileURL: NSURL): ITLibArtwork
|
|
298
|
+
|
|
299
|
+
reloadData(): boolean
|
|
300
|
+
|
|
301
|
+
unloadData(): void
|
|
302
|
+
|
|
303
|
+
shouldShowContentRating(): boolean
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare class ITLibMediaItemVideoInfo extends NSObject {
|
|
307
|
+
readonly series: string
|
|
308
|
+
|
|
309
|
+
readonly sortSeries: string
|
|
310
|
+
|
|
311
|
+
readonly season: number
|
|
312
|
+
|
|
313
|
+
readonly episode: string
|
|
314
|
+
|
|
315
|
+
readonly episodeOrder: number
|
|
316
|
+
|
|
317
|
+
readonly hd: boolean
|
|
318
|
+
|
|
319
|
+
readonly videoWidth: number
|
|
320
|
+
|
|
321
|
+
readonly videoHeight: number
|
|
322
|
+
|
|
323
|
+
isHD(): boolean
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare class ITLibMediaItem extends ITLibMediaEntity {
|
|
327
|
+
readonly title: string
|
|
328
|
+
|
|
329
|
+
readonly sortTitle: string
|
|
330
|
+
|
|
331
|
+
readonly artist: ITLibArtist
|
|
332
|
+
|
|
333
|
+
readonly composer: string
|
|
334
|
+
|
|
335
|
+
readonly sortComposer: string
|
|
336
|
+
|
|
337
|
+
readonly rating: number
|
|
338
|
+
|
|
339
|
+
readonly ratingComputed: boolean
|
|
340
|
+
|
|
341
|
+
readonly startTime: number
|
|
342
|
+
|
|
343
|
+
readonly stopTime: number
|
|
344
|
+
|
|
345
|
+
readonly album: ITLibAlbum
|
|
346
|
+
|
|
347
|
+
readonly genre: string
|
|
348
|
+
|
|
349
|
+
readonly kind: string
|
|
350
|
+
|
|
351
|
+
readonly mediaKind: interop.Enum<typeof ITLibMediaItemMediaKind>
|
|
352
|
+
|
|
353
|
+
readonly fileSize: number
|
|
354
|
+
|
|
355
|
+
readonly size: number
|
|
356
|
+
|
|
357
|
+
readonly totalTime: number
|
|
358
|
+
|
|
359
|
+
readonly trackNumber: number
|
|
360
|
+
|
|
361
|
+
readonly category: string
|
|
362
|
+
|
|
363
|
+
readonly description: string
|
|
364
|
+
|
|
365
|
+
readonly lyricsContentRating: interop.Enum<typeof ITLibMediaItemLyricsContentRating>
|
|
366
|
+
|
|
367
|
+
readonly contentRating: string
|
|
368
|
+
|
|
369
|
+
readonly modifiedDate: NSDate
|
|
370
|
+
|
|
371
|
+
readonly addedDate: NSDate
|
|
372
|
+
|
|
373
|
+
readonly bitrate: number
|
|
374
|
+
|
|
375
|
+
readonly sampleRate: number
|
|
376
|
+
|
|
377
|
+
readonly beatsPerMinute: number
|
|
378
|
+
|
|
379
|
+
readonly playCount: number
|
|
380
|
+
|
|
381
|
+
readonly lastPlayedDate: NSDate
|
|
382
|
+
|
|
383
|
+
readonly playStatus: interop.Enum<typeof ITLibMediaItemPlayStatus>
|
|
384
|
+
|
|
385
|
+
readonly location: NSURL
|
|
386
|
+
|
|
387
|
+
readonly artworkAvailable: boolean
|
|
388
|
+
|
|
389
|
+
readonly artwork: ITLibArtwork
|
|
390
|
+
|
|
391
|
+
readonly comments: string
|
|
392
|
+
|
|
393
|
+
readonly purchased: boolean
|
|
394
|
+
|
|
395
|
+
readonly cloud: boolean
|
|
396
|
+
|
|
397
|
+
readonly drmProtected: boolean
|
|
398
|
+
|
|
399
|
+
readonly video: boolean
|
|
400
|
+
|
|
401
|
+
readonly videoInfo: ITLibMediaItemVideoInfo
|
|
402
|
+
|
|
403
|
+
readonly releaseDate: NSDate
|
|
404
|
+
|
|
405
|
+
readonly year: number
|
|
406
|
+
|
|
407
|
+
readonly fileType: number
|
|
408
|
+
|
|
409
|
+
readonly skipCount: number
|
|
410
|
+
|
|
411
|
+
readonly skipDate: NSDate
|
|
412
|
+
|
|
413
|
+
readonly voiceOverLanguage: string
|
|
414
|
+
|
|
415
|
+
readonly volumeAdjustment: number
|
|
416
|
+
|
|
417
|
+
readonly volumeNormalizationEnergy: number
|
|
418
|
+
|
|
419
|
+
readonly userDisabled: boolean
|
|
420
|
+
|
|
421
|
+
readonly grouping: string
|
|
422
|
+
|
|
423
|
+
readonly locationType: interop.Enum<typeof ITLibMediaItemLocationType>
|
|
424
|
+
|
|
425
|
+
isRatingComputed(): boolean
|
|
426
|
+
|
|
427
|
+
hasArtworkAvailable(): boolean
|
|
428
|
+
|
|
429
|
+
isPurchased(): boolean
|
|
430
|
+
|
|
431
|
+
isCloud(): boolean
|
|
432
|
+
|
|
433
|
+
isDRMProtected(): boolean
|
|
434
|
+
|
|
435
|
+
isVideo(): boolean
|
|
436
|
+
|
|
437
|
+
isUserDisabled(): boolean
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
declare class ITLibPlaylist extends ITLibMediaEntity {
|
|
441
|
+
readonly name: string
|
|
442
|
+
|
|
443
|
+
readonly parentID: NSNumber
|
|
444
|
+
|
|
445
|
+
readonly visible: boolean
|
|
446
|
+
|
|
447
|
+
readonly allItemsPlaylist: boolean
|
|
448
|
+
|
|
449
|
+
readonly items: NSArray
|
|
450
|
+
|
|
451
|
+
readonly distinguishedKind: interop.Enum<typeof ITLibDistinguishedPlaylistKind>
|
|
452
|
+
|
|
453
|
+
readonly kind: interop.Enum<typeof ITLibPlaylistKind>
|
|
454
|
+
|
|
455
|
+
readonly master: boolean
|
|
456
|
+
|
|
457
|
+
isVisible(): boolean
|
|
458
|
+
|
|
459
|
+
isAllItemsPlaylist(): boolean
|
|
460
|
+
|
|
461
|
+
isMaster(): boolean
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class ITLibArtist extends NSObject {
|
|
465
|
+
readonly name: string
|
|
466
|
+
|
|
467
|
+
readonly sortName: string
|
|
468
|
+
|
|
469
|
+
readonly persistentID: NSNumber
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
declare class ITLibMediaEntity extends NSObject {
|
|
473
|
+
readonly persistentID: NSNumber
|
|
474
|
+
|
|
475
|
+
valueForProperty(property: string): interop.Object
|
|
476
|
+
|
|
477
|
+
enumerateValuesForPropertiesUsingBlock(
|
|
478
|
+
properties: NSSet | null,
|
|
479
|
+
block: (p1: string, p2: interop.Object, p3: interop.PointerConvertible) => void,
|
|
480
|
+
): void
|
|
481
|
+
|
|
482
|
+
enumerateValuesExceptForPropertiesUsingBlock(
|
|
483
|
+
properties: NSSet | null,
|
|
484
|
+
block: (p1: string, p2: interop.Object, p3: interop.PointerConvertible) => void,
|
|
485
|
+
): void
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
declare class ITLibAlbum extends NSObject {
|
|
489
|
+
readonly title: string
|
|
490
|
+
|
|
491
|
+
readonly sortTitle: string
|
|
492
|
+
|
|
493
|
+
readonly compilation: boolean
|
|
494
|
+
|
|
495
|
+
readonly artist: ITLibArtist
|
|
496
|
+
|
|
497
|
+
readonly discCount: number
|
|
498
|
+
|
|
499
|
+
readonly discNumber: number
|
|
500
|
+
|
|
501
|
+
readonly rating: number
|
|
502
|
+
|
|
503
|
+
readonly ratingComputed: boolean
|
|
504
|
+
|
|
505
|
+
readonly gapless: boolean
|
|
506
|
+
|
|
507
|
+
readonly trackCount: number
|
|
508
|
+
|
|
509
|
+
readonly albumArtist: string
|
|
510
|
+
|
|
511
|
+
readonly sortAlbumArtist: string
|
|
512
|
+
|
|
513
|
+
readonly persistentID: NSNumber
|
|
514
|
+
|
|
515
|
+
isCompilation(): boolean
|
|
516
|
+
|
|
517
|
+
isRatingComputed(): boolean
|
|
518
|
+
|
|
519
|
+
isGapless(): boolean
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
declare class ITLibArtwork extends NSObject {
|
|
523
|
+
readonly image: NSImage
|
|
524
|
+
|
|
525
|
+
readonly imageData: NSData
|
|
526
|
+
|
|
527
|
+
readonly imageDataFormat: interop.Enum<typeof ITLibArtworkFormat>
|
|
528
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference path="./Foundation.d.ts" />
|
|
2
|
+
/// <reference path="./AppKit.d.ts" />
|
|
3
|
+
/// <reference path="./QuartzCore.d.ts" />
|
|
4
|
+
/// <reference path="./WebKit.d.ts" />
|
|
5
|
+
/// <reference path="./CoreText.d.ts" />
|
|
6
|
+
/// <reference path="./UniformTypeIdentifiers.d.ts" />
|
|
7
|
+
/// <reference path="./AVFoundation.d.ts" />
|
|
8
|
+
/// <reference path="./UserNotifications.d.ts" />
|
|
9
|
+
/// <reference path="./LocalAuthentication.d.ts" />
|