@octane-xplat/macos-renderer 0.14.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,103 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./AppKit.d.ts" />
|
|
3
|
+
/// <reference path="./Runtime.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const NCUpdateResult: {
|
|
6
|
+
NewData: 0
|
|
7
|
+
NoData: 1
|
|
8
|
+
Failed: 2
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare interface NCWidgetSearchViewDelegate extends NSObjectProtocol {
|
|
12
|
+
widgetSearchSearchForTermMaxResults(
|
|
13
|
+
controller: NCWidgetSearchViewController,
|
|
14
|
+
searchTerm: string,
|
|
15
|
+
max: number,
|
|
16
|
+
): void
|
|
17
|
+
|
|
18
|
+
widgetSearchTermCleared(controller: NCWidgetSearchViewController): void
|
|
19
|
+
|
|
20
|
+
widgetSearchResultSelected(controller: NCWidgetSearchViewController, object: interop.Object): void
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class NCWidgetSearchViewDelegate
|
|
24
|
+
extends NativeObject
|
|
25
|
+
implements NCWidgetSearchViewDelegate {}
|
|
26
|
+
|
|
27
|
+
declare interface NCWidgetListViewDelegate extends NSObjectProtocol {
|
|
28
|
+
widgetListViewControllerForRow(list: NCWidgetListViewController, row: number): NSViewController
|
|
29
|
+
|
|
30
|
+
widgetListPerformAddAction?(list: NCWidgetListViewController): void
|
|
31
|
+
|
|
32
|
+
widgetListShouldReorderRow?(list: NCWidgetListViewController, row: number): boolean
|
|
33
|
+
|
|
34
|
+
widgetListDidReorderRowToRow?(
|
|
35
|
+
list: NCWidgetListViewController,
|
|
36
|
+
row: number,
|
|
37
|
+
newIndex: number,
|
|
38
|
+
): void
|
|
39
|
+
|
|
40
|
+
widgetListShouldRemoveRow?(list: NCWidgetListViewController, row: number): boolean
|
|
41
|
+
|
|
42
|
+
widgetListDidRemoveRow?(list: NCWidgetListViewController, row: number): void
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare class NCWidgetListViewDelegate extends NativeObject implements NCWidgetListViewDelegate {}
|
|
46
|
+
|
|
47
|
+
declare interface NCWidgetProviding extends NSExtensionRequestHandling {
|
|
48
|
+
widgetPerformUpdateWithCompletionHandler?(
|
|
49
|
+
completionHandler: (p1: interop.Enum<typeof NCUpdateResult>) => void,
|
|
50
|
+
): void
|
|
51
|
+
|
|
52
|
+
widgetMarginInsetsForProposedMarginInsets?(defaultMarginInset: NSEdgeInsets): NSEdgeInsets
|
|
53
|
+
|
|
54
|
+
readonly widgetAllowsEditing?: boolean
|
|
55
|
+
|
|
56
|
+
widgetDidBeginEditing?(): void
|
|
57
|
+
|
|
58
|
+
widgetDidEndEditing?(): void
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare class NCWidgetProviding extends NativeObject implements NCWidgetProviding {}
|
|
62
|
+
|
|
63
|
+
declare class NCWidgetListViewController extends NSViewController {
|
|
64
|
+
delegate: NCWidgetListViewDelegate
|
|
65
|
+
|
|
66
|
+
get contents(): NSArray
|
|
67
|
+
set contents(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
68
|
+
|
|
69
|
+
minimumVisibleRowCount: number
|
|
70
|
+
|
|
71
|
+
hasDividerLines: boolean
|
|
72
|
+
|
|
73
|
+
editing: boolean
|
|
74
|
+
|
|
75
|
+
showsAddButtonWhenEditing: boolean
|
|
76
|
+
|
|
77
|
+
viewControllerAtRowMakeIfNecessary(row: number, makeIfNecesary: boolean): NSViewController
|
|
78
|
+
|
|
79
|
+
rowForViewController(viewController: NSViewController): number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare class NCWidgetSearchViewController extends NSViewController {
|
|
83
|
+
delegate: NCWidgetSearchViewDelegate
|
|
84
|
+
|
|
85
|
+
get searchResults(): NSArray
|
|
86
|
+
set searchResults(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
87
|
+
|
|
88
|
+
searchDescription: string
|
|
89
|
+
|
|
90
|
+
searchResultsPlaceholderString: string
|
|
91
|
+
|
|
92
|
+
searchResultKeyPath: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare class NCWidgetController extends NSObject {
|
|
96
|
+
static widgetController<This extends abstract new (...args: any) => any>(
|
|
97
|
+
this: This,
|
|
98
|
+
): InstanceType<This>
|
|
99
|
+
|
|
100
|
+
static defaultWidgetController(): NCWidgetController
|
|
101
|
+
|
|
102
|
+
setHasContentForWidgetWithBundleIdentifier(flag: boolean, bundleID: string): void
|
|
103
|
+
}
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
/// <reference path="./AppKit.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const OSAStorageTextType: string
|
|
6
|
+
|
|
7
|
+
declare const OSAStorageApplicationBundleType: string
|
|
8
|
+
|
|
9
|
+
declare const OSAStorageScriptBundleType: string
|
|
10
|
+
|
|
11
|
+
declare const OSAStorageScriptType: string
|
|
12
|
+
|
|
13
|
+
declare const OSAScriptErrorBriefMessage: string
|
|
14
|
+
|
|
15
|
+
declare const OSAScriptErrorMessage: string
|
|
16
|
+
|
|
17
|
+
declare const OSAScriptErrorRangeKey: string
|
|
18
|
+
|
|
19
|
+
declare const OSAScriptErrorAppAddressKey: string
|
|
20
|
+
|
|
21
|
+
declare const OSAScriptErrorExpectedTypeKey: string
|
|
22
|
+
|
|
23
|
+
declare const OSAScriptErrorBriefMessageKey: string
|
|
24
|
+
|
|
25
|
+
declare const OSAScriptErrorMessageKey: string
|
|
26
|
+
|
|
27
|
+
declare const OSAScriptErrorAppNameKey: string
|
|
28
|
+
|
|
29
|
+
declare const OSAScriptErrorOffendingObjectKey: string
|
|
30
|
+
|
|
31
|
+
declare const OSAScriptErrorNumberKey: string
|
|
32
|
+
|
|
33
|
+
declare const OSAScriptErrorRange: string
|
|
34
|
+
|
|
35
|
+
declare const OSAScriptErrorPartialResultKey: string
|
|
36
|
+
|
|
37
|
+
declare const OSAStorageApplicationType: string
|
|
38
|
+
|
|
39
|
+
declare const OSAScriptErrorNumber: string
|
|
40
|
+
|
|
41
|
+
declare const OSAScriptErrorAppName: string
|
|
42
|
+
|
|
43
|
+
declare const OSALanguageFeatures: {
|
|
44
|
+
Compiling: 2
|
|
45
|
+
GetSource: 4
|
|
46
|
+
AECoercion: 8
|
|
47
|
+
AESending: 16
|
|
48
|
+
Recording: 32
|
|
49
|
+
Convenience: 64
|
|
50
|
+
Dialects: 128
|
|
51
|
+
EventHandling: 256
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const OSAScriptState: {
|
|
55
|
+
Stopped: 0
|
|
56
|
+
Running: 1
|
|
57
|
+
Recording: 2
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare const OSAStorageOptions: {
|
|
61
|
+
Null: 0
|
|
62
|
+
PreventGetSource: 1
|
|
63
|
+
CompileIntoContext: 2
|
|
64
|
+
DontSetScriptLocation: 16777216
|
|
65
|
+
StayOpenApplet: 268435456
|
|
66
|
+
ShowStartupScreen: 536870912
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
declare class OSAScriptController extends NSController {
|
|
70
|
+
scriptView: OSAScriptView
|
|
71
|
+
|
|
72
|
+
resultView: NSTextView
|
|
73
|
+
|
|
74
|
+
script: OSAScript
|
|
75
|
+
|
|
76
|
+
language: OSALanguage
|
|
77
|
+
|
|
78
|
+
readonly scriptState: interop.Enum<typeof OSAScriptState>
|
|
79
|
+
|
|
80
|
+
readonly compiling: boolean
|
|
81
|
+
|
|
82
|
+
compileScript(sender: interop.Object | null): void
|
|
83
|
+
|
|
84
|
+
recordScript(sender: interop.Object | null): void
|
|
85
|
+
|
|
86
|
+
runScript(sender: interop.Object | null): void
|
|
87
|
+
|
|
88
|
+
stopScript(sender: interop.Object | null): void
|
|
89
|
+
|
|
90
|
+
isCompiling(): boolean
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class OSALanguageInstance extends NSObject {
|
|
94
|
+
static languageInstanceWithLanguage<This extends abstract new (...args: any) => any>(
|
|
95
|
+
this: This,
|
|
96
|
+
language: OSALanguage,
|
|
97
|
+
): InstanceType<This>
|
|
98
|
+
|
|
99
|
+
initWithLanguage(language: OSALanguage): this
|
|
100
|
+
|
|
101
|
+
readonly language: OSALanguage
|
|
102
|
+
|
|
103
|
+
readonly componentInstance: interop.Pointer
|
|
104
|
+
|
|
105
|
+
defaultTarget: NSAppleEventDescriptor
|
|
106
|
+
|
|
107
|
+
richTextFromDescriptor(descriptor: NSAppleEventDescriptor): NSAttributedString
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare class OSAScriptView extends NSTextView {
|
|
111
|
+
source: string
|
|
112
|
+
|
|
113
|
+
usesScriptAssistant: boolean
|
|
114
|
+
|
|
115
|
+
usesTabs: boolean
|
|
116
|
+
|
|
117
|
+
tabWidth: number
|
|
118
|
+
|
|
119
|
+
wrapsLines: boolean
|
|
120
|
+
|
|
121
|
+
indentsWrappedLines: boolean
|
|
122
|
+
|
|
123
|
+
indentWidth: number
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare class OSALanguage extends NSObject {
|
|
127
|
+
static availableLanguages(): NSArray
|
|
128
|
+
|
|
129
|
+
static languageForName(name: string): OSALanguage
|
|
130
|
+
|
|
131
|
+
static languageForScriptDataDescriptor(descriptor: NSAppleEventDescriptor): OSALanguage
|
|
132
|
+
|
|
133
|
+
static defaultLanguage(): OSALanguage
|
|
134
|
+
|
|
135
|
+
static setDefaultLanguage(defaultLanguage: OSALanguage): void
|
|
136
|
+
|
|
137
|
+
initWithComponent(component: interop.PointerConvertible): this
|
|
138
|
+
|
|
139
|
+
sharedLanguageInstance(): OSALanguageInstance
|
|
140
|
+
|
|
141
|
+
readonly componentInstance: interop.Pointer
|
|
142
|
+
|
|
143
|
+
readonly name: string
|
|
144
|
+
|
|
145
|
+
readonly info: string
|
|
146
|
+
|
|
147
|
+
readonly version: string
|
|
148
|
+
|
|
149
|
+
readonly type: number
|
|
150
|
+
|
|
151
|
+
readonly subType: number
|
|
152
|
+
|
|
153
|
+
readonly manufacturer: number
|
|
154
|
+
|
|
155
|
+
readonly features: interop.Enum<typeof OSALanguageFeatures>
|
|
156
|
+
|
|
157
|
+
readonly threadSafe: boolean
|
|
158
|
+
|
|
159
|
+
isThreadSafe(): boolean
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
declare class OSAScript extends NSObject implements NSCopying {
|
|
163
|
+
static scriptDataDescriptorWithContentsOfURL(url: NSURL): NSAppleEventDescriptor
|
|
164
|
+
|
|
165
|
+
initWithSource(source: string): this
|
|
166
|
+
|
|
167
|
+
initWithSourceLanguage(source: string, language: OSALanguage | null): this
|
|
168
|
+
|
|
169
|
+
initWithSourceFromURLLanguageInstanceUsingStorageOptions(
|
|
170
|
+
source: string,
|
|
171
|
+
url: NSURL | null,
|
|
172
|
+
instance: OSALanguageInstance | null,
|
|
173
|
+
storageOptions: interop.Enum<typeof OSAStorageOptions>,
|
|
174
|
+
): this
|
|
175
|
+
|
|
176
|
+
initWithContentsOfURLError(url: NSURL, errorInfo: interop.PointerConvertible): this
|
|
177
|
+
|
|
178
|
+
initWithContentsOfURLLanguageError(
|
|
179
|
+
url: NSURL,
|
|
180
|
+
language: OSALanguage,
|
|
181
|
+
errorInfo: interop.PointerConvertible,
|
|
182
|
+
): this
|
|
183
|
+
|
|
184
|
+
initWithContentsOfURLLanguageInstanceUsingStorageOptionsError(
|
|
185
|
+
url: NSURL,
|
|
186
|
+
instance: OSALanguageInstance | null,
|
|
187
|
+
storageOptions: interop.Enum<typeof OSAStorageOptions>,
|
|
188
|
+
errorInfo: interop.PointerConvertible,
|
|
189
|
+
): this
|
|
190
|
+
|
|
191
|
+
initWithCompiledDataError(data: NSData, errorInfo: interop.PointerConvertible): this
|
|
192
|
+
|
|
193
|
+
initWithCompiledDataFromURLUsingStorageOptionsError(
|
|
194
|
+
data: NSData,
|
|
195
|
+
url: NSURL | null,
|
|
196
|
+
storageOptions: interop.Enum<typeof OSAStorageOptions>,
|
|
197
|
+
errorInfo: interop.PointerConvertible,
|
|
198
|
+
): this
|
|
199
|
+
|
|
200
|
+
initWithScriptDataDescriptorFromURLLanguageInstanceUsingStorageOptionsError(
|
|
201
|
+
data: NSAppleEventDescriptor,
|
|
202
|
+
url: NSURL | null,
|
|
203
|
+
instance: OSALanguageInstance | null,
|
|
204
|
+
storageOptions: interop.Enum<typeof OSAStorageOptions>,
|
|
205
|
+
errorInfo: interop.PointerConvertible,
|
|
206
|
+
): this
|
|
207
|
+
|
|
208
|
+
readonly source: string
|
|
209
|
+
|
|
210
|
+
readonly url: NSURL
|
|
211
|
+
|
|
212
|
+
language: OSALanguage
|
|
213
|
+
|
|
214
|
+
languageInstance: OSALanguageInstance
|
|
215
|
+
|
|
216
|
+
readonly compiled: boolean
|
|
217
|
+
|
|
218
|
+
compileAndReturnError(errorInfo: interop.PointerConvertible): boolean
|
|
219
|
+
|
|
220
|
+
executeAndReturnError(errorInfo: interop.PointerConvertible): NSAppleEventDescriptor
|
|
221
|
+
|
|
222
|
+
executeAppleEventError(
|
|
223
|
+
event: NSAppleEventDescriptor,
|
|
224
|
+
errorInfo: interop.PointerConvertible,
|
|
225
|
+
): NSAppleEventDescriptor
|
|
226
|
+
|
|
227
|
+
executeAndReturnDisplayValueError(
|
|
228
|
+
displayValue: interop.PointerConvertible,
|
|
229
|
+
errorInfo: interop.PointerConvertible,
|
|
230
|
+
): NSAppleEventDescriptor
|
|
231
|
+
|
|
232
|
+
executeHandlerWithNameArgumentsError(
|
|
233
|
+
name: string,
|
|
234
|
+
arguments$: NSArray<interop.Object> | Array<interop.Object>,
|
|
235
|
+
errorInfo: interop.PointerConvertible,
|
|
236
|
+
): NSAppleEventDescriptor
|
|
237
|
+
|
|
238
|
+
readonly richTextSource: NSAttributedString
|
|
239
|
+
|
|
240
|
+
richTextFromDescriptor(descriptor: NSAppleEventDescriptor): NSAttributedString
|
|
241
|
+
|
|
242
|
+
writeToURLOfTypeError(url: NSURL, type: string, errorInfo: interop.PointerConvertible): boolean
|
|
243
|
+
|
|
244
|
+
writeToURLOfTypeUsingStorageOptionsError(
|
|
245
|
+
url: NSURL,
|
|
246
|
+
type: string,
|
|
247
|
+
storageOptions: interop.Enum<typeof OSAStorageOptions>,
|
|
248
|
+
errorInfo: interop.PointerConvertible,
|
|
249
|
+
): boolean
|
|
250
|
+
|
|
251
|
+
compiledDataForTypeUsingStorageOptionsError(
|
|
252
|
+
type: string,
|
|
253
|
+
storageOptions: interop.Enum<typeof OSAStorageOptions>,
|
|
254
|
+
errorInfo: interop.PointerConvertible,
|
|
255
|
+
): NSData
|
|
256
|
+
|
|
257
|
+
isCompiled(): boolean
|
|
258
|
+
|
|
259
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
260
|
+
}
|
package/types/OSLog.d.ts
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
/// <reference path="./Foundation.d.ts" />
|
|
4
|
+
|
|
5
|
+
declare const OSLogEntrySignpostType: {
|
|
6
|
+
Undefined: 0
|
|
7
|
+
IntervalBegin: 1
|
|
8
|
+
IntervalEnd: 2
|
|
9
|
+
Event: 3
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const OSLogEntryLogLevel: {
|
|
13
|
+
Undefined: 0
|
|
14
|
+
Debug: 1
|
|
15
|
+
Info: 2
|
|
16
|
+
Notice: 3
|
|
17
|
+
Error: 4
|
|
18
|
+
Fault: 5
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const OSLogMessageComponentArgumentCategory: {
|
|
22
|
+
Undefined: 0
|
|
23
|
+
Data: 1
|
|
24
|
+
Double: 2
|
|
25
|
+
Int64: 3
|
|
26
|
+
String: 4
|
|
27
|
+
UInt64: 5
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare const OSLogEnumeratorOptions: {
|
|
31
|
+
OSLogEnumeratorReverse: 1
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare const OSLogEntryStoreCategory: {
|
|
35
|
+
Undefined: 0
|
|
36
|
+
Metadata: 1
|
|
37
|
+
ShortTerm: 2
|
|
38
|
+
LongTermAuto: 3
|
|
39
|
+
LongTerm1: 4
|
|
40
|
+
LongTerm3: 5
|
|
41
|
+
LongTerm7: 6
|
|
42
|
+
LongTerm14: 7
|
|
43
|
+
LongTerm30: 8
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare interface OSLogEntryWithPayload {
|
|
47
|
+
readonly category: string
|
|
48
|
+
|
|
49
|
+
readonly components: NSArray
|
|
50
|
+
|
|
51
|
+
readonly formatString: string
|
|
52
|
+
|
|
53
|
+
readonly subsystem: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class OSLogEntryWithPayload extends NativeObject implements OSLogEntryWithPayload {}
|
|
57
|
+
|
|
58
|
+
declare interface OSLogEntryFromProcess {
|
|
59
|
+
readonly activityIdentifier: number
|
|
60
|
+
|
|
61
|
+
readonly process: string
|
|
62
|
+
|
|
63
|
+
readonly processIdentifier: number
|
|
64
|
+
|
|
65
|
+
readonly sender: string
|
|
66
|
+
|
|
67
|
+
readonly threadIdentifier: number
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class OSLogEntryFromProcess extends NativeObject implements OSLogEntryFromProcess {}
|
|
71
|
+
|
|
72
|
+
declare class OSLogPosition extends NSObject {}
|
|
73
|
+
|
|
74
|
+
declare class OSLogEnumerator extends NSEnumerator {}
|
|
75
|
+
|
|
76
|
+
declare class OSLogEntryLog
|
|
77
|
+
extends OSLogEntry
|
|
78
|
+
implements OSLogEntryFromProcess, OSLogEntryWithPayload
|
|
79
|
+
{
|
|
80
|
+
readonly level: interop.Enum<typeof OSLogEntryLogLevel>
|
|
81
|
+
|
|
82
|
+
readonly activityIdentifier: number
|
|
83
|
+
|
|
84
|
+
readonly process: string
|
|
85
|
+
|
|
86
|
+
readonly processIdentifier: number
|
|
87
|
+
|
|
88
|
+
readonly sender: string
|
|
89
|
+
|
|
90
|
+
readonly threadIdentifier: number
|
|
91
|
+
|
|
92
|
+
readonly category: string
|
|
93
|
+
|
|
94
|
+
readonly components: NSArray
|
|
95
|
+
|
|
96
|
+
readonly formatString: string
|
|
97
|
+
|
|
98
|
+
readonly subsystem: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class OSLogEntryActivity extends OSLogEntry implements OSLogEntryFromProcess {
|
|
102
|
+
readonly parentActivityIdentifier: number
|
|
103
|
+
|
|
104
|
+
readonly activityIdentifier: number
|
|
105
|
+
|
|
106
|
+
readonly process: string
|
|
107
|
+
|
|
108
|
+
readonly processIdentifier: number
|
|
109
|
+
|
|
110
|
+
readonly sender: string
|
|
111
|
+
|
|
112
|
+
readonly threadIdentifier: number
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare class OSLogMessageComponent extends NSObject implements NSSecureCoding {
|
|
116
|
+
readonly formatSubstring: string
|
|
117
|
+
|
|
118
|
+
readonly placeholder: string
|
|
119
|
+
|
|
120
|
+
readonly argumentCategory: interop.Enum<typeof OSLogMessageComponentArgumentCategory>
|
|
121
|
+
|
|
122
|
+
readonly argumentDataValue: NSData
|
|
123
|
+
|
|
124
|
+
readonly argumentDoubleValue: number
|
|
125
|
+
|
|
126
|
+
readonly argumentInt64Value: number
|
|
127
|
+
|
|
128
|
+
readonly argumentNumberValue: NSNumber
|
|
129
|
+
|
|
130
|
+
readonly argumentStringValue: string
|
|
131
|
+
|
|
132
|
+
readonly argumentUInt64Value: number
|
|
133
|
+
|
|
134
|
+
static readonly supportsSecureCoding: boolean
|
|
135
|
+
|
|
136
|
+
encodeWithCoder(coder: NSCoder): void
|
|
137
|
+
|
|
138
|
+
initWithCoder(coder: NSCoder): this
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class OSLogEntrySignpost
|
|
142
|
+
extends OSLogEntry
|
|
143
|
+
implements OSLogEntryFromProcess, OSLogEntryWithPayload
|
|
144
|
+
{
|
|
145
|
+
readonly signpostIdentifier: number
|
|
146
|
+
|
|
147
|
+
readonly signpostName: string
|
|
148
|
+
|
|
149
|
+
readonly signpostType: interop.Enum<typeof OSLogEntrySignpostType>
|
|
150
|
+
|
|
151
|
+
readonly activityIdentifier: number
|
|
152
|
+
|
|
153
|
+
readonly process: string
|
|
154
|
+
|
|
155
|
+
readonly processIdentifier: number
|
|
156
|
+
|
|
157
|
+
readonly sender: string
|
|
158
|
+
|
|
159
|
+
readonly threadIdentifier: number
|
|
160
|
+
|
|
161
|
+
readonly category: string
|
|
162
|
+
|
|
163
|
+
readonly components: NSArray
|
|
164
|
+
|
|
165
|
+
readonly formatString: string
|
|
166
|
+
|
|
167
|
+
readonly subsystem: string
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
declare class OSLogEntry extends NSObject {
|
|
171
|
+
readonly composedMessage: string
|
|
172
|
+
|
|
173
|
+
readonly date: NSDate
|
|
174
|
+
|
|
175
|
+
readonly storeCategory: interop.Enum<typeof OSLogEntryStoreCategory>
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
declare class OSLogStore extends NSObject {
|
|
179
|
+
static localStoreAndReturnError<This extends abstract new (...args: any) => any>(
|
|
180
|
+
this: This,
|
|
181
|
+
error: interop.PointerConvertible,
|
|
182
|
+
): InstanceType<This>
|
|
183
|
+
|
|
184
|
+
static storeWithURLError<This extends abstract new (...args: any) => any>(
|
|
185
|
+
this: This,
|
|
186
|
+
url: NSURL,
|
|
187
|
+
error: interop.PointerConvertible,
|
|
188
|
+
): InstanceType<This>
|
|
189
|
+
|
|
190
|
+
init(): this
|
|
191
|
+
|
|
192
|
+
entriesEnumeratorWithOptionsPositionPredicateError(
|
|
193
|
+
options: interop.Enum<typeof OSLogEnumeratorOptions>,
|
|
194
|
+
position: OSLogPosition | null,
|
|
195
|
+
predicate: NSPredicate | null,
|
|
196
|
+
error: interop.PointerConvertible,
|
|
197
|
+
): OSLogEnumerator
|
|
198
|
+
|
|
199
|
+
entriesEnumeratorAndReturnError(error: interop.PointerConvertible): OSLogEnumerator
|
|
200
|
+
|
|
201
|
+
positionWithDate(date: NSDate): OSLogPosition
|
|
202
|
+
|
|
203
|
+
positionWithTimeIntervalSinceEnd(seconds: number): OSLogPosition
|
|
204
|
+
|
|
205
|
+
positionWithTimeIntervalSinceLatestBoot(seconds: number): OSLogPosition
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
declare class OSLogEntryBoundary extends OSLogEntry {}
|