FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(types-ios): iOS 27 SDK typings by NathanWalker · Pull Request #11508 · NativeScript/NativeScript · GitHub

Repository navigation

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

Filter by extension

Filter by extension .ts  (77) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 5 additions & 0 deletions packages/types-ios/src/lib/ios/ios.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
/// <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!ComputeGraph.d.ts" />
/// <reference path="objc-x86_64/objc!ContactProvider.d.ts" />
/// <reference path="objc-x86_64/objc!Contacts.d.ts" />
/// <reference path="objc-x86_64/objc!ContactsUI.d.ts" />
Expand Down Expand Up @@ -81,6 +82,7 @@
/// <reference path="objc-x86_64/objc!ExternalAccessory.d.ts" />
/// <reference path="objc-x86_64/objc!FileProvider.d.ts" />
/// <reference path="objc-x86_64/objc!FileProviderUI.d.ts" />
/// <reference path="objc-x86_64/objc!FocusEngine.d.ts" />
/// <reference path="objc-x86_64/objc!Foundation.d.ts" />
/// <reference path="objc-x86_64/objc!GameController.d.ts" />
/// <reference path="objc-x86_64/objc!GameKit.d.ts" />
Expand All @@ -103,6 +105,7 @@
/// <reference path="objc-x86_64/objc!IOSurface.d.ts" />
/// <reference path="objc-x86_64/objc!JavaScriptCore.d.ts" />
/// <reference path="objc-x86_64/objc!LinkPresentation.d.ts" />
/// <reference path="objc-x86_64/objc!LinkSecurity.d.ts" />
/// <reference path="objc-x86_64/objc!LocalAuthentication.d.ts" />
/// <reference path="objc-x86_64/objc!LockedCameraCapture.d.ts" />
/// <reference path="objc-x86_64/objc!MachO.d.ts" />
Expand Down Expand Up @@ -160,6 +163,7 @@
/// <reference path="objc-x86_64/objc!SecurityUI.d.ts" />
/// <reference path="objc-x86_64/objc!SensitiveContentAnalysis.d.ts" />
/// <reference path="objc-x86_64/objc!SensorKit.d.ts" />
/// <reference path="objc-x86_64/objc!ServicesAccountLinking.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" />
Expand All @@ -170,6 +174,7 @@
/// <reference path="objc-x86_64/objc!Speech.d.ts" />
/// <reference path="objc-x86_64/objc!SpriteKit.d.ts" />
/// <reference path="objc-x86_64/objc!SQLite3.d.ts" />
/// <reference path="objc-x86_64/objc!StateReporting.d.ts" />
/// <reference path="objc-x86_64/objc!StoreKit.d.ts" />
/// <reference path="objc-x86_64/objc!Symbols.d.ts" />
/// <reference path="objc-x86_64/objc!SystemConfiguration.d.ts" />
Expand Down
145 changes: 141 additions & 4 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -530,16 +530,49 @@ declare class ARCamera extends NSObject implements NSCopying {

copyWithZone(zone: interop.Pointer | interop.Reference<any> | ArrayBufferLike | ArrayBufferView | null): any;

/**
* @since 11.0
* @deprecated 27.0
*/
projectPointOrientationViewportSize(point: interop.Reference<number>, orientation: UIInterfaceOrientation, viewportSize: CGSize): CGPoint;

/**
* @since 27.0
*/
projectPointViewRotationAngleViewportSize(point: interop.Reference<number>, viewRotationAngle: number, viewportSize: CGSize): CGPoint;

/**
* @since 11.0
* @deprecated 27.0
*/
projectionMatrixForOrientationViewportSizeZNearZFar(orientation: UIInterfaceOrientation, viewportSize: CGSize, zNear: number, zFar: number): simd_float4x4;

/**
* @since 27.0
*/
projectionMatrixForViewRotationAngleViewportSizeZNearZFar(viewRotationAngle: number, viewportSize: CGSize, zNear: number, zFar: number): simd_float4x4;

/**
* @since 12.0
* @deprecated 27.0
*/
unprojectPointOntoPlaneWithTransformOrientationViewportSize(point: CGPoint, planeTransform: simd_float4x4, orientation: UIInterfaceOrientation, viewportSize: CGSize): interop.Reference<number>;

/**
* @since 27.0
*/
unprojectPointOntoPlaneWithTransformViewRotationAngleViewportSize(point: CGPoint, planeTransform: simd_float4x4, viewRotationAngle: number, viewportSize: CGSize): interop.Reference<number>;

/**
* @since 11.0
* @deprecated 27.0
*/
viewMatrixForOrientation(orientation: UIInterfaceOrientation): simd_float4x4;

/**
* @since 27.0
*/
viewMatrixForViewRotationAngle(viewRotationAngle: number): simd_float4x4;
}

