add
TypeScriptadd(anchor: ARAnchor): voidSwift declarationfunc add(anchor: ARAnchor)class · iOS 11.0+ · SDK 27.1
class ARSessionadd(anchor: ARAnchor): voidSwift declarationfunc add(anchor: ARAnchor)captureHighResolutionFrameUsingCompletion(photoSettings: (_AVFoundation_AVCapturePhotoSettings) | null, completion: ((arg0: (ARFrame) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc captureHighResolutionFrame(using photoSettings: AVCapturePhotoSettings?) async throws -> ARFramecaptureHighResolutionFrameCompletion(completion: ((arg0: (ARFrame) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc captureHighResolutionFrame() async throws -> ARFramecreateReferenceObject(transform: SDKHandle, center: SDKHandle, extent: SDKHandle, completionHandler: ((arg0: (ARReferenceObject) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc createReferenceObject(transform: simd_float4x4, center: simd_float3, extent: simd_float3) async throws -> ARReferenceObjectgetCurrentWorldMap(completionHandler: ((arg0: (ARWorldMap) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc currentWorldMap() async throws -> ARWorldMapgetGeoLocation(position: SDKHandle, completionHandler: ((arg0: { latitude: number; longitude: number }, arg1: number, arg2: (NativeError) | null) => void)): voidSwift declarationfunc geoLocation(forPoint position: simd_float3) async throws -> (CLLocationCoordinate2D, CLLocationDistance)static init(): ARSessionSwift declarationinit()pause(): voidSwift declarationfunc pause()raycast(query: ARRaycastQuery): Array<ARRaycastResult>Swift declarationfunc raycast(_ query: ARRaycastQuery) -> [ARRaycastResult]remove(anchor: ARAnchor): voidSwift declarationfunc remove(anchor: ARAnchor)run(configuration: ARConfiguration, options?: ARSession_RunOptions): voidSwift declarationfunc run(_ configuration: ARConfiguration, options: ARSession.RunOptions = [])setWorldOrigin(relativeTransform: SDKHandle): voidSwift declarationfunc setWorldOrigin(relativeTransform: simd_float4x4)trackedRaycast(query: ARRaycastQuery, updateHandler: ((arg0: Array<ARRaycastResult>) => void)): (ARTrackedRaycast) | nullSwift declarationfunc trackedRaycast(_ query: ARRaycastQuery, updateHandler: @escaping ([ARRaycastResult]) -> Void) -> ARTrackedRaycast?update(collaborationData: ARSession_CollaborationData): voidSwift declarationfunc update(with collaborationData: ARSession.CollaborationData)get configuration(): (ARConfiguration) | nullSwift declaration@NSCopying var configuration: ARConfiguration? { get }get currentFrame(): (ARFrame) | nullSwift declaration@NSCopying var currentFrame: ARFrame? { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any ARSessionDelegate)? { get set }set delegate(value: (Implements<ARSessionDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any ARSessionDelegate)? { get set }get delegateQueue(): (_Dispatch_DispatchQueue) | nullSwift declarationvar delegateQueue: dispatch_queue_t? { get set }set delegateQueue(value: (_Dispatch_DispatchQueue) | null)Swift declarationvar delegateQueue: dispatch_queue_t? { get set }get identifier(): stringSwift declarationvar identifier: UUID { get }get viewLayer(): (_QuartzCore_CALayer) | nullSwift declarationweak var viewLayer: CALayer? { get set }set viewLayer(value: (_QuartzCore_CALayer) | null)Swift declarationweak var viewLayer: CALayer? { get set }get viewRotationAngle(): (number) | nullSwift declaration@nonobjc var viewRotationAngle: CGFloat? { get }The angle, in degrees, to rotate a view by so the `ARFrame` it displays stays level with the horizon as the device rotates. Updates in step with the system UI rotation. The value is normalized to `[0, 360)` (`0` at LandscapeRight, `90` at Portrait, `180` at LandscapeLeft, `270` at PortraitUpsideDown), or `nil` until the angle is available (`viewLayer` is set and on screen). Read it on demand; implement `session(_:didChangeViewRotationAngle:)` to react to changes.
No declarations were skipped in this snapshot.