@geastack/apple 0.2.8
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/LICENSE +202 -0
- package/README.md +54 -0
- package/dist/index.d.ts +127 -0
- package/dist/index.js +3076 -0
- package/generated/AVFoundation.d.ts +112 -0
- package/generated/ActivityKit.d.ts +7 -0
- package/generated/AppKit.d.ts +268 -0
- package/generated/CoreGraphics.d.ts +18 -0
- package/generated/CoreLocation.d.ts +28 -0
- package/generated/CoreMedia.d.ts +8 -0
- package/generated/Dispatch.d.ts +2 -0
- package/generated/Foundation.d.ts +13 -0
- package/generated/MapKit.d.ts +28 -0
- package/generated/Metal.d.ts +91 -0
- package/generated/MetalKit.d.ts +22 -0
- package/generated/Photos.d.ts +5 -0
- package/generated/QuartzCore.d.ts +12 -0
- package/generated/SwiftData.d.ts +11 -0
- package/generated/UIKit.d.ts +187 -0
- package/package.json +123 -0
- package/runtime/AVFoundation.js +136 -0
- package/runtime/ActivityKit.js +18 -0
- package/runtime/AppKit.js +313 -0
- package/runtime/CoreGraphics.js +15 -0
- package/runtime/CoreLocation.js +30 -0
- package/runtime/CoreMedia.js +7 -0
- package/runtime/Dispatch.js +11 -0
- package/runtime/Foundation.js +21 -0
- package/runtime/MapKit.js +22 -0
- package/runtime/Metal.js +126 -0
- package/runtime/MetalKit.js +15 -0
- package/runtime/Photos.js +9 -0
- package/runtime/QuartzCore.js +9 -0
- package/runtime/SwiftData.js +29 -0
- package/runtime/UIKit.js +242 -0
- package/runtime/empty.js +1 -0
- package/targets/ios/Info.plist.in +25 -0
- package/targets/ios/README.md +46 -0
- package/targets/ios/build-ios.sh +395 -0
- package/targets/ios/detect-development-team.mjs +109 -0
- package/targets/ios/generate-resident-entry.mjs +67 -0
- package/targets/ios/generate-resident-registry.mjs +162 -0
- package/targets/ios/generate-xcode-project.mjs +520 -0
- package/targets/ios/main/canvas_view.h +7 -0
- package/targets/ios/main/canvas_view.mm +94 -0
- package/targets/ios/main/font_registry.h +17 -0
- package/targets/ios/main/font_registry.mm +129 -0
- package/targets/ios/main/image_bridge.h +13 -0
- package/targets/ios/main/image_bridge.mm +53 -0
- package/targets/ios/main/ios_apps.c +28 -0
- package/targets/ios/main/ios_camera.mm +446 -0
- package/targets/ios/main/ios_display.mm +344 -0
- package/targets/ios/main/ios_main.mm +811 -0
- package/targets/ios/main/ios_memory.cpp +55 -0
- package/targets/ios/main/ios_renderer.h +20 -0
- package/targets/ios/main/ios_renderer.mm +27 -0
- package/targets/ios/main/ios_root_background.cpp +20 -0
- package/targets/ios/main/ios_root_background.h +11 -0
- package/targets/ios/main/ios_sensors.mm +244 -0
- package/targets/ios/main/ios_timers.mm +53 -0
- package/targets/ios/main/renderer/ios_renderer_internal.h +65 -0
- package/targets/ios/main/renderer/ios_renderer_support.mm +111 -0
- package/targets/ios/main/renderer/native_button.mm +179 -0
- package/targets/ios/main/renderer/native_label.mm +161 -0
- package/targets/ios/main/renderer/native_scroll_container.mm +279 -0
- package/targets/ios/main/renderer/view_reconciler.mm +274 -0
- package/targets/macos/Info.plist.in +26 -0
- package/targets/macos/README.md +131 -0
- package/targets/macos/build-child-lifecycle.sh +119 -0
- package/targets/macos/build-macos.sh +2156 -0
- package/targets/macos/check-module-graph-freshness.mjs +82 -0
- package/targets/macos/compiler-input-fingerprint.mjs +32 -0
- package/targets/macos/finalize-apple-native-output.mjs +77 -0
- package/targets/macos/generate-resident-entry.mjs +80 -0
- package/targets/macos/generate-resident-registry.mjs +141 -0
- package/targets/macos/heavy-build-lock.sh +176 -0
- package/targets/macos/main/canvas_view.h +9 -0
- package/targets/macos/main/canvas_view.mm +176 -0
- package/targets/macos/main/color_convert.h +18 -0
- package/targets/macos/main/color_convert.mm +39 -0
- package/targets/macos/main/font_registry.h +35 -0
- package/targets/macos/main/font_registry.mm +350 -0
- package/targets/macos/main/image_bridge.h +16 -0
- package/targets/macos/main/image_bridge.mm +52 -0
- package/targets/macos/main/macos_app_platform.mm +95 -0
- package/targets/macos/main/macos_apps.c +31 -0
- package/targets/macos/main/macos_device_control.mm +56 -0
- package/targets/macos/main/macos_display.mm +484 -0
- package/targets/macos/main/macos_host_device_control.mm +95 -0
- package/targets/macos/main/macos_main.mm +839 -0
- package/targets/macos/main/macos_memory.cpp +31 -0
- package/targets/macos/main/macos_native_shell.h +31 -0
- package/targets/macos/main/macos_native_shell.mm +396 -0
- package/targets/macos/main/macos_network.mm +253 -0
- package/targets/macos/main/macos_renderer.h +39 -0
- package/targets/macos/main/macos_renderer.mm +1969 -0
- package/targets/macos/main/macos_sensors.cpp +148 -0
- package/targets/macos/main/macos_smoke_app.cpp +65 -0
- package/targets/macos/main/macos_timers.mm +52 -0
- package/targets/macos/main/press_bridge.h +21 -0
- package/targets/macos/main/press_bridge.mm +72 -0
- package/targets/macos/main/thermalright_hid_display.h +14 -0
- package/targets/macos/main/thermalright_hid_display.mm +995 -0
- package/targets/macos/native-artifact-provenance.mjs +421 -0
- package/targets/macos/order-compile-edges.mjs +64 -0
- package/targets/macos/preflight-hard-muted-artifact.mjs +93 -0
- package/targets/macos/prune-generated-modules.mjs +147 -0
- package/targets/macos/sync-resources.mjs +153 -0
- package/targets/shared/analyze-audio-capture.mjs +131 -0
- package/targets/shared/apple_audio.mm +1194 -0
- package/targets/shared/apple_audio_selftest.mm +602 -0
- package/targets/shared/apple_audio_testing.h +34 -0
- package/targets/shared/build-audio-selftest.sh +50 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import type { NSObject, NSURL } from '@geastack/apple/Foundation'
|
|
2
|
+
import type { CGRect } from '@geastack/apple/CoreGraphics'
|
|
3
|
+
import type { CALayer } from '@geastack/apple/QuartzCore'
|
|
4
|
+
|
|
5
|
+
export type Selector = string
|
|
6
|
+
|
|
7
|
+
export declare const UIAlertActionStyleDefault: number
|
|
8
|
+
export declare const UIAlertActionStyleCancel: number
|
|
9
|
+
export declare const UIAlertActionStyleDestructive: number
|
|
10
|
+
export declare const UIAlertControllerStyleActionSheet: number
|
|
11
|
+
export declare const UIAlertControllerStyleAlert: number
|
|
12
|
+
export declare const UIModalPresentationFullScreen: number
|
|
13
|
+
export declare const UIControlEventTouchDown: number
|
|
14
|
+
export declare const UIControlEventTouchUpInside: number
|
|
15
|
+
export declare const UIControlEventTouchUpOutside: number
|
|
16
|
+
export declare const UIControlEventTouchCancel: number
|
|
17
|
+
export declare const UIControlEventValueChanged: number
|
|
18
|
+
export declare const ObjCTargetAction: Selector
|
|
19
|
+
|
|
20
|
+
export declare function installRootView(view: UIView): void
|
|
21
|
+
|
|
22
|
+
export declare class UIColor extends NSObject {
|
|
23
|
+
static systemBackgroundColor(): UIColor
|
|
24
|
+
static systemGroupedBackgroundColor(): UIColor
|
|
25
|
+
static secondarySystemGroupedBackgroundColor(): UIColor
|
|
26
|
+
static labelColor(): UIColor
|
|
27
|
+
static secondaryLabelColor(): UIColor
|
|
28
|
+
static systemBlueColor(): UIColor
|
|
29
|
+
static systemIndigoColor(): UIColor
|
|
30
|
+
static systemPurpleColor(): UIColor
|
|
31
|
+
static systemTealColor(): UIColor
|
|
32
|
+
static systemGreenColor(): UIColor
|
|
33
|
+
static systemOrangeColor(): UIColor
|
|
34
|
+
static systemGray5Color(): UIColor
|
|
35
|
+
static whiteColor(): UIColor
|
|
36
|
+
static blackColor(): UIColor
|
|
37
|
+
static colorWithRed(red: number, green: number, blue: number, alpha: number): UIColor
|
|
38
|
+
static colorWithRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): UIColor
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare class UIFont extends NSObject {
|
|
42
|
+
static systemFontOfSize(fontSize: number): UIFont
|
|
43
|
+
static systemFontOfSizeWeight(fontSize: number, weight: number): UIFont
|
|
44
|
+
static boldSystemFontOfSize(fontSize: number): UIFont
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare class UIScreen extends NSObject {
|
|
48
|
+
readonly bounds: CGRect
|
|
49
|
+
readonly scale: number
|
|
50
|
+
static mainScreen(): UIScreen
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare class UIApplication extends NSObject {
|
|
54
|
+
readonly keyWindow: UIWindow
|
|
55
|
+
static sharedApplication(): UIApplication
|
|
56
|
+
openURL(url: NSURL): boolean
|
|
57
|
+
openURLOptionsCompletionHandler(url: NSURL, options: NSDictionary, completionHandler: (success: boolean) => void): void
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare class UIViewController extends NSObject {
|
|
61
|
+
constructor()
|
|
62
|
+
view: UIView
|
|
63
|
+
title: string
|
|
64
|
+
modalPresentationStyle: number
|
|
65
|
+
presentViewControllerAnimatedCompletion(viewControllerToPresent: UIViewController, animated: boolean, completion: () => void): void
|
|
66
|
+
dismissViewControllerAnimatedCompletion(animated: boolean, completion: () => void): void
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare class UINavigationController extends UIViewController {
|
|
70
|
+
constructor(rootViewController: UIViewController)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export declare class UIAlertAction extends NSObject {
|
|
74
|
+
static actionWithTitleStyleHandler(title: string, style: number, handler: (action: UIAlertAction) => void): UIAlertAction
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export declare class UIAlertController extends UIViewController {
|
|
78
|
+
static alertControllerWithTitleMessagePreferredStyle(title: string, message: string, preferredStyle: number): UIAlertController
|
|
79
|
+
addAction(action: UIAlertAction): void
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export declare class UIAction extends NSObject {
|
|
83
|
+
static actionWithHandler(handler: (action: UIAction) => void): UIAction
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export declare class ObjCTarget {
|
|
87
|
+
static create(callback: () => void): NSObject
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export declare class UIView extends NSObject {
|
|
91
|
+
constructor()
|
|
92
|
+
frame: CGRect
|
|
93
|
+
bounds: CGRect
|
|
94
|
+
backgroundColor: UIColor | null
|
|
95
|
+
tintColor: UIColor | null
|
|
96
|
+
readonly layer: CALayer
|
|
97
|
+
alpha: number
|
|
98
|
+
hidden: boolean
|
|
99
|
+
clipsToBounds: boolean
|
|
100
|
+
userInteractionEnabled: boolean
|
|
101
|
+
tag: number
|
|
102
|
+
isAccessibilityElement: boolean
|
|
103
|
+
accessibilityLabel: string
|
|
104
|
+
addSubview(view: UIView): void
|
|
105
|
+
layoutIfNeeded(): void
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export declare class UIWindow extends UIView {
|
|
109
|
+
rootViewController: UIViewController
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export declare class UIControl extends UIView {
|
|
113
|
+
addTarget(target: NSObject | null, action: Selector, controlEvents: number): void
|
|
114
|
+
addAction(action: UIAction, controlEvents: number): void
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export declare class UIButton extends UIControl {
|
|
118
|
+
constructor()
|
|
119
|
+
readonly titleLabel: UILabel
|
|
120
|
+
setTitle(title: string, state: number): void
|
|
121
|
+
setTitleColor(color: UIColor, state: number): void
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare class UILabel extends UIView {
|
|
125
|
+
constructor()
|
|
126
|
+
text: string
|
|
127
|
+
textColor: UIColor | null
|
|
128
|
+
font: UIFont | null
|
|
129
|
+
numberOfLines: number
|
|
130
|
+
textAlignment: number
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export declare class UIImage extends NSObject {
|
|
134
|
+
static systemImageNamed(name: string): UIImage | null
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export declare class UIImageView extends UIView {
|
|
138
|
+
constructor()
|
|
139
|
+
image: UIImage | null
|
|
140
|
+
tintColor: UIColor | null
|
|
141
|
+
contentMode: number
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare class UIStackView extends UIView {
|
|
145
|
+
constructor()
|
|
146
|
+
axis: number
|
|
147
|
+
alignment: number
|
|
148
|
+
distribution: number
|
|
149
|
+
spacing: number
|
|
150
|
+
addArrangedSubview(view: UIView): void
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export declare class UIBlurEffect extends NSObject {
|
|
154
|
+
static effectWithStyle(style: number): UIBlurEffect
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export declare class UIVisualEffectView extends UIView {
|
|
158
|
+
constructor()
|
|
159
|
+
effect: UIBlurEffect | null
|
|
160
|
+
readonly contentView: UIView
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export declare class UISwitch extends UIView {
|
|
164
|
+
constructor()
|
|
165
|
+
on: boolean
|
|
166
|
+
onTintColor: UIColor | null
|
|
167
|
+
thumbTintColor: UIColor | null
|
|
168
|
+
setOn(on: boolean, animated: boolean): void
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export declare class UIProgressView extends UIView {
|
|
172
|
+
constructor()
|
|
173
|
+
progress: number
|
|
174
|
+
progressTintColor: UIColor | null
|
|
175
|
+
trackTintColor: UIColor | null
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export declare class UISlider extends UIControl {
|
|
179
|
+
constructor()
|
|
180
|
+
value: number
|
|
181
|
+
minimumValue: number
|
|
182
|
+
maximumValue: number
|
|
183
|
+
continuous: boolean
|
|
184
|
+
minimumTrackTintColor: UIColor | null
|
|
185
|
+
maximumTrackTintColor: UIColor | null
|
|
186
|
+
thumbTintColor: UIColor | null
|
|
187
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@geastack/apple",
|
|
3
|
+
"version": "0.2.8",
|
|
4
|
+
"description": "Generated Apple SDK bindings plus the macOS and iOS native build targets for Gea apps.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/geastack/apple.git",
|
|
9
|
+
"directory": "packages/geastack-apple"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=20.19"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./Foundation": {
|
|
24
|
+
"types": "./generated/Foundation.d.ts",
|
|
25
|
+
"import": "./runtime/Foundation.js"
|
|
26
|
+
},
|
|
27
|
+
"./Dispatch": {
|
|
28
|
+
"types": "./generated/Dispatch.d.ts",
|
|
29
|
+
"import": "./runtime/Dispatch.js"
|
|
30
|
+
},
|
|
31
|
+
"./CoreGraphics": {
|
|
32
|
+
"types": "./generated/CoreGraphics.d.ts",
|
|
33
|
+
"import": "./runtime/CoreGraphics.js"
|
|
34
|
+
},
|
|
35
|
+
"./CoreMedia": {
|
|
36
|
+
"types": "./generated/CoreMedia.d.ts",
|
|
37
|
+
"import": "./runtime/CoreMedia.js"
|
|
38
|
+
},
|
|
39
|
+
"./CoreLocation": {
|
|
40
|
+
"types": "./generated/CoreLocation.d.ts",
|
|
41
|
+
"import": "./runtime/CoreLocation.js"
|
|
42
|
+
},
|
|
43
|
+
"./QuartzCore": {
|
|
44
|
+
"types": "./generated/QuartzCore.d.ts",
|
|
45
|
+
"import": "./runtime/QuartzCore.js"
|
|
46
|
+
},
|
|
47
|
+
"./UIKit": {
|
|
48
|
+
"types": "./generated/UIKit.d.ts",
|
|
49
|
+
"import": "./runtime/UIKit.js"
|
|
50
|
+
},
|
|
51
|
+
"./MapKit": {
|
|
52
|
+
"types": "./generated/MapKit.d.ts",
|
|
53
|
+
"import": "./runtime/MapKit.js"
|
|
54
|
+
},
|
|
55
|
+
"./AVFoundation": {
|
|
56
|
+
"types": "./generated/AVFoundation.d.ts",
|
|
57
|
+
"import": "./runtime/AVFoundation.js"
|
|
58
|
+
},
|
|
59
|
+
"./Metal": {
|
|
60
|
+
"types": "./generated/Metal.d.ts",
|
|
61
|
+
"import": "./runtime/Metal.js"
|
|
62
|
+
},
|
|
63
|
+
"./MetalKit": {
|
|
64
|
+
"types": "./generated/MetalKit.d.ts",
|
|
65
|
+
"import": "./runtime/MetalKit.js"
|
|
66
|
+
},
|
|
67
|
+
"./Photos": {
|
|
68
|
+
"types": "./generated/Photos.d.ts",
|
|
69
|
+
"import": "./runtime/Photos.js"
|
|
70
|
+
},
|
|
71
|
+
"./AppKit": {
|
|
72
|
+
"types": "./generated/AppKit.d.ts",
|
|
73
|
+
"import": "./runtime/AppKit.js"
|
|
74
|
+
},
|
|
75
|
+
"./ActivityKit": {
|
|
76
|
+
"types": "./generated/ActivityKit.d.ts",
|
|
77
|
+
"import": "./runtime/ActivityKit.js"
|
|
78
|
+
},
|
|
79
|
+
"./SwiftData": {
|
|
80
|
+
"types": "./generated/SwiftData.d.ts",
|
|
81
|
+
"import": "./runtime/SwiftData.js"
|
|
82
|
+
},
|
|
83
|
+
"./package.json": "./package.json",
|
|
84
|
+
"./targets/*": "./targets/*"
|
|
85
|
+
},
|
|
86
|
+
"files": [
|
|
87
|
+
"dist",
|
|
88
|
+
"generated",
|
|
89
|
+
"runtime",
|
|
90
|
+
"targets",
|
|
91
|
+
"!targets/**/test",
|
|
92
|
+
"!targets/**/test/**",
|
|
93
|
+
"!targets/*/dist",
|
|
94
|
+
"!targets/*/generated",
|
|
95
|
+
"!targets/*/build",
|
|
96
|
+
"!targets/*/DerivedData",
|
|
97
|
+
"!targets/**/*.log",
|
|
98
|
+
"!targets/**/test-*.mjs",
|
|
99
|
+
"!targets/**/test-*.sh"
|
|
100
|
+
],
|
|
101
|
+
"publishConfig": {
|
|
102
|
+
"access": "public"
|
|
103
|
+
},
|
|
104
|
+
"dependencies": {
|
|
105
|
+
"@geastack/compiler": "^1.0.12",
|
|
106
|
+
"@geastack/core": "^0.1.21",
|
|
107
|
+
"@geastack/elements": "^0.1.0",
|
|
108
|
+
"@geastack/engine": "^0.1.2",
|
|
109
|
+
"@geastack/geaos": "^0.1.1",
|
|
110
|
+
"@geastack/geatsc-plugin-apple-native": "^0.1.0",
|
|
111
|
+
"@geastack/geatsc-plugin-gea": "^0.1.3",
|
|
112
|
+
"@geastack/host": "^0.1.6"
|
|
113
|
+
},
|
|
114
|
+
"scripts": {
|
|
115
|
+
"prepublishOnly": "npm run build",
|
|
116
|
+
"build": "tsc -p tsconfig.json",
|
|
117
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
118
|
+
},
|
|
119
|
+
"devDependencies": {
|
|
120
|
+
"@types/node": "^22.15.3",
|
|
121
|
+
"typescript": "^5.9.3"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function geaAppleAVFoundationNativeOnly(name) {
|
|
2
|
+
throw new Error(`@geajs/apple/AVFoundation ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export const AVMediaTypeVideo = "vide"
|
|
6
|
+
export const AVLayerVideoGravityResizeAspectFill = "resizeAspectFill"
|
|
7
|
+
export const AVCaptureSessionPresetPhoto = "Photo"
|
|
8
|
+
export const AVCaptureSessionPresetHigh = "High"
|
|
9
|
+
export const AVCaptureSessionPresetMedium = "Medium"
|
|
10
|
+
export const AVCaptureFocusModeLocked = 0
|
|
11
|
+
export const AVCaptureFocusModeAutoFocus = 1
|
|
12
|
+
export const AVCaptureFocusModeContinuousAutoFocus = 2
|
|
13
|
+
export const AVCaptureExposureModeLocked = 0
|
|
14
|
+
export const AVCaptureExposureModeAutoExpose = 1
|
|
15
|
+
export const AVCaptureExposureModeContinuousAutoExposure = 2
|
|
16
|
+
export const AVCaptureExposureModeCustom = 3
|
|
17
|
+
export const AVCaptureWhiteBalanceModeLocked = 0
|
|
18
|
+
export const AVCaptureWhiteBalanceModeAutoWhiteBalance = 1
|
|
19
|
+
export const AVCaptureWhiteBalanceModeContinuousAutoWhiteBalance = 2
|
|
20
|
+
export const AVCaptureFlashModeOff = 0
|
|
21
|
+
export const AVCaptureFlashModeOn = 1
|
|
22
|
+
export const AVCaptureFlashModeAuto = 2
|
|
23
|
+
export const AVCapturePhotoQualityPrioritizationSpeed = 1
|
|
24
|
+
export const AVCapturePhotoQualityPrioritizationBalanced = 2
|
|
25
|
+
export const AVCapturePhotoQualityPrioritizationQuality = 3
|
|
26
|
+
export const AVCaptureDevicePositionUnspecified = 0
|
|
27
|
+
export const AVCaptureDevicePositionBack = 1
|
|
28
|
+
export const AVCaptureDevicePositionFront = 2
|
|
29
|
+
export const AVCaptureDeviceTypeBuiltInWideAngleCamera = "AVCaptureDeviceTypeBuiltInWideAngleCamera"
|
|
30
|
+
export const AVCaptureDeviceTypeBuiltInUltraWideCamera = "AVCaptureDeviceTypeBuiltInUltraWideCamera"
|
|
31
|
+
export const AVCaptureDeviceTypeBuiltInTelephotoCamera = "AVCaptureDeviceTypeBuiltInTelephotoCamera"
|
|
32
|
+
export const AVCaptureDeviceTypeBuiltInDualCamera = "AVCaptureDeviceTypeBuiltInDualCamera"
|
|
33
|
+
export const AVCaptureDeviceTypeBuiltInDualWideCamera = "AVCaptureDeviceTypeBuiltInDualWideCamera"
|
|
34
|
+
export const AVCaptureDeviceTypeBuiltInTripleCamera = "AVCaptureDeviceTypeBuiltInTripleCamera"
|
|
35
|
+
|
|
36
|
+
export class AVCaptureInput {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class AVCaptureOutput {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class AVCaptureDeviceFormat {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class AVCaptureDevice {
|
|
46
|
+
static defaultDeviceWithMediaType() {
|
|
47
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.defaultDeviceWithMediaType")
|
|
48
|
+
}
|
|
49
|
+
static defaultDeviceWithDeviceTypeMediaTypePosition() {
|
|
50
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.defaultDeviceWithDeviceTypeMediaTypePosition")
|
|
51
|
+
}
|
|
52
|
+
lockForConfiguration() {
|
|
53
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.lockForConfiguration")
|
|
54
|
+
}
|
|
55
|
+
unlockForConfiguration() {
|
|
56
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.unlockForConfiguration")
|
|
57
|
+
}
|
|
58
|
+
isFocusModeSupported() {
|
|
59
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.isFocusModeSupported")
|
|
60
|
+
}
|
|
61
|
+
isExposureModeSupported() {
|
|
62
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.isExposureModeSupported")
|
|
63
|
+
}
|
|
64
|
+
isWhiteBalanceModeSupported() {
|
|
65
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.isWhiteBalanceModeSupported")
|
|
66
|
+
}
|
|
67
|
+
isFlashModeSupported() {
|
|
68
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.isFlashModeSupported")
|
|
69
|
+
}
|
|
70
|
+
setExposureTargetBiasCompletionHandler() {
|
|
71
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.setExposureTargetBiasCompletionHandler")
|
|
72
|
+
}
|
|
73
|
+
setExposureModeCustomWithDurationISOCompletionHandler() {
|
|
74
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDevice.setExposureModeCustomWithDurationISOCompletionHandler")
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export class AVCaptureDeviceInput {
|
|
79
|
+
static deviceInputWithDevice() {
|
|
80
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureDeviceInput.deviceInputWithDevice")
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class AVCaptureSession {
|
|
85
|
+
constructor() {
|
|
86
|
+
geaAppleAVFoundationNativeOnly("new AVCaptureSession")
|
|
87
|
+
}
|
|
88
|
+
beginConfiguration() {
|
|
89
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.beginConfiguration")
|
|
90
|
+
}
|
|
91
|
+
commitConfiguration() {
|
|
92
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.commitConfiguration")
|
|
93
|
+
}
|
|
94
|
+
canAddInput() {
|
|
95
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.canAddInput")
|
|
96
|
+
}
|
|
97
|
+
canSetSessionPreset() {
|
|
98
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.canSetSessionPreset")
|
|
99
|
+
}
|
|
100
|
+
addInput() {
|
|
101
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.addInput")
|
|
102
|
+
}
|
|
103
|
+
canAddOutput() {
|
|
104
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.canAddOutput")
|
|
105
|
+
}
|
|
106
|
+
addOutput() {
|
|
107
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.addOutput")
|
|
108
|
+
}
|
|
109
|
+
startRunning() {
|
|
110
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.startRunning")
|
|
111
|
+
}
|
|
112
|
+
stopRunning() {
|
|
113
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureSession.stopRunning")
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export class AVCapturePhotoSettings {
|
|
118
|
+
static photoSettings() {
|
|
119
|
+
return geaAppleAVFoundationNativeOnly("AVCapturePhotoSettings.photoSettings")
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export class AVCapturePhotoOutput {
|
|
124
|
+
constructor() {
|
|
125
|
+
geaAppleAVFoundationNativeOnly("new AVCapturePhotoOutput")
|
|
126
|
+
}
|
|
127
|
+
capturePhotoWithSettingsHandler() {
|
|
128
|
+
return geaAppleAVFoundationNativeOnly("AVCapturePhotoOutput.capturePhotoWithSettingsHandler")
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export class AVCaptureVideoPreviewLayer {
|
|
133
|
+
static layerWithSession() {
|
|
134
|
+
return geaAppleAVFoundationNativeOnly("AVCaptureVideoPreviewLayer.layerWithSession")
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function geaAppleActivityKitNativeOnly(name) {
|
|
2
|
+
throw new Error(`@geajs/apple/ActivityKit ${name} is native-only and must be lowered by @geastack/geatsc-plugin-apple-native.`)
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export function requestLiveActivity() {
|
|
6
|
+
return geaAppleActivityKitNativeOnly("requestLiveActivity")
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function updateLiveActivity() {
|
|
10
|
+
return geaAppleActivityKitNativeOnly("updateLiveActivity")
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function endLiveActivity() {
|
|
14
|
+
return geaAppleActivityKitNativeOnly("endLiveActivity")
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class LiveActivityHandle {
|
|
18
|
+
}
|