declare const enum ARCoachingGoal {
Expand Down Expand Up @@ -942,6 +975,11 @@ declare class ARFaceTrackingConfiguration extends ARConfiguration {

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

/**
* @since 27.0
*/
environmentTexturingEnabled: boolean;

/**
* @since 13.0
*/
Expand Down Expand Up @@ -1014,6 +1052,11 @@ declare class ARFrame extends NSObject implements NSCopying {

readonly lightEstimate: ARLightEstimate | null;

/**
* @since 27.0
*/
readonly metadataObjects: NSArray<AVMetadataObject>;

readonly rawFeaturePoints: ARPointCloud | null;

/**
Expand All @@ -1040,8 +1083,17 @@ declare class ARFrame extends NSObject implements NSCopying {

copyWithZone(zone: interop.Pointer | interop.Reference<any> | ArrayBufferLike | ArrayBufferView | null): any;

/**
* @since 11.0
* @deprecated 27.0
*/
displayTransformForOrientationViewportSize(orientation: UIInterfaceOrientation, viewportSize: CGSize): CGAffineTransform;

/**
* @since 27.0
*/
displayTransformForViewRotationAngleViewportSize(viewRotationAngle: number, viewportSize: CGSize): CGAffineTransform;

/**
* @since 11.0
* @deprecated 14.0
Expand Down Expand Up @@ -1178,6 +1230,11 @@ declare class ARGeoTrackingConfiguration extends ARConfiguration {

planeDetection: ARPlaneDetection;

/**
* @since 27.0
*/
trackingObjects: NSSet<ARReferenceObject>;

wantsHDREnvironmentTextures: boolean;

/**
Expand Down Expand Up @@ -1513,18 +1570,51 @@ declare class ARMeshGeometry extends NSObject implements NSSecureCoding {
/**
* @since 12.0
*/
declare class ARObjectAnchor extends ARAnchor {
declare class ARObjectAnchor extends ARAnchor implements ARTrackable {

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

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

readonly referenceObject: ARReferenceObject;

readonly debugDescription: string; // inherited from NSObjectProtocol

readonly description: string; // inherited from NSObjectProtocol

readonly hash: number; // inherited from NSObjectProtocol

readonly isProxy: boolean; // inherited from NSObjectProtocol

readonly isTracked: boolean; // inherited from ARTrackable

readonly superclass: typeof NSObject; // inherited from NSObjectProtocol

readonly // inherited from NSObjectProtocol

class(): typeof NSObject;

conformsToProtocol(aProtocol: any /* Protocol */): boolean;

isEqual(object: any): boolean;

isKindOfClass(aClass: typeof NSObject): boolean;

isMemberOfClass(aClass: typeof NSObject): boolean;

performSelector(aSelector: string): any;

performSelectorWithObject(aSelector: string, object: any): any;

performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;

respondsToSelector(aSelector: string): boolean;

retainCount(): number;

self(): this;
}

/**
* @since 12.0
*/
declare class ARObjectScanningConfiguration extends ARConfiguration {

static alloc(): ARObjectScanningConfiguration; // inherited from NSObject
Expand Down Expand Up @@ -1849,6 +1939,10 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding {

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

/**
* @since 12.0
* @deprecated 27.0
*/
static referenceObjectsInGroupNamedBundle(name: string, bundle: NSBundle | null): NSSet<ARReferenceObject> | null;

readonly center: interop.Reference<number>;
Expand All @@ -1857,15 +1951,25 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding {

name: string | null;

/**
* @since 12.0
* @deprecated 27.0
*/
readonly rawFeaturePoints: ARPointCloud;

/**
* @since 13.0
* @deprecated 27.0
*/
readonly resourceGroupName: string | null;

readonly scale: interop.Reference<number>;

/**
* @since 27.0
*/
readonly usdzFile: NSURL | null;

static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding

constructor(o: { archiveURL: NSURL; });
Expand All @@ -1874,14 +1978,26 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding {

encodeWithCoder(coder: NSCoder): void;

/**
* @since 12.0
* @deprecated 27.0
*/
exportObjectToURLPreviewImageError(url: NSURL, previewImage: UIImage | null, error?: interop.Reference<NSError>): boolean;

initWithArchiveURLError(url: NSURL, error?: interop.Reference<NSError>): this;

initWithCoder(coder: NSCoder): this;

/**
* @since 12.0
* @deprecated 27.0
*/
referenceObjectByApplyingTransform(transform: simd_float4x4): ARReferenceObject;

/**
* @since 12.0
* @deprecated 27.0
*/
referenceObjectByMergingObjectError(object: ARReferenceObject, error?: interop.Reference<NSError>): ARReferenceObject | null;
}

Expand Down Expand Up @@ -2232,6 +2348,16 @@ declare class ARSession extends NSObject {
*/
readonly identifier: NSUUID;

/**
* @since 27.0
*/
viewLayer: CALayer | null;

/**
* @since 27.0
*/
readonly viewRotationAngle: number;

addAnchor(anchor: ARAnchor): void;

/**
Expand All @@ -2246,6 +2372,7 @@ declare class ARSession extends NSObject {

/**
* @since 12.0
* @deprecated 27.0
*/
createReferenceObjectWithTransformCenterExtentCompletionHandler(transform: simd_float4x4, center: interop.Reference<number>, extent: interop.Reference<number>, completionHandler: (p1: ARReferenceObject | null, p2: NSError | null) => void): void;

Expand Down Expand Up @@ -2318,6 +2445,11 @@ interface ARSessionObserver extends NSObjectProtocol {
*/
sessionDidChangeGeoTrackingStatus?(session: ARSession, geoTrackingStatus: ARGeoTrackingStatus): void;

/**
* @since 27.0
*/
sessionDidChangeViewRotationAngle?(session: ARSession, viewRotationAngle: number): void;

sessionDidFailWithError?(session: ARSession, error: NSError): void;

sessionDidOutputAudioSampleBuffer?(session: ARSession, audioSampleBuffer: any): void;
Expand Down Expand Up @@ -2684,6 +2816,11 @@ declare class ARWorldTrackingConfiguration extends ARConfiguration {
*/
sceneReconstruction: ARSceneReconstruction;

/**
* @since 27.0
*/
trackingObjects: NSSet<ARReferenceObject>;

/**
* @since 13.0
*/
Expand Down
Loading
Loading

Back | FazBrowse Home | New Git URL