@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,538 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const UNNotificationDefaultActionIdentifier: string
|
|
5
|
+
|
|
6
|
+
declare const UNNotificationCategoryOptionNone: interop.Enum<typeof UNNotificationCategoryOptions>
|
|
7
|
+
|
|
8
|
+
declare const UNNotificationAttachmentOptionsTypeHintKey: string
|
|
9
|
+
|
|
10
|
+
declare const UNNotificationDismissActionIdentifier: string
|
|
11
|
+
|
|
12
|
+
declare const UNNotificationAttachmentOptionsThumbnailClippingRectKey: string
|
|
13
|
+
|
|
14
|
+
declare const UNNotificationPresentationOptionNone: interop.Enum<
|
|
15
|
+
typeof UNNotificationPresentationOptions
|
|
16
|
+
>
|
|
17
|
+
|
|
18
|
+
declare const UNErrorDomain: string
|
|
19
|
+
|
|
20
|
+
declare const UNNotificationAttachmentOptionsThumbnailHiddenKey: string
|
|
21
|
+
|
|
22
|
+
declare const UNNotificationActionOptionNone: interop.Enum<typeof UNNotificationActionOptions>
|
|
23
|
+
|
|
24
|
+
declare const UNAuthorizationOptionNone: interop.Enum<typeof UNAuthorizationOptions>
|
|
25
|
+
|
|
26
|
+
declare const UNNotificationAttachmentOptionsThumbnailTimeKey: string
|
|
27
|
+
|
|
28
|
+
declare const UNNotificationPresentationOptions: {
|
|
29
|
+
Badge: 1
|
|
30
|
+
Sound: 2
|
|
31
|
+
Alert: 4
|
|
32
|
+
List: 8
|
|
33
|
+
Banner: 16
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const UNAlertStyle: {
|
|
37
|
+
None: 0
|
|
38
|
+
Banner: 1
|
|
39
|
+
Alert: 2
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare const UNNotificationSetting: {
|
|
43
|
+
NotSupported: 0
|
|
44
|
+
Disabled: 1
|
|
45
|
+
Enabled: 2
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare const UNShowPreviewsSetting: {
|
|
49
|
+
Always: 0
|
|
50
|
+
WhenAuthenticated: 1
|
|
51
|
+
Never: 2
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const UNAuthorizationStatus: {
|
|
55
|
+
NotDetermined: 0
|
|
56
|
+
Denied: 1
|
|
57
|
+
Authorized: 2
|
|
58
|
+
Provisional: 3
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare const UNAuthorizationOptions: {
|
|
62
|
+
Badge: 1
|
|
63
|
+
Sound: 2
|
|
64
|
+
Alert: 4
|
|
65
|
+
CarPlay: 8
|
|
66
|
+
CriticalAlert: 16
|
|
67
|
+
ProvidesAppNotificationSettings: 32
|
|
68
|
+
Provisional: 64
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare const UNErrorCode: {
|
|
72
|
+
NotificationsNotAllowed: 1
|
|
73
|
+
AttachmentInvalidURL: 100
|
|
74
|
+
AttachmentUnrecognizedType: 101
|
|
75
|
+
AttachmentInvalidFileSize: 102
|
|
76
|
+
AttachmentNotInDataStore: 103
|
|
77
|
+
AttachmentMoveIntoDataStoreFailed: 104
|
|
78
|
+
AttachmentCorrupt: 105
|
|
79
|
+
NotificationInvalidNoDate: 1400
|
|
80
|
+
NotificationInvalidNoContent: 1401
|
|
81
|
+
ContentProvidingObjectNotAllowed: 1500
|
|
82
|
+
ContentProvidingInvalid: 1501
|
|
83
|
+
BadgeInputInvalid: 1600
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare const UNNotificationCategoryOptions: {
|
|
87
|
+
CustomDismissAction: 1
|
|
88
|
+
HiddenPreviewsShowTitle: 4
|
|
89
|
+
HiddenPreviewsShowSubtitle: 8
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
declare const UNNotificationActionOptions: {
|
|
93
|
+
AuthenticationRequired: 1
|
|
94
|
+
Destructive: 2
|
|
95
|
+
Foreground: 4
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
declare interface UNUserNotificationCenterDelegate extends NSObjectProtocol {
|
|
99
|
+
userNotificationCenterWillPresentNotificationWithCompletionHandler?(
|
|
100
|
+
center: UNUserNotificationCenter,
|
|
101
|
+
notification: UNNotification,
|
|
102
|
+
completionHandler: (p1: interop.Enum<typeof UNNotificationPresentationOptions>) => void,
|
|
103
|
+
): void
|
|
104
|
+
|
|
105
|
+
userNotificationCenterDidReceiveNotificationResponseWithCompletionHandler?(
|
|
106
|
+
center: UNUserNotificationCenter,
|
|
107
|
+
response: UNNotificationResponse,
|
|
108
|
+
completionHandler: () => void,
|
|
109
|
+
): void
|
|
110
|
+
|
|
111
|
+
userNotificationCenterOpenSettingsForNotification?(
|
|
112
|
+
center: UNUserNotificationCenter,
|
|
113
|
+
notification: UNNotification | null,
|
|
114
|
+
): void
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class UNUserNotificationCenterDelegate
|
|
118
|
+
extends NativeObject
|
|
119
|
+
implements UNUserNotificationCenterDelegate {}
|
|
120
|
+
|
|
121
|
+
declare class UNUserNotificationCenter extends NSObject {
|
|
122
|
+
delegate: UNUserNotificationCenterDelegate
|
|
123
|
+
|
|
124
|
+
readonly supportsContentExtensions: boolean
|
|
125
|
+
|
|
126
|
+
static currentNotificationCenter(): UNUserNotificationCenter
|
|
127
|
+
|
|
128
|
+
requestAuthorizationWithOptionsCompletionHandler(
|
|
129
|
+
options: interop.Enum<typeof UNAuthorizationOptions>,
|
|
130
|
+
completionHandler: (p1: boolean, p2: NSError) => void | null,
|
|
131
|
+
): void
|
|
132
|
+
|
|
133
|
+
setNotificationCategories(categories: NSSet): void
|
|
134
|
+
|
|
135
|
+
getNotificationCategoriesWithCompletionHandler(completionHandler: (p1: NSSet) => void): void
|
|
136
|
+
|
|
137
|
+
getNotificationSettingsWithCompletionHandler(
|
|
138
|
+
completionHandler: (p1: UNNotificationSettings) => void,
|
|
139
|
+
): void
|
|
140
|
+
|
|
141
|
+
addNotificationRequestWithCompletionHandler(
|
|
142
|
+
request: UNNotificationRequest,
|
|
143
|
+
completionHandler: (p1: NSError) => void | null,
|
|
144
|
+
): void
|
|
145
|
+
|
|
146
|
+
getPendingNotificationRequestsWithCompletionHandler(
|
|
147
|
+
completionHandler: (p1: NSArray<interop.Object> | Array<interop.Object>) => void,
|
|
148
|
+
): void
|
|
149
|
+
|
|
150
|
+
removePendingNotificationRequestsWithIdentifiers(
|
|
151
|
+
identifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
152
|
+
): void
|
|
153
|
+
|
|
154
|
+
removeAllPendingNotificationRequests(): void
|
|
155
|
+
|
|
156
|
+
getDeliveredNotificationsWithCompletionHandler(
|
|
157
|
+
completionHandler: (p1: NSArray<interop.Object> | Array<interop.Object>) => void,
|
|
158
|
+
): void
|
|
159
|
+
|
|
160
|
+
removeDeliveredNotificationsWithIdentifiers(
|
|
161
|
+
identifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
162
|
+
): void
|
|
163
|
+
|
|
164
|
+
removeAllDeliveredNotifications(): void
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare class UNTimeIntervalNotificationTrigger extends UNNotificationTrigger {
|
|
168
|
+
readonly timeInterval: number
|
|
169
|
+
|
|
170
|
+
static triggerWithTimeIntervalRepeats<This extends abstract new (...args: any) => any>(
|
|
171
|
+
this: This,
|
|
172
|
+
timeInterval: number,
|
|
173
|
+
repeats: boolean,
|
|
174
|
+
): InstanceType<This>
|
|
175
|
+
|
|
176
|
+
nextTriggerDate(): NSDate
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare class UNNotificationTrigger extends NSObject implements NSCopying, NSSecureCoding {
|
|
180
|
+
readonly repeats: boolean
|
|
181
|
+
|
|
182
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
183
|
+
|
|
184
|
+
static readonly supportsSecureCoding: boolean
|
|
185
|
+
|
|
186
|
+
encodeWithCoder(coder: NSCoder): void
|
|
187
|
+
|
|
188
|
+
initWithCoder(coder: NSCoder): this
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare class UNNotificationSound extends NSObject implements NSCopying, NSSecureCoding {
|
|
192
|
+
static readonly defaultSound: UNNotificationSound
|
|
193
|
+
|
|
194
|
+
static readonly defaultCriticalSound: UNNotificationSound
|
|
195
|
+
|
|
196
|
+
static defaultCriticalSoundWithAudioVolume<This extends abstract new (...args: any) => any>(
|
|
197
|
+
this: This,
|
|
198
|
+
volume: number,
|
|
199
|
+
): InstanceType<This>
|
|
200
|
+
|
|
201
|
+
static soundNamed<This extends abstract new (...args: any) => any>(
|
|
202
|
+
this: This,
|
|
203
|
+
name: string,
|
|
204
|
+
): InstanceType<This>
|
|
205
|
+
|
|
206
|
+
static criticalSoundNamed<This extends abstract new (...args: any) => any>(
|
|
207
|
+
this: This,
|
|
208
|
+
name: string,
|
|
209
|
+
): InstanceType<This>
|
|
210
|
+
|
|
211
|
+
static criticalSoundNamedWithAudioVolume<This extends abstract new (...args: any) => any>(
|
|
212
|
+
this: This,
|
|
213
|
+
name: string,
|
|
214
|
+
volume: number,
|
|
215
|
+
): InstanceType<This>
|
|
216
|
+
|
|
217
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
218
|
+
|
|
219
|
+
static readonly supportsSecureCoding: boolean
|
|
220
|
+
|
|
221
|
+
encodeWithCoder(coder: NSCoder): void
|
|
222
|
+
|
|
223
|
+
initWithCoder(coder: NSCoder): this
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare class UNNotificationServiceExtension extends NSObject {
|
|
227
|
+
didReceiveNotificationRequestWithContentHandler(
|
|
228
|
+
request: UNNotificationRequest,
|
|
229
|
+
contentHandler: (p1: UNNotificationContent) => void,
|
|
230
|
+
): void
|
|
231
|
+
|
|
232
|
+
serviceExtensionTimeWillExpire(): void
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
declare class UNNotificationResponse extends NSObject implements NSCopying, NSSecureCoding {
|
|
236
|
+
readonly notification: UNNotification
|
|
237
|
+
|
|
238
|
+
readonly actionIdentifier: string
|
|
239
|
+
|
|
240
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
241
|
+
|
|
242
|
+
static readonly supportsSecureCoding: boolean
|
|
243
|
+
|
|
244
|
+
encodeWithCoder(coder: NSCoder): void
|
|
245
|
+
|
|
246
|
+
initWithCoder(coder: NSCoder): this
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
declare class UNNotificationAttachment extends NSObject implements NSCopying, NSSecureCoding {
|
|
250
|
+
readonly identifier: string
|
|
251
|
+
|
|
252
|
+
readonly URL: NSURL
|
|
253
|
+
|
|
254
|
+
readonly type: string
|
|
255
|
+
|
|
256
|
+
static attachmentWithIdentifierURLOptionsError<This extends abstract new (...args: any) => any>(
|
|
257
|
+
this: This,
|
|
258
|
+
identifier: string,
|
|
259
|
+
URL: NSURL,
|
|
260
|
+
options:
|
|
261
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
262
|
+
| Record<interop.Object, interop.Object>
|
|
263
|
+
| null,
|
|
264
|
+
error: interop.PointerConvertible,
|
|
265
|
+
): InstanceType<This>
|
|
266
|
+
|
|
267
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
268
|
+
|
|
269
|
+
static readonly supportsSecureCoding: boolean
|
|
270
|
+
|
|
271
|
+
encodeWithCoder(coder: NSCoder): void
|
|
272
|
+
|
|
273
|
+
initWithCoder(coder: NSCoder): this
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
declare class UNNotificationRequest extends NSObject implements NSCopying, NSSecureCoding {
|
|
277
|
+
readonly identifier: string
|
|
278
|
+
|
|
279
|
+
readonly content: UNNotificationContent
|
|
280
|
+
|
|
281
|
+
readonly trigger: UNNotificationTrigger
|
|
282
|
+
|
|
283
|
+
static requestWithIdentifierContentTrigger<This extends abstract new (...args: any) => any>(
|
|
284
|
+
this: This,
|
|
285
|
+
identifier: string,
|
|
286
|
+
content: UNNotificationContent,
|
|
287
|
+
trigger: UNNotificationTrigger | null,
|
|
288
|
+
): InstanceType<This>
|
|
289
|
+
|
|
290
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
291
|
+
|
|
292
|
+
static readonly supportsSecureCoding: boolean
|
|
293
|
+
|
|
294
|
+
encodeWithCoder(coder: NSCoder): void
|
|
295
|
+
|
|
296
|
+
initWithCoder(coder: NSCoder): this
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare class UNNotificationContent
|
|
300
|
+
extends NSObject
|
|
301
|
+
implements NSCopying, NSMutableCopying, NSSecureCoding
|
|
302
|
+
{
|
|
303
|
+
readonly attachments: NSArray
|
|
304
|
+
|
|
305
|
+
readonly badge: NSNumber
|
|
306
|
+
|
|
307
|
+
readonly body: string
|
|
308
|
+
|
|
309
|
+
readonly categoryIdentifier: string
|
|
310
|
+
|
|
311
|
+
readonly sound: UNNotificationSound
|
|
312
|
+
|
|
313
|
+
readonly subtitle: string
|
|
314
|
+
|
|
315
|
+
readonly threadIdentifier: string
|
|
316
|
+
|
|
317
|
+
readonly title: string
|
|
318
|
+
|
|
319
|
+
readonly userInfo: NSDictionary
|
|
320
|
+
|
|
321
|
+
readonly summaryArgument: string
|
|
322
|
+
|
|
323
|
+
readonly summaryArgumentCount: number
|
|
324
|
+
|
|
325
|
+
readonly targetContentIdentifier: string
|
|
326
|
+
|
|
327
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
328
|
+
|
|
329
|
+
mutableCopyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
330
|
+
|
|
331
|
+
static readonly supportsSecureCoding: boolean
|
|
332
|
+
|
|
333
|
+
encodeWithCoder(coder: NSCoder): void
|
|
334
|
+
|
|
335
|
+
initWithCoder(coder: NSCoder): this
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare class UNNotification extends NSObject implements NSCopying, NSSecureCoding {
|
|
339
|
+
readonly date: NSDate
|
|
340
|
+
|
|
341
|
+
readonly request: UNNotificationRequest
|
|
342
|
+
|
|
343
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
344
|
+
|
|
345
|
+
static readonly supportsSecureCoding: boolean
|
|
346
|
+
|
|
347
|
+
encodeWithCoder(coder: NSCoder): void
|
|
348
|
+
|
|
349
|
+
initWithCoder(coder: NSCoder): this
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare class UNNotificationAction extends NSObject implements NSCopying, NSSecureCoding {
|
|
353
|
+
readonly identifier: string
|
|
354
|
+
|
|
355
|
+
readonly title: string
|
|
356
|
+
|
|
357
|
+
readonly options: interop.Enum<typeof UNNotificationActionOptions>
|
|
358
|
+
|
|
359
|
+
static actionWithIdentifierTitleOptions<This extends abstract new (...args: any) => any>(
|
|
360
|
+
this: This,
|
|
361
|
+
identifier: string,
|
|
362
|
+
title: string,
|
|
363
|
+
options: interop.Enum<typeof UNNotificationActionOptions>,
|
|
364
|
+
): InstanceType<This>
|
|
365
|
+
|
|
366
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
367
|
+
|
|
368
|
+
static readonly supportsSecureCoding: boolean
|
|
369
|
+
|
|
370
|
+
encodeWithCoder(coder: NSCoder): void
|
|
371
|
+
|
|
372
|
+
initWithCoder(coder: NSCoder): this
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
declare class UNTextInputNotificationResponse extends UNNotificationResponse {
|
|
376
|
+
readonly userText: string
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// @ts-ignore ClassDecl.tsIgnore
|
|
380
|
+
declare class UNMutableNotificationContent extends UNNotificationContent {
|
|
381
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
382
|
+
get attachments(): NSArray
|
|
383
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
384
|
+
set attachments(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
385
|
+
|
|
386
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
387
|
+
badge: NSNumber
|
|
388
|
+
|
|
389
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
390
|
+
body: string
|
|
391
|
+
|
|
392
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
393
|
+
categoryIdentifier: string
|
|
394
|
+
|
|
395
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
396
|
+
sound: UNNotificationSound
|
|
397
|
+
|
|
398
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
399
|
+
subtitle: string
|
|
400
|
+
|
|
401
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
402
|
+
threadIdentifier: string
|
|
403
|
+
|
|
404
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
405
|
+
title: string
|
|
406
|
+
|
|
407
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
408
|
+
get userInfo(): NSDictionary
|
|
409
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
410
|
+
set userInfo(
|
|
411
|
+
value: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
415
|
+
summaryArgument: string
|
|
416
|
+
|
|
417
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
418
|
+
summaryArgumentCount: number
|
|
419
|
+
|
|
420
|
+
// @ts-ignore MemberDecl.tsIgnore
|
|
421
|
+
targetContentIdentifier: string
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
declare class UNCalendarNotificationTrigger extends UNNotificationTrigger {
|
|
425
|
+
readonly dateComponents: NSDateComponents
|
|
426
|
+
|
|
427
|
+
static triggerWithDateMatchingComponentsRepeats<This extends abstract new (...args: any) => any>(
|
|
428
|
+
this: This,
|
|
429
|
+
dateComponents: NSDateComponents,
|
|
430
|
+
repeats: boolean,
|
|
431
|
+
): InstanceType<This>
|
|
432
|
+
|
|
433
|
+
nextTriggerDate(): NSDate
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare class UNNotificationCategory extends NSObject implements NSCopying, NSSecureCoding {
|
|
437
|
+
readonly identifier: string
|
|
438
|
+
|
|
439
|
+
readonly actions: NSArray
|
|
440
|
+
|
|
441
|
+
readonly intentIdentifiers: NSArray
|
|
442
|
+
|
|
443
|
+
readonly options: interop.Enum<typeof UNNotificationCategoryOptions>
|
|
444
|
+
|
|
445
|
+
readonly hiddenPreviewsBodyPlaceholder: string
|
|
446
|
+
|
|
447
|
+
readonly categorySummaryFormat: string
|
|
448
|
+
|
|
449
|
+
static categoryWithIdentifierActionsIntentIdentifiersOptions<
|
|
450
|
+
This extends abstract new (...args: any) => any,
|
|
451
|
+
>(
|
|
452
|
+
this: This,
|
|
453
|
+
identifier: string,
|
|
454
|
+
actions: NSArray<interop.Object> | Array<interop.Object>,
|
|
455
|
+
intentIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
456
|
+
options: interop.Enum<typeof UNNotificationCategoryOptions>,
|
|
457
|
+
): InstanceType<This>
|
|
458
|
+
|
|
459
|
+
static categoryWithIdentifierActionsIntentIdentifiersHiddenPreviewsBodyPlaceholderOptions<
|
|
460
|
+
This extends abstract new (...args: any) => any,
|
|
461
|
+
>(
|
|
462
|
+
this: This,
|
|
463
|
+
identifier: string,
|
|
464
|
+
actions: NSArray<interop.Object> | Array<interop.Object>,
|
|
465
|
+
intentIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
466
|
+
hiddenPreviewsBodyPlaceholder: string,
|
|
467
|
+
options: interop.Enum<typeof UNNotificationCategoryOptions>,
|
|
468
|
+
): InstanceType<This>
|
|
469
|
+
|
|
470
|
+
static categoryWithIdentifierActionsIntentIdentifiersHiddenPreviewsBodyPlaceholderCategorySummaryFormatOptions<
|
|
471
|
+
This extends abstract new (...args: any) => any,
|
|
472
|
+
>(
|
|
473
|
+
this: This,
|
|
474
|
+
identifier: string,
|
|
475
|
+
actions: NSArray<interop.Object> | Array<interop.Object>,
|
|
476
|
+
intentIdentifiers: NSArray<interop.Object> | Array<interop.Object>,
|
|
477
|
+
hiddenPreviewsBodyPlaceholder: string | null,
|
|
478
|
+
categorySummaryFormat: string | null,
|
|
479
|
+
options: interop.Enum<typeof UNNotificationCategoryOptions>,
|
|
480
|
+
): InstanceType<This>
|
|
481
|
+
|
|
482
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
483
|
+
|
|
484
|
+
static readonly supportsSecureCoding: boolean
|
|
485
|
+
|
|
486
|
+
encodeWithCoder(coder: NSCoder): void
|
|
487
|
+
|
|
488
|
+
initWithCoder(coder: NSCoder): this
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
declare class UNNotificationSettings extends NSObject implements NSCopying, NSSecureCoding {
|
|
492
|
+
readonly authorizationStatus: interop.Enum<typeof UNAuthorizationStatus>
|
|
493
|
+
|
|
494
|
+
readonly soundSetting: interop.Enum<typeof UNNotificationSetting>
|
|
495
|
+
|
|
496
|
+
readonly badgeSetting: interop.Enum<typeof UNNotificationSetting>
|
|
497
|
+
|
|
498
|
+
readonly alertSetting: interop.Enum<typeof UNNotificationSetting>
|
|
499
|
+
|
|
500
|
+
readonly notificationCenterSetting: interop.Enum<typeof UNNotificationSetting>
|
|
501
|
+
|
|
502
|
+
readonly lockScreenSetting: interop.Enum<typeof UNNotificationSetting>
|
|
503
|
+
|
|
504
|
+
readonly alertStyle: interop.Enum<typeof UNAlertStyle>
|
|
505
|
+
|
|
506
|
+
readonly showPreviewsSetting: interop.Enum<typeof UNShowPreviewsSetting>
|
|
507
|
+
|
|
508
|
+
readonly criticalAlertSetting: interop.Enum<typeof UNNotificationSetting>
|
|
509
|
+
|
|
510
|
+
readonly providesAppNotificationSettings: boolean
|
|
511
|
+
|
|
512
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
513
|
+
|
|
514
|
+
static readonly supportsSecureCoding: boolean
|
|
515
|
+
|
|
516
|
+
encodeWithCoder(coder: NSCoder): void
|
|
517
|
+
|
|
518
|
+
initWithCoder(coder: NSCoder): this
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare class UNTextInputNotificationAction extends UNNotificationAction {
|
|
522
|
+
static actionWithIdentifierTitleOptionsTextInputButtonTitleTextInputPlaceholder<
|
|
523
|
+
This extends abstract new (...args: any) => any,
|
|
524
|
+
>(
|
|
525
|
+
this: This,
|
|
526
|
+
identifier: string,
|
|
527
|
+
title: string,
|
|
528
|
+
options: interop.Enum<typeof UNNotificationActionOptions>,
|
|
529
|
+
textInputButtonTitle: string,
|
|
530
|
+
textInputPlaceholder: string,
|
|
531
|
+
): InstanceType<This>
|
|
532
|
+
|
|
533
|
+
readonly textInputButtonTitle: string
|
|
534
|
+
|
|
535
|
+
readonly textInputPlaceholder: string
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
declare class UNPushNotificationTrigger extends UNNotificationTrigger {}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
|
|
3
|
+
declare const UNNotificationContentExtensionResponseOption: {
|
|
4
|
+
DoNotDismiss: 0
|
|
5
|
+
Dismiss: 1
|
|
6
|
+
DismissAndForwardAction: 2
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare const UNNotificationContentExtensionMediaPlayPauseButtonType: {
|
|
10
|
+
None: 0
|
|
11
|
+
Default: 1
|
|
12
|
+
Overlay: 2
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare interface UNNotificationContentExtension extends NSObjectProtocol {
|
|
16
|
+
didReceiveNotification(notification: UNNotification): void
|
|
17
|
+
|
|
18
|
+
didReceiveNotificationResponseCompletionHandler?(
|
|
19
|
+
response: UNNotificationResponse,
|
|
20
|
+
completion: (p1: interop.Enum<typeof UNNotificationContentExtensionResponseOption>) => void,
|
|
21
|
+
): void
|
|
22
|
+
|
|
23
|
+
readonly mediaPlayPauseButtonType?: interop.Enum<
|
|
24
|
+
typeof UNNotificationContentExtensionMediaPlayPauseButtonType
|
|
25
|
+
>
|
|
26
|
+
|
|
27
|
+
readonly mediaPlayPauseButtonFrame?: CGRect
|
|
28
|
+
|
|
29
|
+
readonly mediaPlayPauseButtonTintColor?: NSColor
|
|
30
|
+
|
|
31
|
+
mediaPlay?(): void
|
|
32
|
+
|
|
33
|
+
mediaPause?(): void
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare class UNNotificationContentExtension
|
|
37
|
+
extends NativeObject
|
|
38
|
+
implements UNNotificationContentExtension {}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
|
|
3
|
+
declare const kVDADecoderFlush_EmitFrames: number
|
|
4
|
+
|
|
5
|
+
declare const kVDADecoderConfiguration_avcCData: interop.Pointer
|
|
6
|
+
|
|
7
|
+
declare const kVDADecoderConfiguration_SourceFormat: interop.Pointer
|
|
8
|
+
|
|
9
|
+
declare const kVDADecoderConfiguration_Height: interop.Pointer
|
|
10
|
+
|
|
11
|
+
declare const kVDADecoderAllocationFailedErr: number
|
|
12
|
+
|
|
13
|
+
declare const kVDADecoderParamErr: number
|
|
14
|
+
|
|
15
|
+
declare const kVDADecoderDecoderFailedErr: number
|
|
16
|
+
|
|
17
|
+
declare const kVDADecoderNoErr: number
|
|
18
|
+
|
|
19
|
+
declare const kVDADecoderDecodeFlags_DontEmitFrame: number
|
|
20
|
+
|
|
21
|
+
declare const kVDADecoderFormatNotSupportedErr: number
|
|
22
|
+
|
|
23
|
+
declare const kVDADecoderConfiguration_Width: interop.Pointer
|
|
24
|
+
|
|
25
|
+
declare const kVDADecoderConfigurationError: number
|
|
26
|
+
|
|
27
|
+
declare const kVDADecoderHardwareNotSupportedErr: number
|
|
28
|
+
|
|
29
|
+
declare class OpaqueVDADecoder {
|
|
30
|
+
constructor(init?: OpaqueVDADecoder)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare function VDADecoderCreate(
|
|
34
|
+
decoderConfiguration: interop.Object,
|
|
35
|
+
destinationImageBufferAttributes: interop.Object,
|
|
36
|
+
outputCallback: interop.PointerConvertible,
|
|
37
|
+
decoderOutputCallbackRefcon: interop.PointerConvertible,
|
|
38
|
+
decoderOut: interop.PointerConvertible,
|
|
39
|
+
): number
|
|
40
|
+
|
|
41
|
+
declare function VDADecoderDecode(
|
|
42
|
+
decoder: interop.PointerConvertible,
|
|
43
|
+
decodeFlags: number,
|
|
44
|
+
compressedBuffer: interop.Object,
|
|
45
|
+
frameInfo: interop.Object,
|
|
46
|
+
): number
|
|
47
|
+
|
|
48
|
+
declare function VDADecoderFlush(decoder: interop.PointerConvertible, flushFlags: number): number
|
|
49
|
+
|
|
50
|
+
declare function VDADecoderDestroy(decoder: interop.PointerConvertible): number
|