Skip to content

Commit 0c14371

Browse files
authored
feat(types-ios): iOS 16 (#9968)
1 parent 73a9fc2 commit 0c14371

File tree

98 files changed

+12287
-485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+12287
-485
lines changed

packages/types-ios/src/lib/ios/ios.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/// <reference path="objc-x86_64/objc!AVFAudio.d.ts" />
44
/// <reference path="objc-x86_64/objc!AVFoundation.d.ts" />
55
/// <reference path="objc-x86_64/objc!AVKit.d.ts" />
6+
/// <reference path="objc-x86_64/objc!AVRouting.d.ts" />
67
/// <reference path="objc-x86_64/objc!Accelerate.d.ts" />
78
/// <reference path="objc-x86_64/objc!Accessibility.d.ts" />
89
/// <reference path="objc-x86_64/objc!Accounts.d.ts" />
@@ -18,6 +19,7 @@
1819
/// <reference path="objc-x86_64/objc!AudioToolbox.d.ts" />
1920
/// <reference path="objc-x86_64/objc!AuthenticationServices.d.ts" />
2021
/// <reference path="objc-x86_64/objc!AutomaticAssessmentConfiguration.d.ts" />
22+
/// <reference path="objc-x86_64/objc!BackgroundAssets.d.ts" />
2123
/// <reference path="objc-x86_64/objc!BackgroundTasks.d.ts" />
2224
/// <reference path="objc-x86_64/objc!BusinessChat.d.ts" />
2325
/// <reference path="objc-x86_64/objc!CFNetwork.d.ts" />
@@ -26,6 +28,7 @@
2628
/// <reference path="objc-x86_64/objc!ClassKit.d.ts" />
2729
/// <reference path="objc-x86_64/objc!ClockKit.d.ts" />
2830
/// <reference path="objc-x86_64/objc!CloudKit.d.ts" />
31+
/// <reference path="objc-x86_64/objc!ColorSync.d.ts" />
2932
/// <reference path="objc-x86_64/objc!CommonCrypto.d.ts" />
3033
/// <reference path="objc-x86_64/objc!Compression.d.ts" />
3134
/// <reference path="objc-x86_64/objc!Contacts.d.ts" />
@@ -49,11 +52,13 @@
4952
/// <reference path="objc-x86_64/objc!CoreSpotlight.d.ts" />
5053
/// <reference path="objc-x86_64/objc!CoreTelephony.d.ts" />
5154
/// <reference path="objc-x86_64/objc!CoreText.d.ts" />
55+
/// <reference path="objc-x86_64/objc!CoreTransferable.d.ts" />
5256
/// <reference path="objc-x86_64/objc!CoreVideo.d.ts" />
5357
/// <reference path="objc-x86_64/objc!CryptoTokenKit.d.ts" />
5458
/// <reference path="objc-x86_64/objc!Darwin.d.ts" />
5559
/// <reference path="objc-x86_64/objc!DataDetection.d.ts" />
5660
/// <reference path="objc-x86_64/objc!DeviceCheck.d.ts" />
61+
/// <reference path="objc-x86_64/objc!DeviceDiscoveryExtension.d.ts" />
5762
/// <reference path="objc-x86_64/objc!Dispatch.d.ts" />
5863
/// <reference path="objc-x86_64/objc!DispatchIntrospection.d.ts" />
5964
/// <reference path="objc-x86_64/objc!EventKit.d.ts" />
@@ -116,19 +121,24 @@
116121
/// <reference path="objc-x86_64/objc!PhotosUI.d.ts" />
117122
/// <reference path="objc-x86_64/objc!Pods_iostypingsprj.d.ts" />
118123
/// <reference path="objc-x86_64/objc!PushKit.d.ts" />
124+
/// <reference path="objc-x86_64/objc!PushToTalk.d.ts" />
119125
/// <reference path="objc-x86_64/objc!QuartzCore.d.ts" />
120126
/// <reference path="objc-x86_64/objc!QuickLook.d.ts" />
121127
/// <reference path="objc-x86_64/objc!QuickLookThumbnailing.d.ts" />
122128
/// <reference path="objc-x86_64/objc!ReplayKit.d.ts" />
129+
/// <reference path="objc-x86_64/objc!RoomPlan.d.ts" />
123130
/// <reference path="objc-x86_64/objc!SQLite3.d.ts" />
124131
/// <reference path="objc-x86_64/objc!SafariServices.d.ts" />
125132
/// <reference path="objc-x86_64/objc!SceneKit.d.ts" />
126133
/// <reference path="objc-x86_64/objc!ScreenTime.d.ts" />
127134
/// <reference path="objc-x86_64/objc!Security.d.ts" />
128135
/// <reference path="objc-x86_64/objc!SensorKit.d.ts" />
136+
/// <reference path="objc-x86_64/objc!SharedWithYou.d.ts" />
137+
/// <reference path="objc-x86_64/objc!SharedWithYouCore.d.ts" />
129138
/// <reference path="objc-x86_64/objc!ShazamKit.d.ts" />
130139
/// <reference path="objc-x86_64/objc!Social.d.ts" />
131140
/// <reference path="objc-x86_64/objc!SoundAnalysis.d.ts" />
141+
/// <reference path="objc-x86_64/objc!Spatial.d.ts" />
132142
/// <reference path="objc-x86_64/objc!Speech.d.ts" />
133143
/// <reference path="objc-x86_64/objc!SpriteKit.d.ts" />
134144
/// <reference path="objc-x86_64/objc!StoreKit.d.ts" />

packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,10 +446,18 @@ declare class ARConfiguration extends NSObject implements NSCopying {
446446

447447
videoFormat: ARVideoFormat;
448448

449+
videoHDRAllowed: boolean;
450+
449451
worldAlignment: ARWorldAlignment;
450452

453+
static readonly configurableCaptureDeviceForPrimaryCamera: AVCaptureDevice;
454+
451455
static readonly isSupported: boolean;
452456

457+
static readonly recommendedVideoFormatFor4KResolution: ARVideoFormat;
458+
459+
static readonly recommendedVideoFormatForHighResolutionFrameCapturing: ARVideoFormat;
460+
453461
static readonly supportedVideoFormats: NSArray<ARVideoFormat>;
454462

455463
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
@@ -521,6 +529,10 @@ declare const enum ARErrorCode {
521529

522530
LocationUnauthorized = 105,
523531

532+
HighResolutionFrameCaptureInProgress = 106,
533+
534+
HighResolutionFrameCaptureFailed = 107,
535+
524536
WorldTrackingFailed = 200,
525537

526538
GeoTrackingNotAvailableAtLocation = 201,
@@ -673,6 +685,8 @@ declare class ARFrame extends NSObject implements NSCopying {
673685

674686
readonly estimatedDepthData: any;
675687

688+
readonly exifData: NSDictionary<string, any>;
689+
676690
readonly geoTrackingStatus: ARGeoTrackingStatus;
677691

678692
readonly lightEstimate: ARLightEstimate;
@@ -1162,6 +1176,8 @@ declare class ARPlaneAnchor extends ARAnchor {
11621176

11631177
readonly geometry: ARPlaneGeometry;
11641178

1179+
readonly planeExtent: ARPlaneExtent;
1180+
11651181
static readonly classificationSupported: boolean;
11661182
}
11671183

@@ -1211,6 +1227,27 @@ declare const enum ARPlaneDetection {
12111227
Vertical = 2
12121228
}
12131229

1230+
declare class ARPlaneExtent extends NSObject implements NSSecureCoding {
1231+
1232+
static alloc(): ARPlaneExtent; // inherited from NSObject
1233+
1234+
static new(): ARPlaneExtent; // inherited from NSObject
1235+
1236+
readonly height: number;
1237+
1238+
readonly rotationOnYAxis: number;
1239+
1240+
readonly width: number;
1241+
1242+
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
1243+
1244+
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
1245+
1246+
encodeWithCoder(coder: NSCoder): void;
1247+
1248+
initWithCoder(coder: NSCoder): this;
1249+
}
1250+
12141251
declare class ARPlaneGeometry extends NSObject implements NSSecureCoding {
12151252

12161253
static alloc(): ARPlaneGeometry; // inherited from NSObject
@@ -1689,6 +1726,8 @@ declare class ARSession extends NSObject {
16891726

16901727
addAnchor(anchor: ARAnchor): void;
16911728

1729+
captureHighResolutionFrameWithCompletion(completion: (p1: ARFrame, p2: NSError) => void): void;
1730+
16921731
createReferenceObjectWithTransformCenterExtentCompletionHandler(transform: simd_float4x4, center: interop.Reference<number>, extent: interop.Reference<number>, completionHandler: (p1: ARReferenceObject, p2: NSError) => void): void;
16931732

16941733
getCurrentWorldMapWithCompletionHandler(completionHandler: (p1: ARWorldMap, p2: NSError) => void): void;
@@ -1902,6 +1941,10 @@ declare class ARVideoFormat extends NSObject implements NSCopying {
19021941

19031942
readonly imageResolution: CGSize;
19041943

1944+
readonly isRecommendedForHighResolutionFrameCapturing: boolean;
1945+
1946+
readonly videoHDRSupported: boolean;
1947+
19051948
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
19061949
}
19071950

0 commit comments

Comments
 (0)