Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions packages/types-ios/src/lib/ios/ios.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/// <reference path="objc-x86_64/objc!AVFAudio.d.ts" />
/// <reference path="objc-x86_64/objc!AVFoundation.d.ts" />
/// <reference path="objc-x86_64/objc!AVKit.d.ts" />
/// <reference path="objc-x86_64/objc!AVRouting.d.ts" />
/// <reference path="objc-x86_64/objc!Accelerate.d.ts" />
/// <reference path="objc-x86_64/objc!Accessibility.d.ts" />
/// <reference path="objc-x86_64/objc!Accounts.d.ts" />
Expand All @@ -18,6 +19,7 @@
/// <reference path="objc-x86_64/objc!AudioToolbox.d.ts" />
/// <reference path="objc-x86_64/objc!AuthenticationServices.d.ts" />
/// <reference path="objc-x86_64/objc!AutomaticAssessmentConfiguration.d.ts" />
/// <reference path="objc-x86_64/objc!BackgroundAssets.d.ts" />
/// <reference path="objc-x86_64/objc!BackgroundTasks.d.ts" />
/// <reference path="objc-x86_64/objc!BusinessChat.d.ts" />
/// <reference path="objc-x86_64/objc!CFNetwork.d.ts" />
Expand All @@ -26,6 +28,7 @@
/// <reference path="objc-x86_64/objc!ClassKit.d.ts" />
/// <reference path="objc-x86_64/objc!ClockKit.d.ts" />
/// <reference path="objc-x86_64/objc!CloudKit.d.ts" />
/// <reference path="objc-x86_64/objc!ColorSync.d.ts" />
/// <reference path="objc-x86_64/objc!CommonCrypto.d.ts" />
/// <reference path="objc-x86_64/objc!Compression.d.ts" />
/// <reference path="objc-x86_64/objc!Contacts.d.ts" />
Expand All @@ -49,11 +52,13 @@
/// <reference path="objc-x86_64/objc!CoreSpotlight.d.ts" />
/// <reference path="objc-x86_64/objc!CoreTelephony.d.ts" />
/// <reference path="objc-x86_64/objc!CoreText.d.ts" />
/// <reference path="objc-x86_64/objc!CoreTransferable.d.ts" />
/// <reference path="objc-x86_64/objc!CoreVideo.d.ts" />
/// <reference path="objc-x86_64/objc!CryptoTokenKit.d.ts" />
/// <reference path="objc-x86_64/objc!Darwin.d.ts" />
/// <reference path="objc-x86_64/objc!DataDetection.d.ts" />
/// <reference path="objc-x86_64/objc!DeviceCheck.d.ts" />
/// <reference path="objc-x86_64/objc!DeviceDiscoveryExtension.d.ts" />
/// <reference path="objc-x86_64/objc!Dispatch.d.ts" />
/// <reference path="objc-x86_64/objc!DispatchIntrospection.d.ts" />
/// <reference path="objc-x86_64/objc!EventKit.d.ts" />
Expand Down Expand Up @@ -116,19 +121,24 @@
/// <reference path="objc-x86_64/objc!PhotosUI.d.ts" />
/// <reference path="objc-x86_64/objc!Pods_iostypingsprj.d.ts" />
/// <reference path="objc-x86_64/objc!PushKit.d.ts" />
/// <reference path="objc-x86_64/objc!PushToTalk.d.ts" />
/// <reference path="objc-x86_64/objc!QuartzCore.d.ts" />
/// <reference path="objc-x86_64/objc!QuickLook.d.ts" />
/// <reference path="objc-x86_64/objc!QuickLookThumbnailing.d.ts" />
/// <reference path="objc-x86_64/objc!ReplayKit.d.ts" />
/// <reference path="objc-x86_64/objc!RoomPlan.d.ts" />
/// <reference path="objc-x86_64/objc!SQLite3.d.ts" />
/// <reference path="objc-x86_64/objc!SafariServices.d.ts" />
/// <reference path="objc-x86_64/objc!SceneKit.d.ts" />
/// <reference path="objc-x86_64/objc!ScreenTime.d.ts" />
/// <reference path="objc-x86_64/objc!Security.d.ts" />
/// <reference path="objc-x86_64/objc!SensorKit.d.ts" />
/// <reference path="objc-x86_64/objc!SharedWithYou.d.ts" />
/// <reference path="objc-x86_64/objc!SharedWithYouCore.d.ts" />
/// <reference path="objc-x86_64/objc!ShazamKit.d.ts" />
/// <reference path="objc-x86_64/objc!Social.d.ts" />
/// <reference path="objc-x86_64/objc!SoundAnalysis.d.ts" />
/// <reference path="objc-x86_64/objc!Spatial.d.ts" />
/// <reference path="objc-x86_64/objc!Speech.d.ts" />
/// <reference path="objc-x86_64/objc!SpriteKit.d.ts" />
/// <reference path="objc-x86_64/objc!StoreKit.d.ts" />
Expand Down
43 changes: 43 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,18 @@ declare class ARConfiguration extends NSObject implements NSCopying {

videoFormat: ARVideoFormat;

videoHDRAllowed: boolean;

worldAlignment: ARWorldAlignment;

static readonly configurableCaptureDeviceForPrimaryCamera: AVCaptureDevice;

static readonly isSupported: boolean;

static readonly recommendedVideoFormatFor4KResolution: ARVideoFormat;

static readonly recommendedVideoFormatForHighResolutionFrameCapturing: ARVideoFormat;

static readonly supportedVideoFormats: NSArray<ARVideoFormat>;

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

LocationUnauthorized = 105,

HighResolutionFrameCaptureInProgress = 106,

HighResolutionFrameCaptureFailed = 107,

WorldTrackingFailed = 200,

GeoTrackingNotAvailableAtLocation = 201,
Expand Down Expand Up @@ -673,6 +685,8 @@ declare class ARFrame extends NSObject implements NSCopying {

readonly estimatedDepthData: any;

readonly exifData: NSDictionary<string, any>;

readonly geoTrackingStatus: ARGeoTrackingStatus;

readonly lightEstimate: ARLightEstimate;
Expand Down Expand Up @@ -1162,6 +1176,8 @@ declare class ARPlaneAnchor extends ARAnchor {

readonly geometry: ARPlaneGeometry;

readonly planeExtent: ARPlaneExtent;

static readonly classificationSupported: boolean;
}

Expand Down Expand Up @@ -1211,6 +1227,27 @@ declare const enum ARPlaneDetection {
Vertical = 2
}

declare class ARPlaneExtent extends NSObject implements NSSecureCoding {

static alloc(): ARPlaneExtent; // inherited from NSObject

static new(): ARPlaneExtent; // inherited from NSObject

readonly height: number;

readonly rotationOnYAxis: number;

readonly width: number;

static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding

constructor(o: { coder: NSCoder; }); // inherited from NSCoding

encodeWithCoder(coder: NSCoder): void;

initWithCoder(coder: NSCoder): this;
}

declare class ARPlaneGeometry extends NSObject implements NSSecureCoding {

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

addAnchor(anchor: ARAnchor): void;

captureHighResolutionFrameWithCompletion(completion: (p1: ARFrame, p2: NSError) => void): void;

createReferenceObjectWithTransformCenterExtentCompletionHandler(transform: simd_float4x4, center: interop.Reference<number>, extent: interop.Reference<number>, completionHandler: (p1: ARReferenceObject, p2: NSError) => void): void;

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

readonly imageResolution: CGSize;

readonly isRecommendedForHighResolutionFrameCapturing: boolean;

readonly videoHDRSupported: boolean;

copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}

Expand Down
Loading