diff --git a/packages/types-ios/src/lib/ios/ios.d.ts b/packages/types-ios/src/lib/ios/ios.d.ts
index 420900e333..f979260b7f 100644
--- a/packages/types-ios/src/lib/ios/ios.d.ts
+++ b/packages/types-ios/src/lib/ios/ios.d.ts
@@ -6,6 +6,7 @@
///
///
///
+///
///
///
///
@@ -32,6 +33,7 @@
///
///
///
+///
///
///
///
@@ -57,6 +59,7 @@
///
///
///
+///
///
///
///
@@ -88,6 +91,7 @@
///
///
///
+///
///
///
///
@@ -162,6 +166,7 @@
///
///
///
+///
///
///
///
@@ -170,9 +175,11 @@
///
///
///
+///
///
///
///
///
///
+///
///
diff --git a/packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts b/packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts
index 8f1afadb2c..36faab0260 100644
--- a/packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts
+++ b/packages/types-ios/src/lib/ios/objc-x86_64/objc!ARKit.d.ts
@@ -10,6 +10,9 @@ declare const enum ARAltitudeSource {
UserDefined = 3
}
+/**
+ * @since 11.0
+ */
declare class ARAnchor extends NSObject implements ARAnchorCopying, NSSecureCoding {
static alloc(): ARAnchor; // inherited from NSObject
@@ -18,8 +21,14 @@ declare class ARAnchor extends NSObject implements ARAnchorCopying, NSSecureCodi
readonly identifier: NSUUID;
+ /**
+ * @since 12.0
+ */
readonly name: string;
+ /**
+ * @since 13.0
+ */
readonly sessionIdentifier: NSUUID;
readonly transform: simd_float4x4;
@@ -30,6 +39,9 @@ declare class ARAnchor extends NSObject implements ARAnchorCopying, NSSecureCodi
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
+ /**
+ * @since 12.0
+ */
constructor(o: { name: string; transform: simd_float4x4; });
constructor(o: { transform: simd_float4x4; });
@@ -42,11 +54,17 @@ declare class ARAnchor extends NSObject implements ARAnchorCopying, NSSecureCodi
initWithCoder(coder: NSCoder): this;
+ /**
+ * @since 12.0
+ */
initWithNameTransform(name: string, transform: simd_float4x4): this;
initWithTransform(transform: simd_float4x4): this;
}
+/**
+ * @since 12.0
+ */
interface ARAnchorCopying extends NSCopying {
initWithAnchor?(anchor: ARAnchor): ARAnchorCopying;
@@ -56,6 +74,9 @@ declare var ARAnchorCopying: {
prototype: ARAnchorCopying;
};
+/**
+ * @since 14.3
+ */
declare class ARAppClipCodeAnchor extends ARAnchor implements ARTrackable {
static alloc(): ARAppClipCodeAnchor; // inherited from NSObject
@@ -114,110 +135,269 @@ declare const enum ARAppClipCodeURLDecodingState {
Decoded = 2
}
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationBrowDownLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationBrowDownRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationBrowInnerUp: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationBrowOuterUpLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationBrowOuterUpRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationCheekPuff: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationCheekSquintLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationCheekSquintRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeBlinkLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeBlinkRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookDownLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookDownRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookInLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookInRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookOutLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookOutRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookUpLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeLookUpRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeSquintLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeSquintRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeWideLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationEyeWideRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationJawForward: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationJawLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationJawOpen: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationJawRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthClose: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthDimpleLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthDimpleRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthFrownLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthFrownRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthFunnel: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthLowerDownLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthLowerDownRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthPressLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthPressRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthPucker: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthRollLower: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthRollUpper: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthShrugLower: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthShrugUpper: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthSmileLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthSmileRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthStretchLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthStretchRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthUpperUpLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationMouthUpperUpRight: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationNoseSneerLeft: string;
+/**
+ * @since 11.0
+ */
declare var ARBlendShapeLocationNoseSneerRight: string;
+/**
+ * @since 12.0
+ */
declare var ARBlendShapeLocationTongueOut: string;
+/**
+ * @since 13.0
+ */
declare class ARBody2D extends NSObject {
static alloc(): ARBody2D; // inherited from NSObject
@@ -227,6 +407,9 @@ declare class ARBody2D extends NSObject {
readonly skeleton: ARSkeleton2D;
}
+/**
+ * @since 13.0
+ */
declare class ARBodyAnchor extends ARAnchor implements ARTrackable {
static alloc(): ARBodyAnchor; // inherited from NSObject
@@ -274,12 +457,18 @@ declare class ARBodyAnchor extends ARAnchor implements ARTrackable {
self(): this;
}
+/**
+ * @since 13.0
+ */
declare class ARBodyTrackingConfiguration extends ARConfiguration {
static alloc(): ARBodyTrackingConfiguration; // inherited from NSObject
static new(): ARBodyTrackingConfiguration; // inherited from NSObject
+ /**
+ * @since 14.3
+ */
appClipCodeTrackingEnabled: boolean;
autoFocusEnabled: boolean;
@@ -300,9 +489,15 @@ declare class ARBodyTrackingConfiguration extends ARConfiguration {
wantsHDREnvironmentTextures: boolean;
+ /**
+ * @since 14.3
+ */
static readonly supportsAppClipCodeTracking: boolean;
}
+/**
+ * @since 11.0
+ */
declare class ARCamera extends NSObject implements NSCopying {
static alloc(): ARCamera; // inherited from NSObject
@@ -311,8 +506,14 @@ declare class ARCamera extends NSObject implements NSCopying {
readonly eulerAngles: interop.Reference;
+ /**
+ * @since 13.0
+ */
readonly exposureDuration: number;
+ /**
+ * @since 13.0
+ */
readonly exposureOffset: number;
readonly imageResolution: CGSize;
@@ -333,6 +534,9 @@ declare class ARCamera extends NSObject implements NSCopying {
projectionMatrixForOrientationViewportSizeZNearZFar(orientation: UIInterfaceOrientation, viewportSize: CGSize, zNear: number, zFar: number): simd_float4x4;
+ /**
+ * @since 12.0
+ */
unprojectPointOntoPlaneWithTransformOrientationViewportSize(point: CGPoint, planeTransform: simd_float4x4, orientation: UIInterfaceOrientation, viewportSize: CGSize): interop.Reference;
viewMatrixForOrientation(orientation: UIInterfaceOrientation): simd_float4x4;
@@ -351,20 +555,40 @@ declare const enum ARCoachingGoal {
GeoTracking = 4
}
+/**
+ * @since 13.0
+ */
declare class ARCoachingOverlayView extends UIView {
static alloc(): ARCoachingOverlayView; // inherited from NSObject
static appearance(): ARCoachingOverlayView; // inherited from UIAppearance
+ /**
+ * @since 8.0
+ */
static appearanceForTraitCollection(trait: UITraitCollection): ARCoachingOverlayView; // inherited from UIAppearance
+ /**
+ * @since 8.0
+ * @deprecated 9.0
+ */
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): ARCoachingOverlayView; // inherited from UIAppearance
+ /**
+ * @since 9.0
+ */
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): ARCoachingOverlayView; // inherited from UIAppearance
+ /**
+ * @since 5.0
+ * @deprecated 9.0
+ */
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): ARCoachingOverlayView; // inherited from UIAppearance
+ /**
+ * @since 9.0
+ */
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): ARCoachingOverlayView; // inherited from UIAppearance
static new(): ARCoachingOverlayView; // inherited from NSObject
@@ -379,11 +603,14 @@ declare class ARCoachingOverlayView extends UIView {
session: ARSession;
- sessionProvider: NSObject;
+ sessionProvider: NSObject & ARSessionProviding;
setActiveAnimated(active: boolean, animated: boolean): void;
}
+/**
+ * @since 13.0
+ */
interface ARCoachingOverlayViewDelegate extends NSObjectProtocol {
coachingOverlayViewDidDeactivate?(coachingOverlayView: ARCoachingOverlayView): void;
@@ -397,6 +624,9 @@ declare var ARCoachingOverlayViewDelegate: {
prototype: ARCoachingOverlayViewDelegate;
};
+/**
+ * @since 13.0
+ */
declare class ARCollaborationData extends NSObject implements NSSecureCoding {
static alloc(): ARCollaborationData; // inherited from NSObject
@@ -421,6 +651,9 @@ declare const enum ARCollaborationDataPriority {
Optional = 1
}
+/**
+ * @since 14.0
+ */
declare const enum ARConfidenceLevel {
Low = 0,
@@ -430,39 +663,69 @@ declare const enum ARConfidenceLevel {
High = 2
}
+/**
+ * @since 11.0
+ */
declare class ARConfiguration extends NSObject implements NSCopying {
static alloc(): ARConfiguration; // inherited from NSObject
static new(): ARConfiguration; // inherited from NSObject
+ /**
+ * @since 13.0
+ */
static supportsFrameSemantics(frameSemantics: ARFrameSemantics): boolean;
+ /**
+ * @since 13.0
+ */
frameSemantics: ARFrameSemantics;
lightEstimationEnabled: boolean;
providesAudioData: boolean;
+ /**
+ * @since 11.3
+ */
videoFormat: ARVideoFormat;
+ /**
+ * @since 16.0
+ */
videoHDRAllowed: boolean;
worldAlignment: ARWorldAlignment;
+ /**
+ * @since 16.0
+ */
static readonly configurableCaptureDeviceForPrimaryCamera: AVCaptureDevice;
static readonly isSupported: boolean;
+ /**
+ * @since 16.0
+ */
static readonly recommendedVideoFormatFor4KResolution: ARVideoFormat;
+ /**
+ * @since 16.0
+ */
static readonly recommendedVideoFormatForHighResolutionFrameCapturing: ARVideoFormat;
+ /**
+ * @since 11.3
+ */
static readonly supportedVideoFormats: NSArray;
copyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 14.0
+ */
declare class ARDepthData extends NSObject {
static alloc(): ARDepthData; // inherited from NSObject
@@ -474,6 +737,9 @@ declare class ARDepthData extends NSObject {
readonly depthMap: any;
}
+/**
+ * @since 11.0
+ */
declare class ARDirectionalLightEstimate extends ARLightEstimate {
static alloc(): ARDirectionalLightEstimate; // inherited from NSObject
@@ -487,6 +753,9 @@ declare class ARDirectionalLightEstimate extends ARLightEstimate {
readonly sphericalHarmonicsCoefficients: NSData;
}
+/**
+ * @since 12.0
+ */
declare class AREnvironmentProbeAnchor extends ARAnchor {
static alloc(): AREnvironmentProbeAnchor; // inherited from NSObject
@@ -558,8 +827,14 @@ declare const enum ARErrorCode {
RequestFailed = 501
}
+/**
+ * @since 11.0
+ */
declare var ARErrorDomain: string;
+/**
+ * @since 11.0
+ */
declare class ARFaceAnchor extends ARAnchor implements ARTrackable {
static alloc(): ARFaceAnchor; // inherited from NSObject
@@ -570,10 +845,19 @@ declare class ARFaceAnchor extends ARAnchor implements ARTrackable {
readonly geometry: ARFaceGeometry;
+ /**
+ * @since 12.0
+ */
readonly leftEyeTransform: simd_float4x4;
+ /**
+ * @since 12.0
+ */
readonly lookAtPoint: interop.Reference;
+ /**
+ * @since 12.0
+ */
readonly rightEyeTransform: simd_float4x4;
readonly debugDescription: string; // inherited from NSObjectProtocol
@@ -613,6 +897,9 @@ declare class ARFaceAnchor extends ARAnchor implements ARTrackable {
self(): this;
}
+/**
+ * @since 11.0
+ */
declare class ARFaceGeometry extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): ARFaceGeometry; // inherited from NSObject
@@ -646,21 +933,39 @@ declare class ARFaceGeometry extends NSObject implements NSCopying, NSSecureCodi
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 11.0
+ */
declare class ARFaceTrackingConfiguration extends ARConfiguration {
static alloc(): ARFaceTrackingConfiguration; // inherited from NSObject
static new(): ARFaceTrackingConfiguration; // inherited from NSObject
+ /**
+ * @since 13.0
+ */
maximumNumberOfTrackedFaces: number;
+ /**
+ * @since 13.0
+ */
worldTrackingEnabled: boolean;
+ /**
+ * @since 13.0
+ */
static readonly supportedNumberOfTrackedFaces: number;
+ /**
+ * @since 13.0
+ */
static readonly supportsWorldTracking: boolean;
}
+/**
+ * @since 11.0
+ */
declare class ARFrame extends NSObject implements NSCopying {
static alloc(): ARFrame; // inherited from NSObject
@@ -671,8 +976,14 @@ declare class ARFrame extends NSObject implements NSCopying {
readonly camera: ARCamera;
+ /**
+ * @since 13.0
+ */
readonly cameraGrainIntensity: number;
+ /**
+ * @since 13.0
+ */
readonly cameraGrainTexture: MTLTexture;
readonly capturedDepthData: AVDepthData;
@@ -681,34 +992,65 @@ declare class ARFrame extends NSObject implements NSCopying {
readonly capturedImage: any;
+ /**
+ * @since 13.0
+ */
readonly detectedBody: ARBody2D;
+ /**
+ * @since 13.0
+ */
readonly estimatedDepthData: any;
+ /**
+ * @since 16.0
+ */
readonly exifData: NSDictionary;
+ /**
+ * @since 14.0
+ */
readonly geoTrackingStatus: ARGeoTrackingStatus;
readonly lightEstimate: ARLightEstimate;
readonly rawFeaturePoints: ARPointCloud;
+ /**
+ * @since 14.0
+ */
readonly sceneDepth: ARDepthData;
+ /**
+ * @since 13.0
+ */
readonly segmentationBuffer: any;
+ /**
+ * @since 14.0
+ */
readonly smoothedSceneDepth: ARDepthData;
readonly timestamp: number;
+ /**
+ * @since 12.0
+ */
readonly worldMappingStatus: ARWorldMappingStatus;
copyWithZone(zone: interop.Pointer | interop.Reference): any;
displayTransformForOrientationViewportSize(orientation: UIInterfaceOrientation, viewportSize: CGSize): CGAffineTransform;
+ /**
+ * @since 11.0
+ * @deprecated 14.0
+ */
hitTestTypes(point: CGPoint, types: ARHitTestResultType): NSArray;
+ /**
+ * @since 13.0
+ */
raycastQueryFromPointAllowingTargetAlignment(point: CGPoint, target: ARRaycastTarget, alignment: ARRaycastTargetAlignment): ARRaycastQuery;
}
@@ -727,6 +1069,9 @@ declare const enum ARFrameSemantics {
SmoothedSceneDepth = 16
}
+/**
+ * @since 14.0
+ */
declare class ARGeoAnchor extends ARAnchor implements ARTrackable {
static alloc(): ARGeoAnchor; // inherited from NSObject
@@ -803,6 +1148,9 @@ declare const enum ARGeoTrackingAccuracy {
High = 3
}
+/**
+ * @since 14.0
+ */
declare class ARGeoTrackingConfiguration extends ARConfiguration {
static alloc(): ARGeoTrackingConfiguration; // inherited from NSObject
@@ -813,6 +1161,9 @@ declare class ARGeoTrackingConfiguration extends ARConfiguration {
static new(): ARGeoTrackingConfiguration; // inherited from NSObject
+ /**
+ * @since 14.3
+ */
appClipCodeTrackingEnabled: boolean;
automaticImageScaleEstimationEnabled: boolean;
@@ -829,6 +1180,9 @@ declare class ARGeoTrackingConfiguration extends ARConfiguration {
wantsHDREnvironmentTextures: boolean;
+ /**
+ * @since 14.3
+ */
static readonly supportsAppClipCodeTracking: boolean;
}
@@ -864,6 +1218,9 @@ declare const enum ARGeoTrackingStateReason {
VisualLocalizationFailed = 8
}
+/**
+ * @since 14.0
+ */
declare class ARGeoTrackingStatus extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): ARGeoTrackingStatus; // inherited from NSObject
@@ -887,6 +1244,9 @@ declare class ARGeoTrackingStatus extends NSObject implements NSCopying, NSSecur
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 13.4
+ */
declare class ARGeometryElement extends NSObject implements NSSecureCoding {
static alloc(): ARGeometryElement; // inherited from NSObject
@@ -919,6 +1279,9 @@ declare const enum ARGeometryPrimitiveType {
Triangle = 1
}
+/**
+ * @since 13.4
+ */
declare class ARGeometrySource extends NSObject implements NSSecureCoding {
static alloc(): ARGeometrySource; // inherited from NSObject
@@ -946,6 +1309,10 @@ declare class ARGeometrySource extends NSObject implements NSSecureCoding {
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 11.0
+ * @deprecated 14.0
+ */
declare class ARHitTestResult extends NSObject {
static alloc(): ARHitTestResult; // inherited from NSObject
@@ -978,12 +1345,18 @@ declare const enum ARHitTestResultType {
ExistingPlaneUsingGeometry = 32
}
+/**
+ * @since 11.3
+ */
declare class ARImageAnchor extends ARAnchor implements ARTrackable {
static alloc(): ARImageAnchor; // inherited from NSObject
static new(): ARImageAnchor; // inherited from NSObject
+ /**
+ * @since 13.0
+ */
readonly estimatedScaleFactor: number;
readonly referenceImage: ARReferenceImage;
@@ -1025,6 +1398,9 @@ declare class ARImageAnchor extends ARAnchor implements ARTrackable {
self(): this;
}
+/**
+ * @since 12.0
+ */
declare class ARImageTrackingConfiguration extends ARConfiguration {
static alloc(): ARImageTrackingConfiguration; // inherited from NSObject
@@ -1038,6 +1414,9 @@ declare class ARImageTrackingConfiguration extends ARConfiguration {
trackingImages: NSSet;
}
+/**
+ * @since 11.0
+ */
declare class ARLightEstimate extends NSObject {
static alloc(): ARLightEstimate; // inherited from NSObject
@@ -1049,6 +1428,9 @@ declare class ARLightEstimate extends NSObject {
readonly ambientIntensity: number;
}
+/**
+ * @since 13.0
+ */
declare class ARMatteGenerator extends NSObject {
static alloc(): ARMatteGenerator; // inherited from NSObject
@@ -1071,6 +1453,9 @@ declare const enum ARMatteResolution {
Half = 1
}
+/**
+ * @since 13.4
+ */
declare class ARMeshAnchor extends ARAnchor {
static alloc(): ARMeshAnchor; // inherited from NSObject
@@ -1099,6 +1484,9 @@ declare const enum ARMeshClassification {
Door = 7
}
+/**
+ * @since 13.4
+ */
declare class ARMeshGeometry extends NSObject implements NSSecureCoding {
static alloc(): ARMeshGeometry; // inherited from NSObject
@@ -1122,6 +1510,9 @@ declare class ARMeshGeometry extends NSObject implements NSSecureCoding {
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 12.0
+ */
declare class ARObjectAnchor extends ARAnchor {
static alloc(): ARObjectAnchor; // inherited from NSObject
@@ -1131,6 +1522,9 @@ declare class ARObjectAnchor extends ARAnchor {
readonly referenceObject: ARReferenceObject;
}
+/**
+ * @since 12.0
+ */
declare class ARObjectScanningConfiguration extends ARConfiguration {
static alloc(): ARObjectScanningConfiguration; // inherited from NSObject
@@ -1142,15 +1536,24 @@ declare class ARObjectScanningConfiguration extends ARConfiguration {
planeDetection: ARPlaneDetection;
}
+/**
+ * @since 11.0
+ */
declare class AROrientationTrackingConfiguration extends ARConfiguration {
static alloc(): AROrientationTrackingConfiguration; // inherited from NSObject
static new(): AROrientationTrackingConfiguration; // inherited from NSObject
+ /**
+ * @since 11.3
+ */
autoFocusEnabled: boolean;
}
+/**
+ * @since 13.0
+ */
declare class ARParticipantAnchor extends ARAnchor {
static alloc(): ARParticipantAnchor; // inherited from NSObject
@@ -1158,6 +1561,9 @@ declare class ARParticipantAnchor extends ARAnchor {
static new(): ARParticipantAnchor; // inherited from NSObject
}
+/**
+ * @since 11.0
+ */
declare class ARPlaneAnchor extends ARAnchor {
static alloc(): ARPlaneAnchor; // inherited from NSObject
@@ -1168,16 +1574,35 @@ declare class ARPlaneAnchor extends ARAnchor {
readonly center: interop.Reference;
+ /**
+ * @since 12.0
+ */
readonly classification: ARPlaneClassification;
+ /**
+ * @since 12.0
+ */
readonly classificationStatus: ARPlaneClassificationStatus;
+ /**
+ * @since 11.0
+ * @deprecated 16.0
+ */
readonly extent: interop.Reference;
+ /**
+ * @since 11.3
+ */
readonly geometry: ARPlaneGeometry;
+ /**
+ * @since 16.0
+ */
readonly planeExtent: ARPlaneExtent;
+ /**
+ * @since 12.0
+ */
static readonly classificationSupported: boolean;
}
@@ -1227,6 +1652,9 @@ declare const enum ARPlaneDetection {
Vertical = 2
}
+/**
+ * @since 16.0
+ */
declare class ARPlaneExtent extends NSObject implements NSSecureCoding {
static alloc(): ARPlaneExtent; // inherited from NSObject
@@ -1248,6 +1676,9 @@ declare class ARPlaneExtent extends NSObject implements NSSecureCoding {
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 11.3
+ */
declare class ARPlaneGeometry extends NSObject implements NSSecureCoding {
static alloc(): ARPlaneGeometry; // inherited from NSObject
@@ -1279,6 +1710,9 @@ declare class ARPlaneGeometry extends NSObject implements NSSecureCoding {
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 11.0
+ */
declare class ARPointCloud extends NSObject implements NSSecureCoding {
static alloc(): ARPointCloud; // inherited from NSObject
@@ -1300,6 +1734,9 @@ declare class ARPointCloud extends NSObject implements NSSecureCoding {
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 13.0
+ */
declare class ARPositionalTrackingConfiguration extends ARConfiguration {
static alloc(): ARPositionalTrackingConfiguration; // inherited from NSObject
@@ -1311,6 +1748,9 @@ declare class ARPositionalTrackingConfiguration extends ARConfiguration {
planeDetection: ARPlaneDetection;
}
+/**
+ * @since 13.0
+ */
declare class ARQuickLookPreviewItem extends NSObject implements QLPreviewItem {
static alloc(): ARQuickLookPreviewItem; // inherited from NSObject
@@ -1364,6 +1804,9 @@ declare class ARQuickLookPreviewItem extends NSObject implements QLPreviewItem {
self(): this;
}
+/**
+ * @since 13.0
+ */
declare class ARRaycastQuery extends NSObject {
static alloc(): ARRaycastQuery; // inherited from NSObject
@@ -1383,6 +1826,9 @@ declare class ARRaycastQuery extends NSObject {
initWithOriginDirectionAllowingTargetAlignment(origin: interop.Reference, direction: interop.Reference, target: ARRaycastTarget, alignment: ARRaycastTargetAlignment): this;
}
+/**
+ * @since 13.0
+ */
declare class ARRaycastResult extends NSObject {
static alloc(): ARRaycastResult; // inherited from NSObject
@@ -1416,6 +1862,9 @@ declare const enum ARRaycastTargetAlignment {
Any = 2
}
+/**
+ * @since 11.3
+ */
declare class ARReferenceImage extends NSObject {
static alloc(): ARReferenceImage; // inherited from NSObject
@@ -1428,6 +1877,9 @@ declare class ARReferenceImage extends NSObject {
readonly physicalSize: CGSize;
+ /**
+ * @since 13.0
+ */
readonly resourceGroupName: string;
constructor(o: { CGImage: any; orientation: CGImagePropertyOrientation; physicalWidth: number; });
@@ -1438,9 +1890,15 @@ declare class ARReferenceImage extends NSObject {
initWithPixelBufferOrientationPhysicalWidth(pixelBuffer: any, orientation: CGImagePropertyOrientation, physicalWidth: number): this;
+ /**
+ * @since 13.0
+ */
validateWithCompletionHandler(completionHandler: (p1: NSError) => void): void;
}
+/**
+ * @since 12.0
+ */
declare class ARReferenceObject extends NSObject implements NSSecureCoding {
static alloc(): ARReferenceObject; // inherited from NSObject
@@ -1457,6 +1915,9 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding {
readonly rawFeaturePoints: ARPointCloud;
+ /**
+ * @since 13.0
+ */
readonly resourceGroupName: string;
readonly scale: interop.Reference;
@@ -1480,12 +1941,24 @@ declare class ARReferenceObject extends NSObject implements NSSecureCoding {
referenceObjectByMergingObjectError(object: ARReferenceObject): ARReferenceObject;
}
+/**
+ * @since 12.0
+ */
declare var ARReferenceObjectArchiveExtension: string;
+/**
+ * @since 11.0
+ */
declare var ARSCNDebugOptionShowFeaturePoints: SCNDebugOptions;
+/**
+ * @since 11.0
+ */
declare var ARSCNDebugOptionShowWorldOrigin: SCNDebugOptions;
+/**
+ * @since 11.0
+ */
declare class ARSCNFaceGeometry extends SCNGeometry {
static alloc(): ARSCNFaceGeometry; // inherited from NSObject
@@ -1496,25 +1969,44 @@ declare class ARSCNFaceGeometry extends SCNGeometry {
static geometry(): ARSCNFaceGeometry; // inherited from SCNGeometry
+ /**
+ * @since 9.0
+ */
static geometryWithMDLMesh(mdlMesh: MDLMesh): ARSCNFaceGeometry; // inherited from SCNGeometry
static geometryWithSourcesElements(sources: NSArray | SCNGeometrySource[], elements: NSArray | SCNGeometryElement[]): ARSCNFaceGeometry; // inherited from SCNGeometry
+ /**
+ * @since 16.0
+ */
+ static geometryWithSourcesElementsSourceChannels(sources: NSArray | SCNGeometrySource[], elements: NSArray | SCNGeometryElement[], sourceChannels: NSArray | number[]): ARSCNFaceGeometry; // inherited from SCNGeometry
+
static new(): ARSCNFaceGeometry; // inherited from NSObject
updateFromFaceGeometry(faceGeometry: ARFaceGeometry): void;
}
+/**
+ * @since 11.3
+ */
declare class ARSCNPlaneGeometry extends SCNGeometry {
static alloc(): ARSCNPlaneGeometry; // inherited from NSObject
static geometry(): ARSCNPlaneGeometry; // inherited from SCNGeometry
+ /**
+ * @since 9.0
+ */
static geometryWithMDLMesh(mdlMesh: MDLMesh): ARSCNPlaneGeometry; // inherited from SCNGeometry
static geometryWithSourcesElements(sources: NSArray | SCNGeometrySource[], elements: NSArray | SCNGeometryElement[]): ARSCNPlaneGeometry; // inherited from SCNGeometry
+ /**
+ * @since 16.0
+ */
+ static geometryWithSourcesElementsSourceChannels(sources: NSArray | SCNGeometrySource[], elements: NSArray | SCNGeometryElement[], sourceChannels: NSArray | number[]): ARSCNPlaneGeometry; // inherited from SCNGeometry
+
static new(): ARSCNPlaneGeometry; // inherited from NSObject
static planeGeometryWithDevice(device: MTLDevice): ARSCNPlaneGeometry;
@@ -1522,20 +2014,40 @@ declare class ARSCNPlaneGeometry extends SCNGeometry {
updateFromPlaneGeometry(planeGeometry: ARPlaneGeometry): void;
}
+/**
+ * @since 11.0
+ */
declare class ARSCNView extends SCNView implements ARSessionProviding {
static alloc(): ARSCNView; // inherited from NSObject
static appearance(): ARSCNView; // inherited from UIAppearance
+ /**
+ * @since 8.0
+ */
static appearanceForTraitCollection(trait: UITraitCollection): ARSCNView; // inherited from UIAppearance
+ /**
+ * @since 8.0
+ * @deprecated 9.0
+ */
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): ARSCNView; // inherited from UIAppearance
+ /**
+ * @since 9.0
+ */
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): ARSCNView; // inherited from UIAppearance
+ /**
+ * @since 5.0
+ * @deprecated 9.0
+ */
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): ARSCNView; // inherited from UIAppearance
+ /**
+ * @since 9.0
+ */
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): ARSCNView; // inherited from UIAppearance
static new(): ARSCNView; // inherited from NSObject
@@ -1544,8 +2056,14 @@ declare class ARSCNView extends SCNView implements ARSessionProviding {
delegate: ARSCNViewDelegate;
+ /**
+ * @since 13.0
+ */
rendersCameraGrain: boolean;
+ /**
+ * @since 13.0
+ */
rendersMotionBlur: boolean;
session: ARSession;
@@ -1568,6 +2086,10 @@ declare class ARSCNView extends SCNView implements ARSessionProviding {
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 11.0
+ * @deprecated 14.0
+ */
hitTestTypes(point: CGPoint, types: ARHitTestResultType): NSArray;
isEqual(object: any): boolean;
@@ -1584,6 +2106,9 @@ declare class ARSCNView extends SCNView implements ARSessionProviding {
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
+ /**
+ * @since 13.0
+ */
raycastQueryFromPointAllowingTargetAlignment(point: CGPoint, target: ARRaycastTarget, alignment: ARRaycastTargetAlignment): ARRaycastQuery;
respondsToSelector(aSelector: string): boolean;
@@ -1592,9 +2117,15 @@ declare class ARSCNView extends SCNView implements ARSessionProviding {
self(): this;
+ /**
+ * @since 12.0
+ */
unprojectPointOntoPlaneWithTransform(point: CGPoint, planeTransform: simd_float4x4): interop.Reference;
}
+/**
+ * @since 11.0
+ */
interface ARSCNViewDelegate extends ARSessionObserver, SCNSceneRendererDelegate {
rendererDidAddNodeForAnchor?(renderer: SCNSceneRenderer, node: SCNNode, anchor: ARAnchor): void;
@@ -1612,25 +2143,45 @@ declare var ARSCNViewDelegate: {
prototype: ARSCNViewDelegate;
};
+/**
+ * @since 11.0
+ */
declare class ARSKView extends SKView implements ARSessionProviding {
static alloc(): ARSKView; // inherited from NSObject
static appearance(): ARSKView; // inherited from UIAppearance
+ /**
+ * @since 8.0
+ */
static appearanceForTraitCollection(trait: UITraitCollection): ARSKView; // inherited from UIAppearance
+ /**
+ * @since 8.0
+ * @deprecated 9.0
+ */
static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): ARSKView; // inherited from UIAppearance
+ /**
+ * @since 9.0
+ */
static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray | typeof NSObject[]): ARSKView; // inherited from UIAppearance
+ /**
+ * @since 5.0
+ * @deprecated 9.0
+ */
static appearanceWhenContainedIn(ContainerClass: typeof NSObject): ARSKView; // inherited from UIAppearance
+ /**
+ * @since 9.0
+ */
static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray | typeof NSObject[]): ARSKView; // inherited from UIAppearance
static new(): ARSKView; // inherited from NSObject
- delegate: NSObject;
+ delegate: NSObject & ARSKViewDelegate;
session: ARSession;
@@ -1652,6 +2203,10 @@ declare class ARSKView extends SKView implements ARSessionProviding {
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 11.0
+ * @deprecated 14.0
+ */
hitTestTypes(point: CGPoint, types: ARHitTestResultType): NSArray;
isEqual(object: any): boolean;
@@ -1675,6 +2230,9 @@ declare class ARSKView extends SKView implements ARSessionProviding {
self(): this;
}
+/**
+ * @since 11.0
+ */
interface ARSKViewDelegate extends ARSessionObserver, SKViewDelegate {
viewDidAddNodeForAnchor?(view: ARSKView, node: SKNode, anchor: ARAnchor): void;
@@ -1708,6 +2266,9 @@ declare const enum ARSegmentationClass {
Person = 255
}
+/**
+ * @since 11.0
+ */
declare class ARSession extends NSObject {
static alloc(): ARSession; // inherited from NSObject
@@ -1720,20 +2281,40 @@ declare class ARSession extends NSObject {
delegate: ARSessionDelegate;
+ delegateQueue: NSObject & OS_dispatch_queue;
+
+ /**
+ * @since 13.0
+ */
readonly identifier: NSUUID;
addAnchor(anchor: ARAnchor): void;
+ /**
+ * @since 16.0
+ */
captureHighResolutionFrameWithCompletion(completion: (p1: ARFrame, p2: NSError) => void): void;
+ /**
+ * @since 12.0
+ */
createReferenceObjectWithTransformCenterExtentCompletionHandler(transform: simd_float4x4, center: interop.Reference, extent: interop.Reference, completionHandler: (p1: ARReferenceObject, p2: NSError) => void): void;
+ /**
+ * @since 12.0
+ */
getCurrentWorldMapWithCompletionHandler(completionHandler: (p1: ARWorldMap, p2: NSError) => void): void;
+ /**
+ * @since 14.0
+ */
getGeoLocationForPointCompletionHandler(position: interop.Reference, completionHandler: (p1: CLLocationCoordinate2D, p2: number, p3: NSError) => void): void;
pause(): void;
+ /**
+ * @since 13.0
+ */
raycast(query: ARRaycastQuery): NSArray;
removeAnchor(anchor: ARAnchor): void;
@@ -1742,13 +2323,25 @@ declare class ARSession extends NSObject {
runWithConfigurationOptions(configuration: ARConfiguration, options: ARSessionRunOptions): void;
+ /**
+ * @since 11.3
+ */
setWorldOrigin(relativeTransform: simd_float4x4): void;
+ /**
+ * @since 13.0
+ */
trackedRaycastUpdateHandler(query: ARRaycastQuery, updateHandler: (p1: NSArray) => void): ARTrackedRaycast;
+ /**
+ * @since 13.0
+ */
updateWithCollaborationData(collaborationData: ARCollaborationData): void;
}
+/**
+ * @since 11.0
+ */
interface ARSessionDelegate extends ARSessionObserver {
sessionDidAddAnchors?(session: ARSession, anchors: NSArray | ARAnchor[]): void;
@@ -1764,20 +2357,32 @@ declare var ARSessionDelegate: {
prototype: ARSessionDelegate;
};
+/**
+ * @since 11.0
+ */
interface ARSessionObserver extends NSObjectProtocol {
sessionCameraDidChangeTrackingState?(session: ARSession, camera: ARCamera): void;
+ /**
+ * @since 14.0
+ */
sessionDidChangeGeoTrackingStatus?(session: ARSession, geoTrackingStatus: ARGeoTrackingStatus): void;
sessionDidFailWithError?(session: ARSession, error: NSError): void;
sessionDidOutputAudioSampleBuffer?(session: ARSession, audioSampleBuffer: any): void;
+ /**
+ * @since 13.0
+ */
sessionDidOutputCollaborationData?(session: ARSession, data: ARCollaborationData): void;
sessionInterruptionEnded?(session: ARSession): void;
+ /**
+ * @since 11.3
+ */
sessionShouldAttemptRelocalization?(session: ARSession): boolean;
sessionWasInterrupted?(session: ARSession): void;
@@ -1807,6 +2412,9 @@ declare const enum ARSessionRunOptions {
ResetSceneReconstruction = 8
}
+/**
+ * @since 13.0
+ */
declare class ARSkeleton extends NSObject {
static alloc(): ARSkeleton; // inherited from NSObject
@@ -1820,6 +2428,9 @@ declare class ARSkeleton extends NSObject {
isJointTracked(jointIndex: number): boolean;
}
+/**
+ * @since 13.0
+ */
declare class ARSkeleton2D extends ARSkeleton {
static alloc(): ARSkeleton2D; // inherited from NSObject
@@ -1831,6 +2442,9 @@ declare class ARSkeleton2D extends ARSkeleton {
landmarkForJointNamed(jointName: string): interop.Reference;
}
+/**
+ * @since 13.0
+ */
declare class ARSkeleton3D extends ARSkeleton {
static alloc(): ARSkeleton3D; // inherited from NSObject
@@ -1846,6 +2460,9 @@ declare class ARSkeleton3D extends ARSkeleton {
modelTransformForJointName(jointName: string): simd_float4x4;
}
+/**
+ * @since 13.0
+ */
declare class ARSkeletonDefinition extends NSObject {
static alloc(): ARSkeletonDefinition; // inherited from NSObject
@@ -1867,24 +2484,54 @@ declare class ARSkeletonDefinition extends NSObject {
indexForJointName(jointName: string): number;
}
+/**
+ * @since 14.0
+ */
declare function ARSkeletonJointNameForRecognizedPointKey(recognizedPointKey: string): string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameHead: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameLeftFoot: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameLeftHand: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameLeftShoulder: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameRightFoot: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameRightHand: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameRightShoulder: string;
+/**
+ * @since 13.0
+ */
declare var ARSkeletonJointNameRoot: string;
+/**
+ * @since 11.0
+ */
interface ARTrackable extends NSObjectProtocol {
isTracked: boolean;
@@ -1894,6 +2541,9 @@ declare var ARTrackable: {
prototype: ARTrackable;
};
+/**
+ * @since 13.0
+ */
declare class ARTrackedRaycast extends NSObject {
static alloc(): ARTrackedRaycast; // inherited from NSObject
@@ -1925,22 +2575,37 @@ declare const enum ARTrackingStateReason {
Relocalizing = 4
}
+/**
+ * @since 11.3
+ */
declare class ARVideoFormat extends NSObject implements NSCopying {
static alloc(): ARVideoFormat; // inherited from NSObject
static new(): ARVideoFormat; // inherited from NSObject
+ /**
+ * @since 13.0
+ */
readonly captureDevicePosition: AVCaptureDevicePosition;
+ /**
+ * @since 14.5
+ */
readonly captureDeviceType: string;
readonly framesPerSecond: number;
readonly imageResolution: CGSize;
+ /**
+ * @since 16.0
+ */
readonly isRecommendedForHighResolutionFrameCapturing: boolean;
+ /**
+ * @since 16.0
+ */
readonly videoHDRSupported: boolean;
copyWithZone(zone: interop.Pointer | interop.Reference): any;
@@ -1955,6 +2620,9 @@ declare const enum ARWorldAlignment {
Camera = 2
}
+/**
+ * @since 12.0
+ */
declare class ARWorldMap extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): ARWorldMap; // inherited from NSObject
@@ -1991,41 +2659,89 @@ declare const enum ARWorldMappingStatus {
Mapped = 3
}
+/**
+ * @since 11.0
+ */
declare class ARWorldTrackingConfiguration extends ARConfiguration {
static alloc(): ARWorldTrackingConfiguration; // inherited from NSObject
static new(): ARWorldTrackingConfiguration; // inherited from NSObject
+ /**
+ * @since 13.4
+ */
static supportsSceneReconstruction(sceneReconstruction: ARSceneReconstruction): boolean;
+ /**
+ * @since 14.3
+ */
appClipCodeTrackingEnabled: boolean;
+ /**
+ * @since 11.3
+ */
autoFocusEnabled: boolean;
+ /**
+ * @since 13.0
+ */
automaticImageScaleEstimationEnabled: boolean;
+ /**
+ * @since 13.0
+ */
collaborationEnabled: boolean;
+ /**
+ * @since 11.3
+ */
detectionImages: NSSet;
+ /**
+ * @since 12.0
+ */
detectionObjects: NSSet;
+ /**
+ * @since 12.0
+ */
environmentTexturing: AREnvironmentTexturing;
+ /**
+ * @since 12.0
+ */
initialWorldMap: ARWorldMap;
+ /**
+ * @since 12.0
+ */
maximumNumberOfTrackedImages: number;
planeDetection: ARPlaneDetection;
+ /**
+ * @since 13.4
+ */
sceneReconstruction: ARSceneReconstruction;
+ /**
+ * @since 13.0
+ */
userFaceTrackingEnabled: boolean;
+ /**
+ * @since 13.0
+ */
wantsHDREnvironmentTextures: boolean;
+ /**
+ * @since 14.3
+ */
static readonly supportsAppClipCodeTracking: boolean;
+ /**
+ * @since 13.0
+ */
static readonly supportsUserFaceTracking: boolean;
}
diff --git a/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFAudio.d.ts b/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFAudio.d.ts
index c50cdfd8e8..60d1d54c39 100644
--- a/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFAudio.d.ts
+++ b/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFAudio.d.ts
@@ -1,4 +1,7 @@
+/**
+ * @since 16.0
+ */
declare class AVAUPresetEvent extends AVMusicEvent {
static alloc(): AVAUPresetEvent; // inherited from NSObject
@@ -29,6 +32,9 @@ interface AVAudio3DMixing extends NSObjectProtocol {
occlusion: number;
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode;
position: AVAudio3DPoint;
@@ -39,6 +45,9 @@ interface AVAudio3DMixing extends NSObjectProtocol {
reverbBlend: number;
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode;
}
declare var AVAudio3DMixing: {
@@ -46,6 +55,9 @@ declare var AVAudio3DMixing: {
prototype: AVAudio3DMixing;
};
+/**
+ * @since 13.0
+ */
declare const enum AVAudio3DMixingPointSourceInHeadMode {
Mono = 0,
@@ -53,6 +65,9 @@ declare const enum AVAudio3DMixingPointSourceInHeadMode {
Bypass = 1
}
+/**
+ * @since 8.0
+ */
declare const enum AVAudio3DMixingRenderingAlgorithm {
EqualPowerPanning = 0,
@@ -70,6 +85,9 @@ declare const enum AVAudio3DMixingRenderingAlgorithm {
Auto = 7
}
+/**
+ * @since 13.0
+ */
declare const enum AVAudio3DMixingSourceMode {
SpatializeIfMono = 0,
@@ -94,25 +112,46 @@ interface AVAudio3DVectorOrientation {
}
declare var AVAudio3DVectorOrientation: interop.StructType;
+/**
+ * @since 17.0
+ */
declare class AVAudioApplication extends NSObject {
static alloc(): AVAudioApplication; // inherited from NSObject
static new(): AVAudioApplication; // inherited from NSObject
+ /**
+ * @since 17.0
+ */
static requestRecordPermissionWithCompletionHandler(response: (p1: boolean) => void): void;
+ /**
+ * @since 17.0
+ */
readonly inputMuted: boolean;
+ /**
+ * @since 17.0
+ */
readonly recordPermission: AVAudioApplicationRecordPermission;
static readonly sharedInstance: AVAudioApplication;
+ /**
+ * @since 17.0
+ */
setInputMutedError(muted: boolean): boolean;
}
+/**
+ * @since 17.0
+ */
declare var AVAudioApplicationInputMuteStateChangeNotification: string;
+/**
+ * @since 17.0
+ */
declare var AVAudioApplicationMuteStateKey: string;
declare const enum AVAudioApplicationRecordPermission {
@@ -124,14 +163,29 @@ declare const enum AVAudioApplicationRecordPermission {
Granted = 1735552628
}
+/**
+ * @since 7.0
+ */
declare var AVAudioBitRateStrategy_Constant: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioBitRateStrategy_LongTermAverage: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioBitRateStrategy_Variable: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioBitRateStrategy_VariableConstrained: string;
+/**
+ * @since 8.0
+ */
declare class AVAudioBuffer extends NSObject implements NSCopying, NSMutableCopying {
static alloc(): AVAudioBuffer; // inherited from NSObject
@@ -149,6 +203,9 @@ declare class AVAudioBuffer extends NSObject implements NSCopying, NSMutableCopy
mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioChannelLayout extends NSObject implements NSSecureCoding {
static alloc(): AVAudioChannelLayout; // inherited from NSObject
@@ -182,6 +239,9 @@ declare class AVAudioChannelLayout extends NSObject implements NSSecureCoding {
initWithLayoutTag(layoutTag: number): this;
}
+/**
+ * @since 8.0
+ */
declare const enum AVAudioCommonFormat {
OtherFormat = 0,
@@ -195,14 +255,23 @@ declare const enum AVAudioCommonFormat {
PCMFormatInt32 = 4
}
+/**
+ * @since 9.0
+ */
declare class AVAudioCompressedBuffer extends AVAudioBuffer {
static alloc(): AVAudioCompressedBuffer; // inherited from NSObject
static new(): AVAudioCompressedBuffer; // inherited from NSObject
+ /**
+ * @since 11.0
+ */
readonly byteCapacity: number;
+ /**
+ * @since 11.0
+ */
byteLength: number;
readonly data: interop.Pointer | interop.Reference;
@@ -224,6 +293,9 @@ declare class AVAudioCompressedBuffer extends AVAudioBuffer {
initWithFormatPacketCapacityMaximumPacketSize(format: AVAudioFormat, packetCapacity: number, maximumPacketSize: number): this;
}
+/**
+ * @since 9.0
+ */
declare class AVAudioConnectionPoint extends NSObject {
static alloc(): AVAudioConnectionPoint; // inherited from NSObject
@@ -239,6 +311,9 @@ declare class AVAudioConnectionPoint extends NSObject {
initWithNodeBus(node: AVAudioNode, bus: number): this;
}
+/**
+ * @since 9.0
+ */
declare class AVAudioConverter extends NSObject {
static alloc(): AVAudioConverter; // inherited from NSObject
@@ -292,6 +367,9 @@ declare class AVAudioConverter extends NSObject {
reset(): void;
}
+/**
+ * @since 9.0
+ */
declare const enum AVAudioConverterInputStatus {
HaveData = 0,
@@ -301,6 +379,9 @@ declare const enum AVAudioConverterInputStatus {
EndOfStream = 2
}
+/**
+ * @since 9.0
+ */
declare const enum AVAudioConverterOutputStatus {
HaveData = 0,
@@ -327,30 +408,60 @@ declare const enum AVAudioConverterPrimeMethod {
None = 2
}
+/**
+ * @since 8.0
+ */
declare class AVAudioEngine extends NSObject {
static alloc(): AVAudioEngine; // inherited from NSObject
static new(): AVAudioEngine; // inherited from NSObject
+ /**
+ * @since 13.0
+ */
readonly attachedNodes: NSSet;
+ /**
+ * @since 11.0
+ */
autoShutdownEnabled: boolean;
+ /**
+ * @since 8.0
+ */
readonly inputNode: AVAudioInputNode;
+ /**
+ * @since 11.0
+ */
readonly isInManualRenderingMode: boolean;
readonly mainMixerNode: AVAudioMixerNode;
+ /**
+ * @since 11.0
+ */
readonly manualRenderingBlock: (p1: number, p2: interop.Pointer | interop.Reference, p3: interop.Pointer | interop.Reference) => AVAudioEngineManualRenderingStatus;
+ /**
+ * @since 11.0
+ */
readonly manualRenderingFormat: AVAudioFormat;
+ /**
+ * @since 11.0
+ */
readonly manualRenderingMaximumFrameCount: number;
+ /**
+ * @since 11.0
+ */
readonly manualRenderingMode: AVAudioEngineManualRenderingMode;
+ /**
+ * @since 11.0
+ */
readonly manualRenderingSampleTime: number;
musicSequence: interop.Pointer | interop.Reference;
@@ -361,14 +472,31 @@ declare class AVAudioEngine extends NSObject {
attachNode(node: AVAudioNode): void;
- connectMIDIToFormatBlock(sourceNode: AVAudioNode, destinationNode: AVAudioNode, format: AVAudioFormat, tapBlock: (p1: number, p2: number, p3: number, p4: string) => number): void;
+ /**
+ * @since 13.0
+ * @deprecated 16.0
+ */
+ connectMIDIToFormatBlock(sourceNode: AVAudioNode, destinationNode: AVAudioNode, format: AVAudioFormat, tapBlock: (p1: number, p2: number, p3: number, p4: interop.Pointer | interop.Reference) => number): void;
+ /**
+ * @since 16.0
+ */
connectMIDIToFormatEventListBlock(sourceNode: AVAudioNode, destinationNode: AVAudioNode, format: AVAudioFormat, tapBlock: (p1: number, p2: number, p3: interop.Pointer | interop.Reference) => number): void;
- connectMIDIToNodesFormatBlock(sourceNode: AVAudioNode, destinationNodes: NSArray | AVAudioNode[], format: AVAudioFormat, tapBlock: (p1: number, p2: number, p3: number, p4: string) => number): void;
+ /**
+ * @since 13.0
+ * @deprecated 16.0
+ */
+ connectMIDIToNodesFormatBlock(sourceNode: AVAudioNode, destinationNodes: NSArray | AVAudioNode[], format: AVAudioFormat, tapBlock: (p1: number, p2: number, p3: number, p4: interop.Pointer | interop.Reference) => number): void;
+ /**
+ * @since 16.0
+ */
connectMIDIToNodesFormatEventListBlock(sourceNode: AVAudioNode, destinationNodes: NSArray | AVAudioNode[], format: AVAudioFormat, tapBlock: (p1: number, p2: number, p3: interop.Pointer | interop.Reference) => number): void;
+ /**
+ * @since 9.0
+ */
connectToConnectionPointsFromBusFormat(sourceNode: AVAudioNode, destNodes: NSArray | AVAudioConnectionPoint[], sourceBus: number, format: AVAudioFormat): void;
connectToFormat(node1: AVAudioNode, node2: AVAudioNode, format: AVAudioFormat): void;
@@ -377,14 +505,29 @@ declare class AVAudioEngine extends NSObject {
detachNode(node: AVAudioNode): void;
+ /**
+ * @since 11.0
+ */
disableManualRenderingMode(): void;
+ /**
+ * @since 12.0
+ */
disconnectMIDIFrom(sourceNode: AVAudioNode, destinationNode: AVAudioNode): void;
+ /**
+ * @since 12.0
+ */
disconnectMIDIFromNodes(sourceNode: AVAudioNode, destinationNodes: NSArray | AVAudioNode[]): void;
+ /**
+ * @since 12.0
+ */
disconnectMIDIInput(node: AVAudioNode): void;
+ /**
+ * @since 12.0
+ */
disconnectMIDIOutput(node: AVAudioNode): void;
disconnectNodeInput(node: AVAudioNode): void;
@@ -395,16 +538,28 @@ declare class AVAudioEngine extends NSObject {
disconnectNodeOutputBus(node: AVAudioNode, bus: number): void;
+ /**
+ * @since 11.0
+ */
enableManualRenderingModeFormatMaximumFrameCountError(mode: AVAudioEngineManualRenderingMode, pcmFormat: AVAudioFormat, maximumFrameCount: number): boolean;
+ /**
+ * @since 9.0
+ */
inputConnectionPointForNodeInputBus(node: AVAudioNode, bus: number): AVAudioConnectionPoint;
+ /**
+ * @since 9.0
+ */
outputConnectionPointsForNodeOutputBus(node: AVAudioNode, bus: number): NSArray;
pause(): void;
prepare(): void;
+ /**
+ * @since 11.0
+ */
renderOfflineToBufferError(numberOfFrames: number, buffer: AVAudioPCMBuffer): AVAudioEngineManualRenderingStatus;
reset(): void;
@@ -414,8 +569,14 @@ declare class AVAudioEngine extends NSObject {
stop(): void;
}
+/**
+ * @since 8.0
+ */
declare var AVAudioEngineConfigurationChangeNotification: string;
+/**
+ * @since 11.0
+ */
declare const enum AVAudioEngineManualRenderingError {
InvalidMode = -80800,
@@ -425,6 +586,9 @@ declare const enum AVAudioEngineManualRenderingError {
NotRunning = -80802
}
+/**
+ * @since 11.0
+ */
declare const enum AVAudioEngineManualRenderingMode {
Offline = 0,
@@ -432,6 +596,9 @@ declare const enum AVAudioEngineManualRenderingMode {
Realtime = 1
}
+/**
+ * @since 11.0
+ */
declare const enum AVAudioEngineManualRenderingStatus {
Error = -1,
@@ -443,6 +610,9 @@ declare const enum AVAudioEngineManualRenderingStatus {
CannotDoInCurrentContext = 2
}
+/**
+ * @since 8.0
+ */
declare const enum AVAudioEnvironmentDistanceAttenuationModel {
Exponential = 1,
@@ -452,6 +622,9 @@ declare const enum AVAudioEnvironmentDistanceAttenuationModel {
Linear = 3
}
+/**
+ * @since 8.0
+ */
declare class AVAudioEnvironmentDistanceAttenuationParameters extends NSObject {
static alloc(): AVAudioEnvironmentDistanceAttenuationParameters; // inherited from NSObject
@@ -467,6 +640,9 @@ declare class AVAudioEnvironmentDistanceAttenuationParameters extends NSObject {
rolloffFactor: number;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixing {
static alloc(): AVAudioEnvironmentNode; // inherited from NSObject
@@ -479,12 +655,20 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin
listenerAngularOrientation: AVAudio3DAngularOrientation;
+ /**
+ * @since 18.0
+ */
+ listenerHeadTrackingEnabled: boolean;
+
listenerPosition: AVAudio3DPoint;
listenerVectorOrientation: AVAudio3DVectorOrientation;
readonly nextAvailableInputBus: number;
+ /**
+ * @since 13.0
+ */
outputType: AVAudioEnvironmentOutputType;
outputVolume: number;
@@ -505,6 +689,9 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -515,6 +702,9 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -527,6 +717,9 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
isEqual(object: any): boolean;
@@ -548,6 +741,9 @@ declare class AVAudioEnvironmentNode extends AVAudioNode implements AVAudioMixin
self(): this;
}
+/**
+ * @since 13.0
+ */
declare const enum AVAudioEnvironmentOutputType {
Auto = 0,
@@ -559,6 +755,9 @@ declare const enum AVAudioEnvironmentOutputType {
ExternalSpeakers = 3
}
+/**
+ * @since 8.0
+ */
declare class AVAudioEnvironmentReverbParameters extends NSObject {
static alloc(): AVAudioEnvironmentReverbParameters; // inherited from NSObject
@@ -574,6 +773,9 @@ declare class AVAudioEnvironmentReverbParameters extends NSObject {
loadFactoryReverbPreset(preset: AVAudioUnitReverbPreset): void;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioFile extends NSObject {
static alloc(): AVAudioFile; // inherited from NSObject
@@ -584,6 +786,11 @@ declare class AVAudioFile extends NSObject {
framePosition: number;
+ /**
+ * @since 18.0
+ */
+ readonly isOpen: boolean;
+
readonly length: number;
readonly processingFormat: AVAudioFormat;
@@ -598,6 +805,11 @@ declare class AVAudioFile extends NSObject {
constructor(o: { forWriting: NSURL; settings: NSDictionary; });
+ /**
+ * @since 18.0
+ */
+ close(): void;
+
initForReadingCommonFormatInterleavedError(fileURL: NSURL, format: AVAudioCommonFormat, interleaved: boolean): this;
initForReadingError(fileURL: NSURL): this;
@@ -613,8 +825,14 @@ declare class AVAudioFile extends NSObject {
writeFromBufferError(buffer: AVAudioPCMBuffer): boolean;
}
+/**
+ * @since 11.0
+ */
declare var AVAudioFileTypeKey: string;
+/**
+ * @since 8.0
+ */
declare class AVAudioFormat extends NSObject implements NSSecureCoding {
static alloc(): AVAudioFormat; // inherited from NSObject
@@ -627,10 +845,16 @@ declare class AVAudioFormat extends NSObject implements NSSecureCoding {
readonly commonFormat: AVAudioCommonFormat;
+ /**
+ * @since 9.0
+ */
readonly formatDescription: any;
readonly interleaved: boolean;
+ /**
+ * @since 10.0
+ */
magicCookie: NSData;
readonly sampleRate: number;
@@ -647,6 +871,9 @@ declare class AVAudioFormat extends NSObject implements NSSecureCoding {
constructor(o: { standardFormatWithSampleRate: number; channels: number; });
+ /**
+ * @since 9.0
+ */
constructor(o: { CMAudioFormatDescription: any; });
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
@@ -667,6 +894,9 @@ declare class AVAudioFormat extends NSObject implements NSSecureCoding {
initStandardFormatWithSampleRateChannels(sampleRate: number, channels: number): this;
+ /**
+ * @since 9.0
+ */
initWithCMAudioFormatDescription(formatDescription: any): this;
initWithCoder(coder: NSCoder): this;
@@ -682,6 +912,9 @@ declare class AVAudioFormat extends NSObject implements NSSecureCoding {
initWithStreamDescriptionChannelLayout(asbd: interop.Pointer | interop.Reference, layout: AVAudioChannelLayout): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioIONode extends AVAudioNode {
static alloc(): AVAudioIONode; // inherited from NSObject
@@ -692,23 +925,44 @@ declare class AVAudioIONode extends AVAudioNode {
readonly presentationLatency: number;
+ /**
+ * @since 13.0
+ */
readonly voiceProcessingEnabled: boolean;
+ /**
+ * @since 13.0
+ */
setVoiceProcessingEnabledError(enabled: boolean): boolean;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
static alloc(): AVAudioInputNode; // inherited from NSObject
static new(): AVAudioInputNode; // inherited from NSObject
+ /**
+ * @since 13.0
+ */
voiceProcessingAGCEnabled: boolean;
+ /**
+ * @since 13.0
+ */
voiceProcessingBypassed: boolean;
+ /**
+ * @since 13.0
+ */
voiceProcessingInputMuted: boolean;
+ /**
+ * @since 17.0
+ */
voiceProcessingOtherAudioDuckingConfiguration: AVAudioVoiceProcessingOtherAudioDuckingConfiguration;
readonly debugDescription: string; // inherited from NSObjectProtocol
@@ -725,6 +979,9 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -735,6 +992,9 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -747,6 +1007,9 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
isEqual(object: any): boolean;
@@ -767,11 +1030,20 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
self(): this;
+ /**
+ * @since 11.0
+ */
setManualRenderingInputPCMFormatInputBlock(format: AVAudioFormat, block: (p1: number) => interop.Pointer | interop.Reference): boolean;
+ /**
+ * @since 17.0
+ */
setMutedSpeechActivityEventListener(listenerBlock: (p1: AVAudioVoiceProcessingSpeechActivityEvent) => void): boolean;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing {
static alloc(): AVAudioMixerNode; // inherited from NSObject
@@ -796,6 +1068,9 @@ declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing {
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -806,6 +1081,9 @@ declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing {
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -818,6 +1096,9 @@ declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing {
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
isEqual(object: any): boolean;
@@ -839,10 +1120,16 @@ declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing {
self(): this;
}
+/**
+ * @since 8.0
+ */
interface AVAudioMixing extends AVAudio3DMixing, AVAudioStereoMixing {
volume: number;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
}
declare var AVAudioMixing: {
@@ -850,6 +1137,9 @@ declare var AVAudioMixing: {
prototype: AVAudioMixing;
};
+/**
+ * @since 9.0
+ */
declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing {
static alloc(): AVAudioMixingDestination; // inherited from NSObject
@@ -872,6 +1162,9 @@ declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -882,6 +1175,9 @@ declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -894,6 +1190,9 @@ declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
isEqual(object: any): boolean;
@@ -915,24 +1214,36 @@ declare class AVAudioMixingDestination extends NSObject implements AVAudioMixing
self(): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioNode extends NSObject {
static alloc(): AVAudioNode; // inherited from NSObject
static new(): AVAudioNode; // inherited from NSObject
+ /**
+ * @since 11.0
+ */
readonly AUAudioUnit: AUAudioUnit;
readonly engine: AVAudioEngine;
readonly lastRenderTime: AVAudioTime;
+ /**
+ * @since 11.0
+ */
readonly latency: number;
readonly numberOfInputs: number;
readonly numberOfOutputs: number;
+ /**
+ * @since 11.0
+ */
readonly outputPresentationLatency: number;
inputFormatForBus(bus: number): AVAudioFormat;
@@ -950,6 +1261,9 @@ declare class AVAudioNode extends NSObject {
reset(): void;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioOutputNode extends AVAudioIONode {
static alloc(): AVAudioOutputNode; // inherited from NSObject
@@ -957,6 +1271,9 @@ declare class AVAudioOutputNode extends AVAudioIONode {
static new(): AVAudioOutputNode; // inherited from NSObject
}
+/**
+ * @since 8.0
+ */
declare class AVAudioPCMBuffer extends AVAudioBuffer {
static alloc(): AVAudioPCMBuffer; // inherited from NSObject
@@ -975,21 +1292,33 @@ declare class AVAudioPCMBuffer extends AVAudioBuffer {
readonly stride: number;
+ /**
+ * @since 15.0
+ */
constructor(o: { PCMFormat: AVAudioFormat; bufferListNoCopy: interop.Pointer | interop.Reference; deallocator: (p1: interop.Pointer | interop.Reference) => void; });
constructor(o: { PCMFormat: AVAudioFormat; frameCapacity: number; });
+ /**
+ * @since 15.0
+ */
initWithPCMFormatBufferListNoCopyDeallocator(format: AVAudioFormat, bufferList: interop.Pointer | interop.Reference, deallocator: (p1: interop.Pointer | interop.Reference) => void): this;
initWithPCMFormatFrameCapacity(format: AVAudioFormat, frameCapacity: number): this;
}
+/**
+ * @since 2.2
+ */
declare class AVAudioPlayer extends NSObject {
static alloc(): AVAudioPlayer; // inherited from NSObject
static new(): AVAudioPlayer; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
channelAssignments: NSArray;
currentTime: number;
@@ -998,12 +1327,21 @@ declare class AVAudioPlayer extends NSObject {
delegate: AVAudioPlayerDelegate;
+ /**
+ * @since 4.0
+ */
readonly deviceCurrentTime: number;
readonly duration: number;
+ /**
+ * @since 5.0
+ */
enableRate: boolean;
+ /**
+ * @since 10.0
+ */
readonly format: AVAudioFormat;
meteringEnabled: boolean;
@@ -1012,12 +1350,21 @@ declare class AVAudioPlayer extends NSObject {
numberOfLoops: number;
+ /**
+ * @since 4.0
+ */
pan: number;
readonly playing: boolean;
+ /**
+ * @since 5.0
+ */
rate: number;
+ /**
+ * @since 4.0
+ */
readonly settings: NSDictionary;
readonly url: NSURL;
@@ -1026,20 +1373,32 @@ declare class AVAudioPlayer extends NSObject {
constructor(o: { contentsOfURL: NSURL; });
+ /**
+ * @since 7.0
+ */
constructor(o: { contentsOfURL: NSURL; fileTypeHint: string; });
constructor(o: { data: NSData; });
+ /**
+ * @since 7.0
+ */
constructor(o: { data: NSData; fileTypeHint: string; });
averagePowerForChannel(channelNumber: number): number;
initWithContentsOfURLError(url: NSURL): this;
+ /**
+ * @since 7.0
+ */
initWithContentsOfURLFileTypeHintError(url: NSURL, utiString: string): this;
initWithDataError(data: NSData): this;
+ /**
+ * @since 7.0
+ */
initWithDataFileTypeHintError(data: NSData, utiString: string): this;
pause(): void;
@@ -1048,10 +1407,16 @@ declare class AVAudioPlayer extends NSObject {
play(): boolean;
+ /**
+ * @since 4.0
+ */
playAtTime(time: number): boolean;
prepareToPlay(): boolean;
+ /**
+ * @since 10.0
+ */
setVolumeFadeDuration(volume: number, duration: number): void;
stop(): void;
@@ -1061,16 +1426,32 @@ declare class AVAudioPlayer extends NSObject {
interface AVAudioPlayerDelegate extends NSObjectProtocol {
+ /**
+ * @since 2.2
+ * @deprecated 8.0
+ */
audioPlayerBeginInterruption?(player: AVAudioPlayer): void;
audioPlayerDecodeErrorDidOccurError?(player: AVAudioPlayer, error: NSError): void;
audioPlayerDidFinishPlayingSuccessfully?(player: AVAudioPlayer, flag: boolean): void;
+ /**
+ * @since 2.2
+ * @deprecated 6.0
+ */
audioPlayerEndInterruption?(player: AVAudioPlayer): void;
+ /**
+ * @since 4.0
+ * @deprecated 6.0
+ */
audioPlayerEndInterruptionWithFlags?(player: AVAudioPlayer, flags: number): void;
+ /**
+ * @since 6.0
+ * @deprecated 8.0
+ */
audioPlayerEndInterruptionWithOptions?(player: AVAudioPlayer, flags: number): void;
}
declare var AVAudioPlayerDelegate: {
@@ -1078,6 +1459,9 @@ declare var AVAudioPlayerDelegate: {
prototype: AVAudioPlayerDelegate;
};
+/**
+ * @since 8.0
+ */
declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing {
static alloc(): AVAudioPlayerNode; // inherited from NSObject
@@ -1100,6 +1484,9 @@ declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing {
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -1110,6 +1497,9 @@ declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing {
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -1122,6 +1512,9 @@ declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing {
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
isEqual(object: any): boolean;
@@ -1152,18 +1545,30 @@ declare class AVAudioPlayerNode extends AVAudioNode implements AVAudioMixing {
retainCount(): number;
+ /**
+ * @since 11.0
+ */
scheduleBufferAtTimeOptionsCompletionCallbackTypeCompletionHandler(buffer: AVAudioPCMBuffer, when: AVAudioTime, options: AVAudioPlayerNodeBufferOptions, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler: (p1: AVAudioPlayerNodeCompletionCallbackType) => void): void;
scheduleBufferAtTimeOptionsCompletionHandler(buffer: AVAudioPCMBuffer, when: AVAudioTime, options: AVAudioPlayerNodeBufferOptions, completionHandler: () => void): void;
+ /**
+ * @since 11.0
+ */
scheduleBufferCompletionCallbackTypeCompletionHandler(buffer: AVAudioPCMBuffer, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler: (p1: AVAudioPlayerNodeCompletionCallbackType) => void): void;
scheduleBufferCompletionHandler(buffer: AVAudioPCMBuffer, completionHandler: () => void): void;
+ /**
+ * @since 11.0
+ */
scheduleFileAtTimeCompletionCallbackTypeCompletionHandler(file: AVAudioFile, when: AVAudioTime, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler: (p1: AVAudioPlayerNodeCompletionCallbackType) => void): void;
scheduleFileAtTimeCompletionHandler(file: AVAudioFile, when: AVAudioTime, completionHandler: () => void): void;
+ /**
+ * @since 11.0
+ */
scheduleSegmentStartingFrameFrameCountAtTimeCompletionCallbackTypeCompletionHandler(file: AVAudioFile, startFrame: number, numberFrames: number, when: AVAudioTime, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler: (p1: AVAudioPlayerNodeCompletionCallbackType) => void): void;
scheduleSegmentStartingFrameFrameCountAtTimeCompletionHandler(file: AVAudioFile, startFrame: number, numberFrames: number, when: AVAudioTime, completionHandler: () => void): void;
@@ -1204,20 +1609,32 @@ declare const enum AVAudioQuality {
Max = 127
}
+/**
+ * @since 3.0
+ */
declare class AVAudioRecorder extends NSObject {
static alloc(): AVAudioRecorder; // inherited from NSObject
static new(): AVAudioRecorder; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
channelAssignments: NSArray;
readonly currentTime: number;
delegate: AVAudioRecorderDelegate;
+ /**
+ * @since 6.0
+ */
readonly deviceCurrentTime: number;
+ /**
+ * @since 10.0
+ */
readonly format: AVAudioFormat;
meteringEnabled: boolean;
@@ -1228,6 +1645,9 @@ declare class AVAudioRecorder extends NSObject {
readonly url: NSURL;
+ /**
+ * @since 10.0
+ */
constructor(o: { URL: NSURL; format: AVAudioFormat; });
constructor(o: { URL: NSURL; settings: NSDictionary; });
@@ -1236,6 +1656,9 @@ declare class AVAudioRecorder extends NSObject {
deleteRecording(): boolean;
+ /**
+ * @since 10.0
+ */
initWithURLFormatError(url: NSURL, format: AVAudioFormat): this;
initWithURLSettingsError(url: NSURL, settings: NSDictionary): this;
@@ -1248,8 +1671,14 @@ declare class AVAudioRecorder extends NSObject {
record(): boolean;
+ /**
+ * @since 6.0
+ */
recordAtTime(time: number): boolean;
+ /**
+ * @since 6.0
+ */
recordAtTimeForDuration(time: number, duration: number): boolean;
recordForDuration(duration: number): boolean;
@@ -1259,18 +1688,37 @@ declare class AVAudioRecorder extends NSObject {
updateMeters(): void;
}
+/**
+ * @since 3.0
+ */
interface AVAudioRecorderDelegate extends NSObjectProtocol {
+ /**
+ * @since 2.2
+ * @deprecated 8.0
+ */
audioRecorderBeginInterruption?(recorder: AVAudioRecorder): void;
audioRecorderDidFinishRecordingSuccessfully?(recorder: AVAudioRecorder, flag: boolean): void;
audioRecorderEncodeErrorDidOccurError?(recorder: AVAudioRecorder, error: NSError): void;
+ /**
+ * @since 2.2
+ * @deprecated 6.0
+ */
audioRecorderEndInterruption?(recorder: AVAudioRecorder): void;
+ /**
+ * @since 4.0
+ * @deprecated 6.0
+ */
audioRecorderEndInterruptionWithFlags?(recorder: AVAudioRecorder, flags: number): void;
+ /**
+ * @since 6.0
+ * @deprecated 8.0
+ */
audioRecorderEndInterruptionWithOptions?(recorder: AVAudioRecorder, flags: number): void;
}
declare var AVAudioRecorderDelegate: {
@@ -1287,6 +1735,9 @@ declare const enum AVAudioRoutingArbitrationCategory {
PlayAndRecordVoice = 2
}
+/**
+ * @since 9.0
+ */
declare class AVAudioSequencer extends NSObject {
static alloc(): AVAudioSequencer; // inherited from NSObject
@@ -1313,6 +1764,9 @@ declare class AVAudioSequencer extends NSObject {
beatsForSeconds(seconds: number): number;
+ /**
+ * @since 16.0
+ */
createAndAppendTrack(): AVMusicTrack;
dataWithSMPTEResolutionError(SMPTEResolution: number): NSData;
@@ -1327,12 +1781,21 @@ declare class AVAudioSequencer extends NSObject {
prepareToPlay(): void;
+ /**
+ * @since 16.0
+ */
removeTrack(track: AVMusicTrack): boolean;
+ /**
+ * @since 16.0
+ */
reverseEvents(): void;
secondsForBeats(beats: number): number;
+ /**
+ * @since 16.0
+ */
setUserCallback(userCallback: (p1: AVMusicTrack, p2: NSData, p3: number) => void): void;
startAndReturnError(): boolean;
@@ -1342,202 +1805,500 @@ declare class AVAudioSequencer extends NSObject {
writeToURLSMPTEResolutionReplaceExistingError(fileURL: NSURL, resolution: number, replace: boolean): boolean;
}
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyAlbum: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyApproximateDurationInSeconds: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyArtist: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyChannelLayout: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyComments: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyComposer: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyCopyright: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyEncodingApplication: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyGenre: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyISRC: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyKeySignature: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyLyricist: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyNominalBitRate: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyRecordedDate: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeySourceBitDepth: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeySourceEncoder: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeySubTitle: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyTempo: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyTimeSignature: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyTitle: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyTrackNumber: string;
+/**
+ * @since 16.0
+ */
declare var AVAudioSequencerInfoDictionaryKeyYear: string;
+/**
+ * @since 3.0
+ */
declare class AVAudioSession extends NSObject {
static alloc(): AVAudioSession; // inherited from NSObject
static new(): AVAudioSession; // inherited from NSObject
+ /**
+ * @since 3.0
+ */
static sharedInstance(): AVAudioSession;
+ /**
+ * @since 6.0
+ */
readonly IOBufferDuration: number;
+ /**
+ * @since 13.0
+ */
readonly allowHapticsAndSystemSoundsDuringRecording: boolean;
+ /**
+ * @since 9.0
+ */
readonly availableCategories: NSArray;
+ /**
+ * @since 7.0
+ */
readonly availableInputs: NSArray;
+ /**
+ * @since 9.0
+ */
readonly availableModes: NSArray;
+ /**
+ * @since 3.0
+ */
readonly category: string;
+ /**
+ * @since 6.0
+ */
readonly categoryOptions: AVAudioSessionCategoryOptions;
+ /**
+ * @since 3.0
+ * @deprecated 6.0
+ */
readonly currentHardwareInputNumberOfChannels: number;
+ /**
+ * @since 3.0
+ * @deprecated 6.0
+ */
readonly currentHardwareOutputNumberOfChannels: number;
+ /**
+ * @since 3.0
+ * @deprecated 6.0
+ */
readonly currentHardwareSampleRate: number;
+ /**
+ * @since 6.0
+ */
readonly currentRoute: AVAudioSessionRouteDescription;
+ /**
+ * @since 4.0
+ * @deprecated 6.0
+ */
delegate: AVAudioSessionDelegate;
+ /**
+ * @since 6.0
+ */
readonly inputAvailable: boolean;
+ /**
+ * @since 6.0
+ */
readonly inputDataSource: AVAudioSessionDataSourceDescription;
+ /**
+ * @since 6.0
+ */
readonly inputDataSources: NSArray;
+ /**
+ * @since 6.0
+ */
readonly inputGain: number;
+ /**
+ * @since 6.0
+ */
readonly inputGainSettable: boolean;
+ /**
+ * @since 3.0
+ * @deprecated 6.0
+ */
readonly inputIsAvailable: boolean;
+ /**
+ * @since 6.0
+ */
readonly inputLatency: number;
+ /**
+ * @since 6.0
+ */
readonly inputNumberOfChannels: number;
+ /**
+ * @since 14.0
+ */
readonly inputOrientation: AVAudioStereoOrientation;
+ /**
+ * @since 7.0
+ */
readonly maximumInputNumberOfChannels: number;
+ /**
+ * @since 7.0
+ */
readonly maximumOutputNumberOfChannels: number;
+ /**
+ * @since 5.0
+ */
readonly mode: string;
+ /**
+ * @since 6.0
+ */
readonly otherAudioPlaying: boolean;
+ /**
+ * @since 6.0
+ */
readonly outputDataSource: AVAudioSessionDataSourceDescription;
+ /**
+ * @since 6.0
+ */
readonly outputDataSources: NSArray;
+ /**
+ * @since 6.0
+ */
readonly outputLatency: number;
+ /**
+ * @since 6.0
+ */
readonly outputNumberOfChannels: number;
+ /**
+ * @since 6.0
+ */
readonly outputVolume: number;
+ /**
+ * @since 3.0
+ * @deprecated 6.0
+ */
readonly preferredHardwareSampleRate: number;
+ /**
+ * @since 3.0
+ */
readonly preferredIOBufferDuration: number;
+ /**
+ * @since 7.0
+ */
readonly preferredInput: AVAudioSessionPortDescription;
+ /**
+ * @since 7.0
+ */
readonly preferredInputNumberOfChannels: number;
+ /**
+ * @since 14.0
+ */
readonly preferredInputOrientation: AVAudioStereoOrientation;
+ /**
+ * @since 7.0
+ */
readonly preferredOutputNumberOfChannels: number;
+ /**
+ * @since 6.0
+ */
readonly preferredSampleRate: number;
+ /**
+ * @since 17.0
+ */
readonly prefersInterruptionOnRouteDisconnect: boolean;
+ /**
+ * @since 14.5
+ */
readonly prefersNoInterruptionsFromSystemAlerts: boolean;
+ /**
+ * @since 13.0
+ */
readonly promptStyle: AVAudioSessionPromptStyle;
+ /**
+ * @since 8.0
+ * @deprecated 17.0
+ */
readonly recordPermission: AVAudioSessionRecordPermission;
+ /**
+ * @since 17.2
+ */
readonly renderingMode: AVAudioSessionRenderingMode;
+ /**
+ * @since 11.0
+ */
readonly routeSharingPolicy: AVAudioSessionRouteSharingPolicy;
+ /**
+ * @since 6.0
+ */
readonly sampleRate: number;
+ /**
+ * @since 8.0
+ */
readonly secondaryAudioShouldBeSilencedHint: boolean;
+ /**
+ * @since 17.2
+ */
readonly supportedOutputChannelLayouts: NSArray;
+ /**
+ * @since 15.0
+ */
readonly supportsMultichannelContent: boolean;
+ /**
+ * @since 6.0
+ */
overrideOutputAudioPortError(portOverride: AVAudioSessionPortOverride): boolean;
prepareRouteSelectionForPlaybackWithCompletionHandler(completionHandler: (p1: boolean, p2: AVAudioSessionRouteSelection) => void): void;
+ /**
+ * @since 7.0
+ * @deprecated 17.0
+ */
requestRecordPermission(response: (p1: boolean) => void): void;
+ /**
+ * @since 3.0
+ */
setActiveError(active: boolean): boolean;
+ /**
+ * @since 4.0
+ * @deprecated 6.0
+ */
setActiveWithFlagsError(active: boolean, flags: number): boolean;
+ /**
+ * @since 6.0
+ */
setActiveWithOptionsError(active: boolean, options: AVAudioSessionSetActiveOptions): boolean;
+ /**
+ * @since 10.0
+ */
setAggregatedIOPreferenceError(inIOType: AVAudioSessionIOType): boolean;
+ /**
+ * @since 13.0
+ */
setAllowHapticsAndSystemSoundsDuringRecordingError(inValue: boolean): boolean;
+ /**
+ * @since 3.0
+ */
setCategoryError(category: string): boolean;
+ /**
+ * @since 10.0
+ */
setCategoryModeOptionsError(category: string, mode: string, options: AVAudioSessionCategoryOptions): boolean;
+ /**
+ * @since 11.0
+ */
setCategoryModeRouteSharingPolicyOptionsError(category: string, mode: string, policy: AVAudioSessionRouteSharingPolicy, options: AVAudioSessionCategoryOptions): boolean;
+ /**
+ * @since 6.0
+ */
setCategoryWithOptionsError(category: string, options: AVAudioSessionCategoryOptions): boolean;
+ /**
+ * @since 6.0
+ */
setInputDataSourceError(dataSource: AVAudioSessionDataSourceDescription): boolean;
+ /**
+ * @since 6.0
+ */
setInputGainError(gain: number): boolean;
+ /**
+ * @since 5.0
+ */
setModeError(mode: string): boolean;
+ /**
+ * @since 6.0
+ */
setOutputDataSourceError(dataSource: AVAudioSessionDataSourceDescription): boolean;
+ /**
+ * @since 3.0
+ * @deprecated 6.0
+ */
setPreferredHardwareSampleRateError(sampleRate: number): boolean;
+ /**
+ * @since 3.0
+ */
setPreferredIOBufferDurationError(duration: number): boolean;
+ /**
+ * @since 7.0
+ */
setPreferredInputError(inPort: AVAudioSessionPortDescription): boolean;
+ /**
+ * @since 7.0
+ */
setPreferredInputNumberOfChannelsError(count: number): boolean;
+ /**
+ * @since 14.0
+ */
setPreferredInputOrientationError(orientation: AVAudioStereoOrientation): boolean;
+ /**
+ * @since 7.0
+ */
setPreferredOutputNumberOfChannelsError(count: number): boolean;
+ /**
+ * @since 6.0
+ */
setPreferredSampleRateError(sampleRate: number): boolean;
+ /**
+ * @since 17.0
+ */
setPrefersInterruptionOnRouteDisconnectError(inValue: boolean): boolean;
+ /**
+ * @since 14.5
+ */
setPrefersNoInterruptionsFromSystemAlertsError(inValue: boolean): boolean;
+ /**
+ * @since 15.0
+ */
setSupportsMultichannelContentError(inValue: boolean): boolean;
}
@@ -1546,10 +2307,20 @@ declare const enum AVAudioSessionActivationOptions {
None = 0
}
+/**
+ * @since 3.0
+ */
declare var AVAudioSessionCategoryAmbient: string;
+/**
+ * @since 3.0
+ * @deprecated 10.0
+ */
declare var AVAudioSessionCategoryAudioProcessing: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionCategoryMultiRoute: string;
declare const enum AVAudioSessionCategoryOptions {
@@ -1571,58 +2342,119 @@ declare const enum AVAudioSessionCategoryOptions {
OverrideMutedMicrophoneInterruption = 128
}
+/**
+ * @since 3.0
+ */
declare var AVAudioSessionCategoryPlayAndRecord: string;
+/**
+ * @since 3.0
+ */
declare var AVAudioSessionCategoryPlayback: string;
+/**
+ * @since 3.0
+ */
declare var AVAudioSessionCategoryRecord: string;
+/**
+ * @since 3.0
+ */
declare var AVAudioSessionCategorySoloAmbient: string;
+/**
+ * @since 6.0
+ */
declare class AVAudioSessionChannelDescription extends NSObject {
static alloc(): AVAudioSessionChannelDescription; // inherited from NSObject
static new(): AVAudioSessionChannelDescription; // inherited from NSObject
+ /**
+ * @since 6.0
+ */
readonly channelLabel: number;
+ /**
+ * @since 6.0
+ */
readonly channelName: string;
+ /**
+ * @since 6.0
+ */
readonly channelNumber: number;
+ /**
+ * @since 6.0
+ */
readonly owningPortUID: string;
}
+/**
+ * @since 6.0
+ */
declare class AVAudioSessionDataSourceDescription extends NSObject {
static alloc(): AVAudioSessionDataSourceDescription; // inherited from NSObject
static new(): AVAudioSessionDataSourceDescription; // inherited from NSObject
+ /**
+ * @since 6.0
+ */
readonly dataSourceID: number;
+ /**
+ * @since 6.0
+ */
readonly dataSourceName: string;
+ /**
+ * @since 7.0
+ */
readonly location: string;
+ /**
+ * @since 7.0
+ */
readonly orientation: string;
+ /**
+ * @since 7.0
+ */
readonly preferredPolarPattern: string;
+ /**
+ * @since 7.0
+ */
readonly selectedPolarPattern: string;
+ /**
+ * @since 7.0
+ */
readonly supportedPolarPatterns: NSArray;
+ /**
+ * @since 7.0
+ */
setPreferredPolarPatternError(pattern: string): boolean;
}
+/**
+ * @since 3.0
+ * @deprecated 6.0
+ */
interface AVAudioSessionDelegate extends NSObjectProtocol {
beginInterruption?(): void;
endInterruption?(): void;
+ /**
+ * @since 4.0
+ */
endInterruptionWithFlags?(flags: number): void;
inputIsAvailableChanged?(isInputAvailable: boolean): void;
@@ -1641,8 +2473,14 @@ declare const enum AVAudioSessionIOType {
declare const AVAudioSessionInterruptionFlags_ShouldResume: number;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionInterruptionNotification: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionInterruptionOptionKey: string;
declare const enum AVAudioSessionInterruptionOptions {
@@ -1661,6 +2499,9 @@ declare const enum AVAudioSessionInterruptionReason {
RouteDisconnected = 4
}
+/**
+ * @since 14.5
+ */
declare var AVAudioSessionInterruptionReasonKey: string;
declare const enum AVAudioSessionInterruptionType {
@@ -1670,115 +2511,275 @@ declare const enum AVAudioSessionInterruptionType {
Ended = 0
}
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionInterruptionTypeKey: string;
+/**
+ * @since 10.3
+ * @deprecated 14.5
+ */
declare var AVAudioSessionInterruptionWasSuspendedKey: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionLocationLower: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionLocationUpper: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionMediaServicesWereLostNotification: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionMediaServicesWereResetNotification: string;
+/**
+ * @since 5.0
+ */
declare var AVAudioSessionModeDefault: string;
+/**
+ * @since 5.0
+ */
declare var AVAudioSessionModeGameChat: string;
+/**
+ * @since 5.0
+ */
declare var AVAudioSessionModeMeasurement: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionModeMoviePlayback: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioSessionModeSpokenAudio: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionModeVideoChat: string;
+/**
+ * @since 5.0
+ */
declare var AVAudioSessionModeVideoRecording: string;
+/**
+ * @since 5.0
+ */
declare var AVAudioSessionModeVoiceChat: string;
+/**
+ * @since 12.0
+ */
declare var AVAudioSessionModeVoicePrompt: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionOrientationBack: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionOrientationBottom: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionOrientationFront: string;
+/**
+ * @since 8.0
+ */
declare var AVAudioSessionOrientationLeft: string;
+/**
+ * @since 8.0
+ */
declare var AVAudioSessionOrientationRight: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionOrientationTop: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionPolarPatternCardioid: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionPolarPatternOmnidirectional: string;
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPolarPatternStereo: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionPolarPatternSubcardioid: string;
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPortAVB: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortAirPlay: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortBluetoothA2DP: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortBluetoothHFP: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionPortBluetoothLE: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortBuiltInMic: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortBuiltInReceiver: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortBuiltInSpeaker: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioSessionPortCarAudio: string;
+/**
+ * @since 17.0
+ */
declare var AVAudioSessionPortContinuityMicrophone: string;
+/**
+ * @since 6.0
+ */
declare class AVAudioSessionPortDescription extends NSObject {
static alloc(): AVAudioSessionPortDescription; // inherited from NSObject
static new(): AVAudioSessionPortDescription; // inherited from NSObject
+ /**
+ * @since 6.0
+ */
readonly UID: string;
+ /**
+ * @since 6.0
+ */
readonly channels: NSArray;
+ /**
+ * @since 7.0
+ */
readonly dataSources: NSArray;
+ /**
+ * @since 10.0
+ */
readonly hasHardwareVoiceCallProcessing: boolean;
+ /**
+ * @since 6.0
+ */
readonly portName: string;
+ /**
+ * @since 6.0
+ */
readonly portType: string;
+ /**
+ * @since 7.0
+ */
readonly preferredDataSource: AVAudioSessionDataSourceDescription;
+ /**
+ * @since 7.0
+ */
readonly selectedDataSource: AVAudioSessionDataSourceDescription;
+ /**
+ * @since 15.0
+ */
readonly spatialAudioEnabled: boolean;
+ /**
+ * @since 7.0
+ */
setPreferredDataSourceError(dataSource: AVAudioSessionDataSourceDescription): boolean;
}
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPortDisplayPort: string;
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPortFireWire: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortHDMI: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortHeadphones: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortHeadsetMic: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortLineIn: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortLineOut: string;
declare const enum AVAudioSessionPortOverride {
@@ -1788,12 +2789,24 @@ declare const enum AVAudioSessionPortOverride {
Speaker = 1936747378
}
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPortPCI: string;
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPortThunderbolt: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionPortUSBAudio: string;
+/**
+ * @since 14.0
+ */
declare var AVAudioSessionPortVirtual: string;
declare const enum AVAudioSessionPromptStyle {
@@ -1814,6 +2827,9 @@ declare const enum AVAudioSessionRecordPermission {
Granted = 1735552628
}
+/**
+ * @since 17.2
+ */
declare var AVAudioSessionRenderingCapabilitiesChangeNotification: string;
declare const enum AVAudioSessionRenderingMode {
@@ -1831,12 +2847,24 @@ declare const enum AVAudioSessionRenderingMode {
DolbyAtmos = 5
}
+/**
+ * @since 17.2
+ */
declare var AVAudioSessionRenderingModeChangeNotification: string;
+/**
+ * @since 17.2
+ */
declare var AVAudioSessionRenderingModeNewRenderingModeKey: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionRouteChangeNotification: string;
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionRouteChangePreviousRouteKey: string;
declare const enum AVAudioSessionRouteChangeReason {
@@ -1858,16 +2886,28 @@ declare const enum AVAudioSessionRouteChangeReason {
RouteConfigurationChange = 8
}
+/**
+ * @since 6.0
+ */
declare var AVAudioSessionRouteChangeReasonKey: string;
+/**
+ * @since 6.0
+ */
declare class AVAudioSessionRouteDescription extends NSObject {
static alloc(): AVAudioSessionRouteDescription; // inherited from NSObject
static new(): AVAudioSessionRouteDescription; // inherited from NSObject
+ /**
+ * @since 6.0
+ */
readonly inputs: NSArray;
+ /**
+ * @since 6.0
+ */
readonly outputs: NSArray;
}
@@ -1891,6 +2931,9 @@ declare const enum AVAudioSessionSetActiveOptions {
NotifyOthersOnDeactivation = 1
}
+/**
+ * @since 8.0
+ */
declare var AVAudioSessionSilenceSecondaryAudioHintNotification: string;
declare const enum AVAudioSessionSilenceSecondaryAudioHintType {
@@ -1900,12 +2943,24 @@ declare const enum AVAudioSessionSilenceSecondaryAudioHintType {
End = 0
}
+/**
+ * @since 8.0
+ */
declare var AVAudioSessionSilenceSecondaryAudioHintTypeKey: string;
+/**
+ * @since 15.0
+ */
declare var AVAudioSessionSpatialAudioEnabledKey: string;
+/**
+ * @since 15.0
+ */
declare var AVAudioSessionSpatialPlaybackCapabilitiesChangedNotification: string;
+/**
+ * @since 13.0
+ */
declare class AVAudioSinkNode extends AVAudioNode {
static alloc(): AVAudioSinkNode; // inherited from NSObject
@@ -1917,6 +2972,9 @@ declare class AVAudioSinkNode extends AVAudioNode {
initWithReceiverBlock(block: (p1: interop.Pointer | interop.Reference, p2: number, p3: interop.Pointer | interop.Reference) => number): this;
}
+/**
+ * @since 13.0
+ */
declare class AVAudioSourceNode extends AVAudioNode implements AVAudioMixing {
static alloc(): AVAudioSourceNode; // inherited from NSObject
@@ -1937,6 +2995,9 @@ declare class AVAudioSourceNode extends AVAudioNode implements AVAudioMixing {
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -1947,6 +3008,9 @@ declare class AVAudioSourceNode extends AVAudioNode implements AVAudioMixing {
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -1963,6 +3027,9 @@ declare class AVAudioSourceNode extends AVAudioNode implements AVAudioMixing {
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
initWithFormatRenderBlock(format: AVAudioFormat, block: (p1: interop.Pointer | interop.Reference, p2: interop.Pointer | interop.Reference, p3: number, p4: interop.Pointer | interop.Reference) => number): this;
@@ -1988,6 +3055,9 @@ declare class AVAudioSourceNode extends AVAudioNode implements AVAudioMixing {
self(): this;
}
+/**
+ * @since 8.0
+ */
interface AVAudioStereoMixing extends NSObjectProtocol {
pan: number;
@@ -2010,6 +3080,9 @@ declare const enum AVAudioStereoOrientation {
LandscapeLeft = 4
}
+/**
+ * @since 8.0
+ */
declare class AVAudioTime extends NSObject {
static alloc(): AVAudioTime; // inherited from NSObject
@@ -2059,10 +3132,16 @@ declare class AVAudioTime extends NSObject {
initWithSampleTimeAtRate(sampleTime: number, sampleRate: number): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnit extends AVAudioNode {
static alloc(): AVAudioUnit; // inherited from NSObject
+ /**
+ * @since 9.0
+ */
static instantiateWithComponentDescriptionOptionsCompletionHandler(audioComponentDescription: AudioComponentDescription, options: AudioComponentInstantiationOptions, completionHandler: (p1: AVAudioUnit, p2: NSError) => void): void;
static new(): AVAudioUnit; // inherited from NSObject
@@ -2080,6 +3159,9 @@ declare class AVAudioUnit extends AVAudioNode {
loadAudioUnitPresetAtURLError(url: NSURL): boolean;
}
+/**
+ * @since 9.0
+ */
declare class AVAudioUnitComponent extends NSObject {
static alloc(): AVAudioUnitComponent; // inherited from NSObject
@@ -2092,12 +3174,18 @@ declare class AVAudioUnitComponent extends NSObject {
readonly audioComponentDescription: AudioComponentDescription;
+ /**
+ * @since 16.0
+ */
readonly configurationDictionary: NSDictionary;
readonly hasMIDIInput: boolean;
readonly hasMIDIOutput: boolean;
+ /**
+ * @since 16.0
+ */
readonly icon: UIImage;
readonly localizedTypeName: string;
@@ -2106,6 +3194,9 @@ declare class AVAudioUnitComponent extends NSObject {
readonly name: string;
+ /**
+ * @since 16.0
+ */
readonly passesAUVal: boolean;
readonly sandboxSafe: boolean;
@@ -2117,6 +3208,9 @@ declare class AVAudioUnitComponent extends NSObject {
readonly versionString: string;
}
+/**
+ * @since 9.0
+ */
declare class AVAudioUnitComponentManager extends NSObject {
static alloc(): AVAudioUnitComponentManager; // inherited from NSObject
@@ -2136,10 +3230,19 @@ declare class AVAudioUnitComponentManager extends NSObject {
componentsPassingTest(testHandler: (p1: AVAudioUnitComponent, p2: interop.Pointer | interop.Reference) => boolean): NSArray;
}
+/**
+ * @since 13.0
+ */
declare var AVAudioUnitComponentManagerRegistrationsChangedNotification: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitComponentTagsDidChangeNotification: string;
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitDelay extends AVAudioUnitEffect {
static alloc(): AVAudioUnitDelay; // inherited from NSObject
@@ -2155,6 +3258,9 @@ declare class AVAudioUnitDelay extends AVAudioUnitEffect {
wetDryMix: number;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitDistortion extends AVAudioUnitEffect {
static alloc(): AVAudioUnitDistortion; // inherited from NSObject
@@ -2168,6 +3274,9 @@ declare class AVAudioUnitDistortion extends AVAudioUnitEffect {
loadFactoryPreset(preset: AVAudioUnitDistortionPreset): void;
}
+/**
+ * @since 8.0
+ */
declare const enum AVAudioUnitDistortionPreset {
DrumsBitBrush = 0,
@@ -2215,6 +3324,9 @@ declare const enum AVAudioUnitDistortionPreset {
SpeechWaves = 21
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitEQ extends AVAudioUnitEffect {
static alloc(): AVAudioUnitEQ; // inherited from NSObject
@@ -2230,6 +3342,9 @@ declare class AVAudioUnitEQ extends AVAudioUnitEffect {
initWithNumberOfBands(numberOfBands: number): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitEQFilterParameters extends NSObject {
static alloc(): AVAudioUnitEQFilterParameters; // inherited from NSObject
@@ -2247,6 +3362,9 @@ declare class AVAudioUnitEQFilterParameters extends NSObject {
gain: number;
}
+/**
+ * @since 8.0
+ */
declare const enum AVAudioUnitEQFilterType {
Parametric = 0,
@@ -2272,6 +3390,9 @@ declare const enum AVAudioUnitEQFilterType {
ResonantHighShelf = 10
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitEffect extends AVAudioUnit {
static alloc(): AVAudioUnitEffect; // inherited from NSObject
@@ -2285,6 +3406,9 @@ declare class AVAudioUnitEffect extends AVAudioUnit {
initWithAudioComponentDescription(audioComponentDescription: AudioComponentDescription): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing {
static alloc(): AVAudioUnitGenerator; // inherited from NSObject
@@ -2307,6 +3431,9 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing
pan: number; // inherited from AVAudioStereoMixing
+ /**
+ * @since 13.0
+ */
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
@@ -2317,6 +3444,9 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing
reverbBlend: number; // inherited from AVAudio3DMixing
+ /**
+ * @since 13.0
+ */
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
@@ -2331,6 +3461,9 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+ /**
+ * @since 9.0
+ */
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
initWithAudioComponentDescription(audioComponentDescription: AudioComponentDescription): this;
@@ -2354,22 +3487,93 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing
self(): this;
}
-declare class AVAudioUnitMIDIInstrument extends AVAudioUnit {
+/**
+ * @since 8.0
+ */
+declare class AVAudioUnitMIDIInstrument extends AVAudioUnit implements AVAudioMixing {
static alloc(): AVAudioUnitMIDIInstrument; // inherited from NSObject
static new(): AVAudioUnitMIDIInstrument; // inherited from NSObject
+ readonly debugDescription: string; // inherited from NSObjectProtocol
+
+ readonly description: string; // inherited from NSObjectProtocol
+
+ readonly hash: number; // inherited from NSObjectProtocol
+
+ readonly isProxy: boolean; // inherited from NSObjectProtocol
+
+ obstruction: number; // inherited from AVAudio3DMixing
+
+ occlusion: number; // inherited from AVAudio3DMixing
+
+ pan: number; // inherited from AVAudioStereoMixing
+
+ /**
+ * @since 13.0
+ */
+ pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
+
+ position: AVAudio3DPoint; // inherited from AVAudio3DMixing
+
+ rate: number; // inherited from AVAudio3DMixing
+
+ renderingAlgorithm: AVAudio3DMixingRenderingAlgorithm; // inherited from AVAudio3DMixing
+
+ reverbBlend: number; // inherited from AVAudio3DMixing
+
+ /**
+ * @since 13.0
+ */
+ sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
+
+ readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
+
+ volume: number; // inherited from AVAudioMixing
+
+ readonly // inherited from NSObjectProtocol
+
constructor(o: { audioComponentDescription: AudioComponentDescription; });
+ class(): typeof NSObject;
+
+ conformsToProtocol(aProtocol: any /* Protocol */): boolean;
+
+ /**
+ * @since 9.0
+ */
+ destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
+
initWithAudioComponentDescription(description: AudioComponentDescription): this;
+ 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;
+
sendControllerWithValueOnChannel(controller: number, value: number, channel: number): void;
sendMIDIEventData1(midiStatus: number, data1: number): void;
sendMIDIEventData1Data2(midiStatus: number, data1: number, data2: number): void;
+ /**
+ * @since 16.0
+ */
sendMIDIEventList(eventList: interop.Pointer | interop.Reference): void;
sendMIDISysExEvent(midiData: NSData): void;
@@ -2389,8 +3593,14 @@ declare class AVAudioUnitMIDIInstrument extends AVAudioUnit {
stopNoteOnChannel(note: number, channel: number): void;
}
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitManufacturerNameApple: string;
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitReverb extends AVAudioUnitEffect {
static alloc(): AVAudioUnitReverb; // inherited from NSObject
@@ -2402,6 +3612,9 @@ declare class AVAudioUnitReverb extends AVAudioUnitEffect {
loadFactoryPreset(preset: AVAudioUnitReverbPreset): void;
}
+/**
+ * @since 8.0
+ */
declare const enum AVAudioUnitReverbPreset {
SmallRoom = 0,
@@ -2431,6 +3644,9 @@ declare const enum AVAudioUnitReverbPreset {
LargeHall2 = 12
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitSampler extends AVAudioUnitMIDIInstrument {
static alloc(): AVAudioUnitSampler; // inherited from NSObject
@@ -2439,8 +3655,15 @@ declare class AVAudioUnitSampler extends AVAudioUnitMIDIInstrument {
globalTuning: number;
+ /**
+ * @since 8.0
+ * @deprecated 15.0
+ */
masterGain: number;
+ /**
+ * @since 15.0
+ */
overallGain: number;
stereoPan: number;
@@ -2452,6 +3675,9 @@ declare class AVAudioUnitSampler extends AVAudioUnitMIDIInstrument {
loadSoundBankInstrumentAtURLProgramBankMSBBankLSBError(bankURL: NSURL, program: number, bankMSB: number, bankLSB: number): boolean;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitTimeEffect extends AVAudioUnit {
static alloc(): AVAudioUnitTimeEffect; // inherited from NSObject
@@ -2465,6 +3691,9 @@ declare class AVAudioUnitTimeEffect extends AVAudioUnit {
initWithAudioComponentDescription(audioComponentDescription: AudioComponentDescription): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitTimePitch extends AVAudioUnitTimeEffect {
static alloc(): AVAudioUnitTimePitch; // inherited from NSObject
@@ -2478,26 +3707,59 @@ declare class AVAudioUnitTimePitch extends AVAudioUnitTimeEffect {
rate: number;
}
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeEffect: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeFormatConverter: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeGenerator: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeMIDIProcessor: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeMixer: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeMusicDevice: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeMusicEffect: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeOfflineEffect: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypeOutput: string;
+/**
+ * @since 9.0
+ */
declare var AVAudioUnitTypePanner: string;
+/**
+ * @since 8.0
+ */
declare class AVAudioUnitVarispeed extends AVAudioUnitTimeEffect {
static alloc(): AVAudioUnitVarispeed; // inherited from NSObject
@@ -2507,12 +3769,18 @@ declare class AVAudioUnitVarispeed extends AVAudioUnitTimeEffect {
rate: number;
}
+/**
+ * @since 17.0
+ */
interface AVAudioVoiceProcessingOtherAudioDuckingConfiguration {
enableAdvancedDucking: boolean;
duckingLevel: AVAudioVoiceProcessingOtherAudioDuckingLevel;
}
declare var AVAudioVoiceProcessingOtherAudioDuckingConfiguration: interop.StructType;
+/**
+ * @since 17.0
+ */
declare const enum AVAudioVoiceProcessingOtherAudioDuckingLevel {
Default = 0,
@@ -2524,6 +3792,9 @@ declare const enum AVAudioVoiceProcessingOtherAudioDuckingLevel {
Max = 30
}
+/**
+ * @since 17.0
+ */
declare const enum AVAudioVoiceProcessingSpeechActivityEvent {
Started = 0,
@@ -2537,20 +3808,44 @@ interface AVBeatRange {
}
declare var AVBeatRange: interop.StructType;
+/**
+ * @since 4.0
+ */
declare var AVChannelLayoutKey: string;
+/**
+ * @since 7.0
+ */
declare var AVEncoderAudioQualityForVBRKey: string;
+/**
+ * @since 3.0
+ */
declare var AVEncoderAudioQualityKey: string;
+/**
+ * @since 3.0
+ */
declare var AVEncoderBitDepthHintKey: string;
+/**
+ * @since 3.0
+ */
declare var AVEncoderBitRateKey: string;
+/**
+ * @since 4.0
+ */
declare var AVEncoderBitRatePerChannelKey: string;
+/**
+ * @since 7.0
+ */
declare var AVEncoderBitRateStrategyKey: string;
+/**
+ * @since 16.0
+ */
declare class AVExtendedNoteOnEvent extends AVMusicEvent {
static alloc(): AVExtendedNoteOnEvent; // inherited from NSObject
@@ -2576,8 +3871,14 @@ declare class AVExtendedNoteOnEvent extends AVMusicEvent {
initWithMIDINoteVelocityInstrumentIDGroupIDDuration(midiNote: number, velocity: number, instrumentID: number, groupID: number, duration: number): this;
}
+/**
+ * @since 16.0
+ */
declare var AVExtendedNoteOnEventDefaultInstrument: number;
+/**
+ * @since 16.0
+ */
declare class AVExtendedTempoEvent extends AVMusicEvent {
static alloc(): AVExtendedTempoEvent; // inherited from NSObject
@@ -2591,16 +3892,34 @@ declare class AVExtendedTempoEvent extends AVMusicEvent {
initWithTempo(tempo: number): this;
}
+/**
+ * @since 3.0
+ */
declare var AVFormatIDKey: string;
+/**
+ * @since 3.0
+ */
declare var AVLinearPCMBitDepthKey: string;
+/**
+ * @since 3.0
+ */
declare var AVLinearPCMIsBigEndianKey: string;
+/**
+ * @since 3.0
+ */
declare var AVLinearPCMIsFloatKey: string;
+/**
+ * @since 4.0
+ */
declare var AVLinearPCMIsNonInterleaved: string;
+/**
+ * @since 16.0
+ */
declare class AVMIDIChannelEvent extends AVMusicEvent {
static alloc(): AVMIDIChannelEvent; // inherited from NSObject
@@ -2610,6 +3929,9 @@ declare class AVMIDIChannelEvent extends AVMusicEvent {
channel: number;
}
+/**
+ * @since 16.0
+ */
declare class AVMIDIChannelPressureEvent extends AVMIDIChannelEvent {
static alloc(): AVMIDIChannelPressureEvent; // inherited from NSObject
@@ -2623,6 +3945,9 @@ declare class AVMIDIChannelPressureEvent extends AVMIDIChannelEvent {
initWithChannelPressure(channel: number, pressure: number): this;
}
+/**
+ * @since 16.0
+ */
declare class AVMIDIControlChangeEvent extends AVMIDIChannelEvent {
static alloc(): AVMIDIControlChangeEvent; // inherited from NSObject
@@ -2638,6 +3963,9 @@ declare class AVMIDIControlChangeEvent extends AVMIDIChannelEvent {
initWithChannelMessageTypeValue(channel: number, messageType: AVMIDIControlChangeMessageType, value: number): this;
}
+/**
+ * @since 16.0
+ */
declare const enum AVMIDIControlChangeMessageType {
BankSelect = 0,
@@ -2711,6 +4039,9 @@ declare const enum AVMIDIControlChangeMessageType {
MonoModeOff = 127
}
+/**
+ * @since 16.0
+ */
declare class AVMIDIMetaEvent extends AVMusicEvent {
static alloc(): AVMIDIMetaEvent; // inherited from NSObject
@@ -2724,6 +4055,9 @@ declare class AVMIDIMetaEvent extends AVMusicEvent {
initWithTypeData(type: AVMIDIMetaEventType, data: NSData): this;
}
+/**
+ * @since 16.0
+ */
declare const enum AVMIDIMetaEventType {
SequenceNumber = 0,
@@ -2759,6 +4093,9 @@ declare const enum AVMIDIMetaEventType {
ProprietaryEvent = 127
}
+/**
+ * @since 16.0
+ */
declare class AVMIDINoteEvent extends AVMusicEvent {
static alloc(): AVMIDINoteEvent; // inherited from NSObject
@@ -2778,6 +4115,9 @@ declare class AVMIDINoteEvent extends AVMusicEvent {
initWithChannelKeyVelocityDuration(channel: number, keyNum: number, velocity: number, duration: number): this;
}
+/**
+ * @since 16.0
+ */
declare class AVMIDIPitchBendEvent extends AVMIDIChannelEvent {
static alloc(): AVMIDIPitchBendEvent; // inherited from NSObject
@@ -2791,6 +4131,9 @@ declare class AVMIDIPitchBendEvent extends AVMIDIChannelEvent {
initWithChannelValue(channel: number, value: number): this;
}
+/**
+ * @since 8.0
+ */
declare class AVMIDIPlayer extends NSObject {
static alloc(): AVMIDIPlayer; // inherited from NSObject
@@ -2820,6 +4163,9 @@ declare class AVMIDIPlayer extends NSObject {
stop(): void;
}
+/**
+ * @since 16.0
+ */
declare class AVMIDIPolyPressureEvent extends AVMIDIChannelEvent {
static alloc(): AVMIDIPolyPressureEvent; // inherited from NSObject
@@ -2835,6 +4181,9 @@ declare class AVMIDIPolyPressureEvent extends AVMIDIChannelEvent {
initWithChannelKeyPressure(channel: number, key: number, pressure: number): this;
}
+/**
+ * @since 16.0
+ */
declare class AVMIDIProgramChangeEvent extends AVMIDIChannelEvent {
static alloc(): AVMIDIProgramChangeEvent; // inherited from NSObject
@@ -2848,6 +4197,9 @@ declare class AVMIDIProgramChangeEvent extends AVMIDIChannelEvent {
initWithChannelProgramNumber(channel: number, programNumber: number): this;
}
+/**
+ * @since 16.0
+ */
declare class AVMIDISysexEvent extends AVMusicEvent {
static alloc(): AVMIDISysexEvent; // inherited from NSObject
@@ -2861,6 +4213,9 @@ declare class AVMIDISysexEvent extends AVMusicEvent {
initWithData(data: NSData): this;
}
+/**
+ * @since 16.0
+ */
declare class AVMusicEvent extends NSObject {
static alloc(): AVMusicEvent; // inherited from NSObject
@@ -2875,6 +4230,9 @@ declare const enum AVMusicSequenceLoadOptions {
SMF_ChannelsToTracks = 1
}
+/**
+ * @since 9.0
+ */
declare class AVMusicTrack extends NSObject {
static alloc(): AVMusicTrack; // inherited from NSObject
@@ -2920,11 +4278,17 @@ declare class AVMusicTrack extends NSObject {
moveEventsInRangeByAmount(range: AVBeatRange, beatAmount: number): void;
}
+/**
+ * @since 8.0
+ */
declare const enum AVMusicTrackLoopCount {
Forever = -1
}
+/**
+ * @since 16.0
+ */
declare class AVMusicUserEvent extends AVMusicEvent {
static alloc(): AVMusicUserEvent; // inherited from NSObject
@@ -2938,8 +4302,14 @@ declare class AVMusicUserEvent extends AVMusicEvent {
initWithData(data: NSData): this;
}
+/**
+ * @since 3.0
+ */
declare var AVNumberOfChannelsKey: string;
+/**
+ * @since 16.0
+ */
declare class AVParameterEvent extends AVMusicEvent {
static alloc(): AVParameterEvent; // inherited from NSObject
@@ -2959,18 +4329,39 @@ declare class AVParameterEvent extends AVMusicEvent {
initWithParameterIDScopeElementValue(parameterID: number, scope: number, element: number, value: number): this;
}
+/**
+ * @since 7.0
+ */
declare var AVSampleRateConverterAlgorithmKey: string;
+/**
+ * @since 7.0
+ */
declare var AVSampleRateConverterAlgorithm_Mastering: string;
+/**
+ * @since 10.0
+ */
declare var AVSampleRateConverterAlgorithm_MinimumPhase: string;
+/**
+ * @since 7.0
+ */
declare var AVSampleRateConverterAlgorithm_Normal: string;
+/**
+ * @since 7.0
+ */
declare var AVSampleRateConverterAudioQualityKey: string;
+/**
+ * @since 3.0
+ */
declare var AVSampleRateKey: string;
+/**
+ * @since 7.0
+ */
declare const enum AVSpeechBoundary {
Immediate = 0,
@@ -2978,61 +4369,109 @@ declare const enum AVSpeechBoundary {
Word = 1
}
+/**
+ * @since 17.0
+ */
declare var AVSpeechSynthesisAvailableVoicesDidChangeNotification: string;
+/**
+ * @since 10.0
+ */
declare var AVSpeechSynthesisIPANotationAttribute: string;
+/**
+ * @since 16.0
+ */
declare class AVSpeechSynthesisMarker extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): AVSpeechSynthesisMarker; // inherited from NSObject
static new(): AVSpeechSynthesisMarker; // inherited from NSObject
+ /**
+ * @since 17.0
+ */
bookmarkName: string;
byteSampleOffset: number;
mark: AVSpeechSynthesisMarkerMark;
+ /**
+ * @since 17.0
+ */
phoneme: string;
textRange: NSRange;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
+ /**
+ * @since 17.0
+ */
constructor(o: { bookmarkName: string; atByteSampleOffset: number; });
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
constructor(o: { markerType: AVSpeechSynthesisMarkerMark; forTextRange: NSRange; atByteSampleOffset: number; });
+ /**
+ * @since 17.0
+ */
constructor(o: { paragraphRange: NSRange; atByteSampleOffset: number; });
+ /**
+ * @since 17.0
+ */
constructor(o: { phonemeString: string; atByteSampleOffset: number; });
+ /**
+ * @since 17.0
+ */
constructor(o: { sentenceRange: NSRange; atByteSampleOffset: number; });
+ /**
+ * @since 17.0
+ */
constructor(o: { wordRange: NSRange; atByteSampleOffset: number; });
copyWithZone(zone: interop.Pointer | interop.Reference): any;
encodeWithCoder(coder: NSCoder): void;
+ /**
+ * @since 17.0
+ */
initWithBookmarkNameAtByteSampleOffset(mark: string, byteSampleOffset: number): this;
initWithCoder(coder: NSCoder): this;
initWithMarkerTypeForTextRangeAtByteSampleOffset(type: AVSpeechSynthesisMarkerMark, range: NSRange, byteSampleOffset: number): this;
+ /**
+ * @since 17.0
+ */
initWithParagraphRangeAtByteSampleOffset(range: NSRange, byteSampleOffset: number): this;
+ /**
+ * @since 17.0
+ */
initWithPhonemeStringAtByteSampleOffset(phoneme: string, byteSampleOffset: number): this;
+ /**
+ * @since 17.0
+ */
initWithSentenceRangeAtByteSampleOffset(range: NSRange, byteSampleOffset: number): this;
+ /**
+ * @since 17.0
+ */
initWithWordRangeAtByteSampleOffset(range: NSRange, byteSampleOffset: number): this;
}
+/**
+ * @since 16.0
+ */
declare const enum AVSpeechSynthesisMarkerMark {
Phoneme = 0,
@@ -3046,6 +4485,9 @@ declare const enum AVSpeechSynthesisMarkerMark {
Bookmark = 4
}
+/**
+ * @since 17.0
+ */
declare const enum AVSpeechSynthesisPersonalVoiceAuthorizationStatus {
NotDetermined = 0,
@@ -3057,6 +4499,9 @@ declare const enum AVSpeechSynthesisPersonalVoiceAuthorizationStatus {
Authorized = 3
}
+/**
+ * @since 16.0
+ */
declare class AVSpeechSynthesisProviderAudioUnit extends AUAudioUnit {
static alloc(): AVSpeechSynthesisProviderAudioUnit; // inherited from NSObject
@@ -3072,6 +4517,9 @@ declare class AVSpeechSynthesisProviderAudioUnit extends AUAudioUnit {
synthesizeSpeechRequest(speechRequest: AVSpeechSynthesisProviderRequest): void;
}
+/**
+ * @since 16.0
+ */
declare class AVSpeechSynthesisProviderRequest extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): AVSpeechSynthesisProviderRequest; // inherited from NSObject
@@ -3097,6 +4545,9 @@ declare class AVSpeechSynthesisProviderRequest extends NSObject implements NSCop
initWithSSMLRepresentationVoice(text: string, voice: AVSpeechSynthesisProviderVoice): this;
}
+/**
+ * @since 16.0
+ */
declare class AVSpeechSynthesisProviderVoice extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): AVSpeechSynthesisProviderVoice; // inherited from NSObject
@@ -3136,6 +4587,9 @@ declare class AVSpeechSynthesisProviderVoice extends NSObject implements NSCopyi
initWithNameIdentifierPrimaryLanguagesSupportedLanguages(name: string, identifier: string, primaryLanguages: NSArray | string[], supportedLanguages: NSArray | string[]): this;
}
+/**
+ * @since 7.0
+ */
declare class AVSpeechSynthesisVoice extends NSObject implements NSSecureCoding {
static alloc(): AVSpeechSynthesisVoice; // inherited from NSObject
@@ -3146,22 +4600,43 @@ declare class AVSpeechSynthesisVoice extends NSObject implements NSSecureCoding
static speechVoices(): NSArray;
+ /**
+ * @since 9.0
+ */
static voiceWithIdentifier(identifier: string): AVSpeechSynthesisVoice;
static voiceWithLanguage(languageCode: string): AVSpeechSynthesisVoice;
+ /**
+ * @since 13.0
+ */
readonly audioFileSettings: NSDictionary;
+ /**
+ * @since 13.0
+ */
readonly gender: AVSpeechSynthesisVoiceGender;
+ /**
+ * @since 9.0
+ */
readonly identifier: string;
readonly language: string;
+ /**
+ * @since 9.0
+ */
readonly name: string;
+ /**
+ * @since 9.0
+ */
readonly quality: AVSpeechSynthesisVoiceQuality;
+ /**
+ * @since 17.0
+ */
readonly voiceTraits: AVSpeechSynthesisVoiceTraits;
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
@@ -3173,6 +4648,9 @@ declare class AVSpeechSynthesisVoice extends NSObject implements NSSecureCoding
initWithCoder(coder: NSCoder): this;
}
+/**
+ * @since 13.0
+ */
declare const enum AVSpeechSynthesisVoiceGender {
Unspecified = 0,
@@ -3182,8 +4660,14 @@ declare const enum AVSpeechSynthesisVoiceGender {
Female = 2
}
+/**
+ * @since 9.0
+ */
declare var AVSpeechSynthesisVoiceIdentifierAlex: string;
+/**
+ * @since 9.0
+ */
declare const enum AVSpeechSynthesisVoiceQuality {
Default = 1,
@@ -3193,6 +4677,9 @@ declare const enum AVSpeechSynthesisVoiceQuality {
Premium = 3
}
+/**
+ * @since 17.0
+ */
declare const enum AVSpeechSynthesisVoiceTraits {
None = 0,
@@ -3202,26 +4689,44 @@ declare const enum AVSpeechSynthesisVoiceTraits {
IsPersonalVoice = 2
}
+/**
+ * @since 7.0
+ */
declare class AVSpeechSynthesizer extends NSObject {
static alloc(): AVSpeechSynthesizer; // inherited from NSObject
static new(): AVSpeechSynthesizer; // inherited from NSObject
+ /**
+ * @since 17.0
+ */
static requestPersonalVoiceAuthorizationWithCompletionHandler(handler: (p1: AVSpeechSynthesisPersonalVoiceAuthorizationStatus) => void): void;
delegate: AVSpeechSynthesizerDelegate;
+ /**
+ * @since 13.0
+ */
mixToTelephonyUplink: boolean;
+ /**
+ * @since 10.0
+ */
outputChannels: NSArray;
readonly paused: boolean;
readonly speaking: boolean;
+ /**
+ * @since 13.0
+ */
usesApplicationAudioSession: boolean;
+ /**
+ * @since 17.0
+ */
static readonly personalVoiceAuthorizationStatus: AVSpeechSynthesisPersonalVoiceAuthorizationStatus;
continueSpeaking(): boolean;
@@ -3232,25 +4737,52 @@ declare class AVSpeechSynthesizer extends NSObject {
stopSpeakingAtBoundary(boundary: AVSpeechBoundary): boolean;
+ /**
+ * @since 13.0
+ */
writeUtteranceToBufferCallback(utterance: AVSpeechUtterance, bufferCallback: (p1: AVAudioBuffer) => void): void;
+ /**
+ * @since 16.0
+ */
writeUtteranceToBufferCallbackToMarkerCallback(utterance: AVSpeechUtterance, bufferCallback: (p1: AVAudioBuffer) => void, markerCallback: (p1: NSArray) => void): void;
}
interface AVSpeechSynthesizerDelegate extends NSObjectProtocol {
+ /**
+ * @since 7.0
+ */
speechSynthesizerDidCancelSpeechUtterance?(synthesizer: AVSpeechSynthesizer, utterance: AVSpeechUtterance): void;
+ /**
+ * @since 7.0
+ */
speechSynthesizerDidContinueSpeechUtterance?(synthesizer: AVSpeechSynthesizer, utterance: AVSpeechUtterance): void;
+ /**
+ * @since 7.0
+ */
speechSynthesizerDidFinishSpeechUtterance?(synthesizer: AVSpeechSynthesizer, utterance: AVSpeechUtterance): void;
+ /**
+ * @since 7.0
+ */
speechSynthesizerDidPauseSpeechUtterance?(synthesizer: AVSpeechSynthesizer, utterance: AVSpeechUtterance): void;
+ /**
+ * @since 7.0
+ */
speechSynthesizerDidStartSpeechUtterance?(synthesizer: AVSpeechSynthesizer, utterance: AVSpeechUtterance): void;
+ /**
+ * @since 17.0
+ */
speechSynthesizerWillSpeakMarkerUtterance?(synthesizer: AVSpeechSynthesizer, marker: AVSpeechSynthesisMarker, utterance: AVSpeechUtterance): void;
+ /**
+ * @since 7.0
+ */
speechSynthesizerWillSpeakRangeOfSpeechStringUtterance?(synthesizer: AVSpeechSynthesizer, characterRange: NSRange, utterance: AVSpeechUtterance): void;
}
declare var AVSpeechSynthesizerDelegate: {
@@ -3258,18 +4790,30 @@ declare var AVSpeechSynthesizerDelegate: {
prototype: AVSpeechSynthesizerDelegate;
};
+/**
+ * @since 7.0
+ */
declare class AVSpeechUtterance extends NSObject implements NSCopying, NSSecureCoding {
static alloc(): AVSpeechUtterance; // inherited from NSObject
static new(): AVSpeechUtterance; // inherited from NSObject
+ /**
+ * @since 10.0
+ */
static speechUtteranceWithAttributedString(string: NSAttributedString): AVSpeechUtterance;
+ /**
+ * @since 16.0
+ */
static speechUtteranceWithSSMLRepresentation(string: string): AVSpeechUtterance;
static speechUtteranceWithString(string: string): AVSpeechUtterance;
+ /**
+ * @since 10.0
+ */
readonly attributedSpeechString: NSAttributedString;
pitchMultiplier: number;
@@ -3278,6 +4822,9 @@ declare class AVSpeechUtterance extends NSObject implements NSCopying, NSSecureC
preUtteranceDelay: number;
+ /**
+ * @since 14.0
+ */
prefersAssistiveTechnologySettings: boolean;
rate: number;
@@ -3290,10 +4837,16 @@ declare class AVSpeechUtterance extends NSObject implements NSCopying, NSSecureC
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
+ /**
+ * @since 10.0
+ */
constructor(o: { attributedString: NSAttributedString; });
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
+ /**
+ * @since 16.0
+ */
constructor(o: { SSMLRepresentation: string; });
constructor(o: { string: string; });
@@ -3302,17 +4855,32 @@ declare class AVSpeechUtterance extends NSObject implements NSCopying, NSSecureC
encodeWithCoder(coder: NSCoder): void;
+ /**
+ * @since 10.0
+ */
initWithAttributedString(string: NSAttributedString): this;
initWithCoder(coder: NSCoder): this;
+ /**
+ * @since 16.0
+ */
initWithSSMLRepresentation(string: string): this;
initWithString(string: string): this;
}
+/**
+ * @since 7.0
+ */
declare var AVSpeechUtteranceDefaultSpeechRate: number;
+/**
+ * @since 7.0
+ */
declare var AVSpeechUtteranceMaximumSpeechRate: number;
+/**
+ * @since 7.0
+ */
declare var AVSpeechUtteranceMinimumSpeechRate: number;
diff --git a/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFoundation.d.ts b/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFoundation.d.ts
index c120e80bbd..26b3a5a365 100644
--- a/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFoundation.d.ts
+++ b/packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFoundation.d.ts
@@ -1,4 +1,8 @@
+/**
+ * @since 11.0
+ * @deprecated 100000
+ */
declare class AVAggregateAssetDownloadTask extends NSURLSessionTask {
static alloc(): AVAggregateAssetDownloadTask; // inherited from NSObject
@@ -8,6 +12,9 @@ declare class AVAggregateAssetDownloadTask extends NSURLSessionTask {
readonly URLAsset: AVURLAsset;
}
+/**
+ * @since 4.0
+ */
declare class AVAsset extends NSObject implements AVAsynchronousKeyValueLoading, NSCopying {
static alloc(): AVAsset; // inherited from NSObject
@@ -16,46 +23,98 @@ declare class AVAsset extends NSObject implements AVAsynchronousKeyValueLoading,
static new(): AVAsset; // inherited from NSObject
+ /**
+ * @since 11.0
+ */
readonly allMediaSelections: NSArray;
+ /**
+ * @since 4.3
+ */
readonly availableChapterLocales: NSArray;
+ /**
+ * @since 5.0
+ */
readonly availableMediaCharacteristicsWithMediaSelectionOptions: NSArray;
readonly availableMetadataFormats: NSArray;
+ /**
+ * @since 9.0
+ */
readonly canContainFragments: boolean;
readonly commonMetadata: NSArray;
+ /**
+ * @since 9.0
+ */
readonly compatibleWithAirPlayVideo: boolean;
+ /**
+ * @since 5.0
+ */
readonly compatibleWithSavedPhotosAlbum: boolean;
+ /**
+ * @since 4.3
+ */
readonly composable: boolean;
+ /**
+ * @since 9.0
+ */
readonly containsFragments: boolean;
+ /**
+ * @since 5.0
+ */
readonly creationDate: AVMetadataItem;
readonly duration: CMTime;
+ /**
+ * @since 4.3
+ */
readonly exportable: boolean;
+ /**
+ * @since 4.2
+ */
readonly hasProtectedContent: boolean;
readonly lyrics: string;
+ /**
+ * @since 8.0
+ */
readonly metadata: NSArray;
+ /**
+ * @since 13.0
+ */
readonly minimumTimeOffsetFromLive: CMTime;
+ /**
+ * @since 4.0
+ * @deprecated 5.0
+ */
readonly naturalSize: CGSize;
+ /**
+ * @since 10.2
+ */
readonly overallDurationHint: CMTime;
+ /**
+ * @since 4.3
+ */
readonly playable: boolean;
+ /**
+ * @since 9.0
+ */
readonly preferredMediaSelection: AVMediaSelection;
readonly preferredRate: number;
@@ -66,55 +125,123 @@ declare class AVAsset extends NSObject implements AVAsynchronousKeyValueLoading,
readonly providesPreciseDurationAndTiming: boolean;
+ /**
+ * @since 4.3
+ */
readonly readable: boolean;
+ /**
+ * @since 5.0
+ */
readonly referenceRestrictions: AVAssetReferenceRestrictions;
+ /**
+ * @since 7.0
+ */
readonly trackGroups: NSArray;
readonly tracks: NSArray;
cancelLoading(): void;
+ /**
+ * @since 6.0
+ * @deprecated 18.0
+ */
chapterMetadataGroupsBestMatchingPreferredLanguages(preferredLanguages: NSArray | string[]): NSArray;
+ /**
+ * @since 4.3
+ * @deprecated 18.0
+ */
chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys(locale: NSLocale, commonKeys: NSArray | string[]): NSArray;
copyWithZone(zone: interop.Pointer | interop.Reference): any;
+ /**
+ * @since 15.0
+ */
findUnusedTrackIDWithCompletionHandler(completionHandler: (p1: number, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler(preferredLanguages: NSArray | string[], completionHandler: (p1: NSArray, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysCompletionHandler(locale: NSLocale, commonKeys: NSArray | string[], completionHandler: (p1: NSArray, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadMediaSelectionGroupForMediaCharacteristicCompletionHandler(mediaCharacteristic: string, completionHandler: (p1: AVMediaSelectionGroup, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadMetadataForFormatCompletionHandler(format: string, completionHandler: (p1: NSArray, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadTrackWithTrackIDCompletionHandler(trackID: number, completionHandler: (p1: AVAssetTrack, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic: string, completionHandler: (p1: NSArray, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadTracksWithMediaTypeCompletionHandler(mediaType: string, completionHandler: (p1: NSArray, p2: NSError) => void): void;
loadValuesAsynchronouslyForKeysCompletionHandler(keys: NSArray | string[], handler: () => void): void;
+ /**
+ * @since 5.0
+ * @deprecated 18.0
+ */
mediaSelectionGroupForMediaCharacteristic(mediaCharacteristic: string): AVMediaSelectionGroup;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
metadataForFormat(format: string): NSArray;
statusOfValueForKeyError(key: string): AVKeyValueStatus;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
trackWithTrackID(trackID: number): AVAssetTrack;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
tracksWithMediaCharacteristic(mediaCharacteristic: string): NSArray;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
tracksWithMediaType(mediaType: string): NSArray;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
unusedTrackID(): number;
}
+/**
+ * @since 10.0
+ */
declare class AVAssetCache extends NSObject {
static alloc(): AVAssetCache; // inherited from NSObject
@@ -126,10 +253,19 @@ declare class AVAssetCache extends NSObject {
mediaSelectionOptionsInMediaSelectionGroup(mediaSelectionGroup: AVMediaSelectionGroup): NSArray;
}
+/**
+ * @since 9.0
+ */
declare var AVAssetChapterMetadataGroupsDidChangeNotification: string;
+/**
+ * @since 12.0
+ */
declare var AVAssetContainsFragmentsDidChangeNotification: string;
+/**
+ * @since 15.0
+ */
declare class AVAssetDownloadConfiguration extends NSObject {
static alloc(): AVAssetDownloadConfiguration; // inherited from NSObject
@@ -147,6 +283,9 @@ declare class AVAssetDownloadConfiguration extends NSObject {
readonly primaryContentConfiguration: AVAssetDownloadContentConfiguration;
}
+/**
+ * @since 15.0
+ */
declare class AVAssetDownloadContentConfiguration extends NSObject implements NSCopying {
static alloc(): AVAssetDownloadContentConfiguration; // inherited from NSObject
@@ -160,20 +299,54 @@ declare class AVAssetDownloadContentConfiguration extends NSObject implements NS
copyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 9.0
+ */
interface AVAssetDownloadDelegate extends NSURLSessionTaskDelegate {
+ /**
+ * @since 11.0
+ * @deprecated 100000
+ */
URLSessionAggregateAssetDownloadTaskDidCompleteForMediaSelection?(session: NSURLSession, aggregateAssetDownloadTask: AVAggregateAssetDownloadTask, mediaSelection: AVMediaSelection): void;
+ /**
+ * @since 11.0
+ * @deprecated 100000
+ */
URLSessionAggregateAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoadForMediaSelection?(session: NSURLSession, aggregateAssetDownloadTask: AVAggregateAssetDownloadTask, timeRange: CMTimeRange, loadedTimeRanges: NSArray | NSValue[], timeRangeExpectedToLoad: CMTimeRange, mediaSelection: AVMediaSelection): void;
+ /**
+ * @since 11.0
+ * @deprecated 100000
+ */
URLSessionAggregateAssetDownloadTaskWillDownloadToURL?(session: NSURLSession, aggregateAssetDownloadTask: AVAggregateAssetDownloadTask, location: NSURL): void;
+ /**
+ * @since 10.0
+ * @deprecated 100000
+ */
URLSessionAssetDownloadTaskDidFinishDownloadingToURL?(session: NSURLSession, assetDownloadTask: AVAssetDownloadTask, location: NSURL): void;
+ /**
+ * @since 9.0
+ * @deprecated 100000
+ */
URLSessionAssetDownloadTaskDidLoadTimeRangeTotalTimeRangesLoadedTimeRangeExpectedToLoad?(session: NSURLSession, assetDownloadTask: AVAssetDownloadTask, timeRange: CMTimeRange, loadedTimeRanges: NSArray | NSValue[], timeRangeExpectedToLoad: CMTimeRange): void;
+ /**
+ * @since 9.0
+ */
URLSessionAssetDownloadTaskDidResolveMediaSelection?(session: NSURLSession, assetDownloadTask: AVAssetDownloadTask, resolvedMediaSelection: AVMediaSelection): void;
+ /**
+ * @since 18.0
+ */
+ URLSessionAssetDownloadTaskWillDownloadToURL?(session: NSURLSession, assetDownloadTask: AVAssetDownloadTask, location: NSURL): void;
+
+ /**
+ * @since 15.0
+ */
URLSessionAssetDownloadTaskWillDownloadVariants?(session: NSURLSession, assetDownloadTask: AVAssetDownloadTask, variants: NSArray | AVAssetVariant[]): void;
}
declare var AVAssetDownloadDelegate: {
@@ -181,6 +354,9 @@ declare var AVAssetDownloadDelegate: {
prototype: AVAssetDownloadDelegate;
};
+/**
+ * @since 11.0
+ */
declare class AVAssetDownloadStorageManagementPolicy extends NSObject implements NSCopying, NSMutableCopying {
static alloc(): AVAssetDownloadStorageManagementPolicy; // inherited from NSObject
@@ -196,6 +372,9 @@ declare class AVAssetDownloadStorageManagementPolicy extends NSObject implements
mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 11.0
+ */
declare class AVAssetDownloadStorageManager extends NSObject {
static alloc(): AVAssetDownloadStorageManager; // inherited from NSObject
@@ -209,6 +388,9 @@ declare class AVAssetDownloadStorageManager extends NSObject {
storageManagementPolicyForURL(downloadStorageURL: NSURL): AVAssetDownloadStorageManagementPolicy;
}
+/**
+ * @since 9.0
+ */
declare class AVAssetDownloadTask extends NSURLSessionTask {
static alloc(): AVAssetDownloadTask; // inherited from NSObject
@@ -217,25 +399,64 @@ declare class AVAssetDownloadTask extends NSURLSessionTask {
readonly URLAsset: AVURLAsset;
+ /**
+ * @since 9.0
+ * @deprecated 10.0
+ */
readonly destinationURL: NSURL;
+ /**
+ * @since 9.0
+ * @deprecated 100000
+ */
readonly loadedTimeRanges: NSArray;
+ /**
+ * @since 9.0
+ * @deprecated 100000
+ */
readonly options: NSDictionary;
}
+/**
+ * @since 9.0
+ * @deprecated 100000
+ */
declare var AVAssetDownloadTaskMediaSelectionKey: string;
+/**
+ * @since 13.0
+ * @deprecated 100000
+ */
declare var AVAssetDownloadTaskMediaSelectionPrefersMultichannelKey: string;
+/**
+ * @since 9.0
+ * @deprecated 100000
+ */
declare var AVAssetDownloadTaskMinimumRequiredMediaBitrateKey: string;
+/**
+ * @since 14.0
+ * @deprecated 100000
+ */
declare var AVAssetDownloadTaskMinimumRequiredPresentationSizeKey: string;
+/**
+ * @since 14.0
+ * @deprecated 100000
+ */
declare var AVAssetDownloadTaskPrefersHDRKey: string;
+/**
+ * @since 14.5
+ * @deprecated 100000
+ */
declare var AVAssetDownloadTaskPrefersLosslessAudioKey: string;
+/**
+ * @since 9.0
+ */
declare class AVAssetDownloadURLSession extends NSURLSession {
static alloc(): AVAssetDownloadURLSession; // inherited from NSObject
@@ -244,99 +465,228 @@ declare class AVAssetDownloadURLSession extends NSURLSession {
static sessionWithConfigurationAssetDownloadDelegateDelegateQueue(configuration: NSURLSessionConfiguration, delegate: AVAssetDownloadDelegate, delegateQueue: NSOperationQueue): AVAssetDownloadURLSession;
+ /**
+ * @since 11.0
+ * @deprecated 100000
+ */
aggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(URLAsset: AVURLAsset, mediaSelections: NSArray | AVMediaSelection[], title: string, artworkData: NSData, options: NSDictionary): AVAggregateAssetDownloadTask;
+ /**
+ * @since 15.0
+ */
assetDownloadTaskWithConfiguration(downloadConfiguration: AVAssetDownloadConfiguration): AVAssetDownloadTask;
+ /**
+ * @since 10.0
+ * @deprecated 100000
+ */
assetDownloadTaskWithURLAssetAssetTitleAssetArtworkDataOptions(URLAsset: AVURLAsset, title: string, artworkData: NSData, options: NSDictionary): AVAssetDownloadTask;
+ /**
+ * @since 9.0
+ * @deprecated 10.0
+ */
assetDownloadTaskWithURLAssetDestinationURLOptions(URLAsset: AVURLAsset, destinationURL: NSURL, options: NSDictionary): AVAssetDownloadTask;
}
+/**
+ * @since 11.0
+ */
declare var AVAssetDownloadedAssetEvictionPriorityDefault: string;
+/**
+ * @since 11.0
+ */
declare var AVAssetDownloadedAssetEvictionPriorityImportant: string;
+/**
+ * @since 9.0
+ */
declare var AVAssetDurationDidChangeNotification: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPreset1280x720: string;
+/**
+ * @since 5.0
+ */
declare var AVAssetExportPreset1920x1080: string;
+/**
+ * @since 9.0
+ */
declare var AVAssetExportPreset3840x2160: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPreset640x480: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPreset960x540: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPresetAppleM4A: string;
+/**
+ * @since 15.0
+ */
declare var AVAssetExportPresetAppleProRes422LPCM: string;
+/**
+ * @since 15.0
+ */
declare var AVAssetExportPresetAppleProRes4444LPCM: string;
+/**
+ * @since 11.0
+ */
declare var AVAssetExportPresetHEVC1920x1080: string;
+/**
+ * @since 13.0
+ */
declare var AVAssetExportPresetHEVC1920x1080WithAlpha: string;
+/**
+ * @since 11.0
+ */
declare var AVAssetExportPresetHEVC3840x2160: string;
+/**
+ * @since 13.0
+ */
declare var AVAssetExportPresetHEVC3840x2160WithAlpha: string;
+/**
+ * @since 11.0
+ */
declare var AVAssetExportPresetHEVCHighestQuality: string;
+/**
+ * @since 13.0
+ */
declare var AVAssetExportPresetHEVCHighestQualityWithAlpha: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPresetHighestQuality: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPresetLowQuality: string;
+/**
+ * @since 17.0
+ */
declare var AVAssetExportPresetMVHEVC1440x1440: string;
+/**
+ * @since 17.0
+ */
declare var AVAssetExportPresetMVHEVC960x960: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPresetMediumQuality: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetExportPresetPassthrough: string;
+/**
+ * @since 4.0
+ */
declare class AVAssetExportSession extends NSObject {
static allExportPresets(): NSArray;
static alloc(): AVAssetExportSession; // inherited from NSObject
+ /**
+ * @since 6.0
+ */
static determineCompatibilityOfExportPresetWithAssetOutputFileTypeCompletionHandler(presetName: string, asset: AVAsset, outputFileType: string, handler: (p1: boolean) => void): void;
+ /**
+ * @since 4.0
+ * @deprecated 16.0
+ */
static exportPresetsCompatibleWithAsset(asset: AVAsset): NSArray;
+ /**
+ * @since 4.1
+ */
static exportSessionWithAssetPresetName(asset: AVAsset, presetName: string): AVAssetExportSession;
static new(): AVAssetExportSession; // inherited from NSObject
+ /**
+ * @since 5.0
+ */
readonly asset: AVAsset;
audioMix: AVAudioMix;
+ /**
+ * @since 7.0
+ */
audioTimePitchAlgorithm: string;
+ /**
+ * @since 16.0
+ */
audioTrackGroupHandling: AVAssetTrackGroupOutputHandling;
+ /**
+ * @since 8.0
+ */
canPerformMultiplePassesOverSourceMediaData: boolean;
+ /**
+ * @since 7.0
+ */
readonly customVideoCompositor: AVVideoCompositing;
+ /**
+ * @since 8.0
+ */
directoryForTemporaryFiles: NSURL;
readonly error: NSError;
+ /**
+ * @since 5.0
+ * @deprecated 18.0
+ */
readonly estimatedOutputFileLength: number;
+ /**
+ * @since 4.0
+ */
fileLengthLimit: number;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
readonly maxDuration: CMTime;
metadata: NSArray;
+ /**
+ * @since 7.0
+ */
metadataItemFilter: AVMetadataItemFilter;
outputFileType: string;
@@ -361,10 +711,19 @@ declare class AVAssetExportSession extends NSObject {
cancelExport(): void;
+ /**
+ * @since 6.0
+ */
determineCompatibleFileTypesWithCompletionHandler(handler: (p1: NSArray) => void): void;
+ /**
+ * @since 13.0
+ */
estimateMaximumDurationWithCompletionHandler(handler: (p1: CMTime, p2: NSError) => void): void;
+ /**
+ * @since 13.0
+ */
estimateOutputFileLengthWithCompletionHandler(handler: (p1: number, p2: NSError) => void): void;
exportAsynchronouslyWithCompletionHandler(handler: () => void): void;
@@ -387,6 +746,9 @@ declare const enum AVAssetExportSessionStatus {
Cancelled = 5
}
+/**
+ * @since 4.0
+ */
declare class AVAssetImageGenerator extends NSObject {
static alloc(): AVAssetImageGenerator; // inherited from NSObject
@@ -399,14 +761,31 @@ declare class AVAssetImageGenerator extends NSObject {
appliesPreferredTrackTransform: boolean;
+ /**
+ * @since 6.0
+ */
readonly asset: AVAsset;
+ /**
+ * @since 7.0
+ */
readonly customVideoCompositor: AVVideoCompositing;
+ /**
+ * @since 18.0
+ */
+ dynamicRangePolicy: string;
+
maximumSize: CGSize;
+ /**
+ * @since 5.0
+ */
requestedTimeToleranceAfter: CMTime;
+ /**
+ * @since 5.0
+ */
requestedTimeToleranceBefore: CMTime;
videoComposition: AVVideoComposition;
@@ -415,8 +794,15 @@ declare class AVAssetImageGenerator extends NSObject {
cancelAllCGImageGeneration(): void;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
copyCGImageAtTimeActualTimeError(requestedTime: CMTime, actualTime: interop.Pointer | interop.Reference): any;
+ /**
+ * @since 16.0
+ */
generateCGImageAsynchronouslyForTimeCompletionHandler(requestedTime: CMTime, handler: (p1: any, p2: CMTime, p3: NSError) => void): void;
generateCGImagesAsynchronouslyForTimesCompletionHandler(requestedTimes: NSArray | NSValue[], handler: (p1: CMTime, p2: any, p3: CMTime, p4: AVAssetImageGeneratorResult, p5: NSError) => void): void;
@@ -424,12 +810,31 @@ declare class AVAssetImageGenerator extends NSObject {
initWithAsset(asset: AVAsset): this;
}
+/**
+ * @since 4.0
+ */
declare var AVAssetImageGeneratorApertureModeCleanAperture: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetImageGeneratorApertureModeEncodedPixels: string;
+/**
+ * @since 4.0
+ */
declare var AVAssetImageGeneratorApertureModeProductionAperture: string;
+/**
+ * @since 18.0
+ */
+declare var AVAssetImageGeneratorDynamicRangePolicyForceSDR: string;
+
+/**
+ * @since 18.0
+ */
+declare var AVAssetImageGeneratorDynamicRangePolicyMatchSource: string;
+
declare const enum AVAssetImageGeneratorResult {
Succeeded = 0,
@@ -439,8 +844,14 @@ declare const enum AVAssetImageGeneratorResult {
Cancelled = 2
}
+/**
+ * @since 9.0
+ */
declare var AVAssetMediaSelectionGroupsDidChangeNotification: string;
+/**
+ * @since 16.0
+ */
declare class AVAssetPlaybackAssistant extends NSObject {
static alloc(): AVAssetPlaybackAssistant; // inherited from NSObject
@@ -452,10 +863,24 @@ declare class AVAssetPlaybackAssistant extends NSObject {
loadPlaybackConfigurationOptionsWithCompletionHandler(completionHandler: (p1: NSArray) => void): void;
}
+/**
+ * @since 18.0
+ */
+declare var AVAssetPlaybackConfigurationOptionSpatialVideo: string;
+
+/**
+ * @since 16.0
+ */
declare var AVAssetPlaybackConfigurationOptionStereoMultiviewVideo: string;
+/**
+ * @since 16.0
+ */
declare var AVAssetPlaybackConfigurationOptionStereoVideo: string;
+/**
+ * @since 4.1
+ */
declare class AVAssetReader extends NSObject {
static alloc(): AVAssetReader; // inherited from NSObject
@@ -487,6 +912,9 @@ declare class AVAssetReader extends NSObject {
startReading(): boolean;
}
+/**
+ * @since 4.1
+ */
declare class AVAssetReaderAudioMixOutput extends AVAssetReaderOutput {
static alloc(): AVAssetReaderAudioMixOutput; // inherited from NSObject
@@ -499,6 +927,9 @@ declare class AVAssetReaderAudioMixOutput extends AVAssetReaderOutput {
readonly audioSettings: NSDictionary;
+ /**
+ * @since 7.0
+ */
audioTimePitchAlgorithm: string;
readonly audioTracks: NSArray;
@@ -508,25 +939,79 @@ declare class AVAssetReaderAudioMixOutput extends AVAssetReaderOutput {
initWithAudioTracksAudioSettings(audioTracks: NSArray | AVAssetTrack[], audioSettings: NSDictionary): this;
}
+/**
+ * @since 18.0
+ */
+interface AVAssetReaderCaptionValidationHandling extends NSObjectProtocol {
+
+ captionAdaptorDidVendCaptionSkippingUnsupportedSourceSyntaxElements?(adaptor: AVAssetReaderOutputCaptionAdaptor, caption: AVCaption, syntaxElements: NSArray | string[]): void;
+}
+declare var AVAssetReaderCaptionValidationHandling: {
+
+ prototype: AVAssetReaderCaptionValidationHandling;
+};
+
+/**
+ * @since 4.1
+ */
declare class AVAssetReaderOutput extends NSObject {
static alloc(): AVAssetReaderOutput; // inherited from NSObject
static new(): AVAssetReaderOutput; // inherited from NSObject
+ /**
+ * @since 5.0
+ */
alwaysCopiesSampleData: boolean;
readonly mediaType: string;
+ /**
+ * @since 8.0
+ */
supportsRandomAccess: boolean;
copyNextSampleBuffer(): any;
+ /**
+ * @since 8.0
+ */
markConfigurationAsFinal(): void;
+ /**
+ * @since 8.0
+ */
resetForReadingTimeRanges(timeRanges: NSArray | NSValue[]): void;
}
+/**
+ * @since 18.0
+ */
+declare class AVAssetReaderOutputCaptionAdaptor extends NSObject {
+
+ static alloc(): AVAssetReaderOutputCaptionAdaptor; // inherited from NSObject
+
+ static assetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput: AVAssetReaderTrackOutput): AVAssetReaderOutputCaptionAdaptor;
+
+ static new(): AVAssetReaderOutputCaptionAdaptor; // inherited from NSObject
+
+ readonly assetReaderTrackOutput: AVAssetReaderTrackOutput;
+
+ validationDelegate: AVAssetReaderCaptionValidationHandling;
+
+ constructor(o: { assetReaderTrackOutput: AVAssetReaderTrackOutput; });
+
+ captionsNotPresentInPreviousGroupsInCaptionGroup(captionGroup: AVCaptionGroup): NSArray;
+
+ initWithAssetReaderTrackOutput(trackOutput: AVAssetReaderTrackOutput): this;
+
+ nextCaptionGroup(): AVCaptionGroup;
+}
+
+/**
+ * @since 8.0
+ */
declare class AVAssetReaderOutputMetadataAdaptor extends NSObject {
static alloc(): AVAssetReaderOutputMetadataAdaptor; // inherited from NSObject
@@ -544,6 +1029,9 @@ declare class AVAssetReaderOutputMetadataAdaptor extends NSObject {
nextTimedMetadataGroup(): AVTimedMetadataGroup;
}
+/**
+ * @since 8.0
+ */
declare class AVAssetReaderSampleReferenceOutput extends AVAssetReaderOutput {
static alloc(): AVAssetReaderSampleReferenceOutput; // inherited from NSObject
@@ -572,6 +1060,9 @@ declare const enum AVAssetReaderStatus {
Cancelled = 4
}
+/**
+ * @since 4.1
+ */
declare class AVAssetReaderTrackOutput extends AVAssetReaderOutput {
static alloc(): AVAssetReaderTrackOutput; // inherited from NSObject
@@ -580,6 +1071,9 @@ declare class AVAssetReaderTrackOutput extends AVAssetReaderOutput {
static new(): AVAssetReaderTrackOutput; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
audioTimePitchAlgorithm: string;
readonly outputSettings: NSDictionary;
@@ -591,6 +1085,9 @@ declare class AVAssetReaderTrackOutput extends AVAssetReaderOutput {
initWithTrackOutputSettings(track: AVAssetTrack, outputSettings: NSDictionary): this;
}
+/**
+ * @since 4.1
+ */
declare class AVAssetReaderVideoCompositionOutput extends AVAssetReaderOutput {
static alloc(): AVAssetReaderVideoCompositionOutput; // inherited from NSObject
@@ -599,6 +1096,9 @@ declare class AVAssetReaderVideoCompositionOutput extends AVAssetReaderOutput {
static new(): AVAssetReaderVideoCompositionOutput; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
readonly customVideoCompositor: AVVideoCompositing;
videoComposition: AVVideoComposition;
@@ -629,6 +1129,9 @@ declare const enum AVAssetReferenceRestrictions {
DefaultPolicy = 2
}
+/**
+ * @since 6.0
+ */
declare class AVAssetResourceLoader extends NSObject {
static alloc(): AVAssetResourceLoader; // inherited from NSObject
@@ -637,23 +1140,43 @@ declare class AVAssetResourceLoader extends NSObject {
readonly delegate: AVAssetResourceLoaderDelegate;
- readonly delegateQueue: interop.Pointer | interop.Reference;
+ readonly delegateQueue: NSObject & OS_dispatch_queue;
+ /**
+ * @since 9.0
+ */
preloadsEligibleContentKeys: boolean;
- setDelegateQueue(delegate: AVAssetResourceLoaderDelegate, delegateQueue: interop.Pointer | interop.Reference): void;
+ sendsCommonMediaClientDataAsHTTPHeaders: boolean;
+
+ setDelegateQueue(delegate: AVAssetResourceLoaderDelegate, delegateQueue: NSObject & OS_dispatch_queue): void;
}
interface AVAssetResourceLoaderDelegate extends NSObjectProtocol {
+ /**
+ * @since 8.0
+ */
resourceLoaderDidCancelAuthenticationChallenge?(resourceLoader: AVAssetResourceLoader, authenticationChallenge: NSURLAuthenticationChallenge): void;
+ /**
+ * @since 7.0
+ */
resourceLoaderDidCancelLoadingRequest?(resourceLoader: AVAssetResourceLoader, loadingRequest: AVAssetResourceLoadingRequest): void;
+ /**
+ * @since 6.0
+ */
resourceLoaderShouldWaitForLoadingOfRequestedResource?(resourceLoader: AVAssetResourceLoader, loadingRequest: AVAssetResourceLoadingRequest): boolean;
+ /**
+ * @since 8.0
+ */
resourceLoaderShouldWaitForRenewalOfRequestedResource?(resourceLoader: AVAssetResourceLoader, renewalRequest: AVAssetResourceRenewalRequest): boolean;
+ /**
+ * @since 8.0
+ */
resourceLoaderShouldWaitForResponseToAuthenticationChallenge?(resourceLoader: AVAssetResourceLoader, authenticationChallenge: NSURLAuthenticationChallenge): boolean;
}
declare var AVAssetResourceLoaderDelegate: {
@@ -661,12 +1184,18 @@ declare var AVAssetResourceLoaderDelegate: {
prototype: AVAssetResourceLoaderDelegate;
};
+/**
+ * @since 7.0
+ */
declare class AVAssetResourceLoadingContentInformationRequest extends NSObject {
static alloc(): AVAssetResourceLoadingContentInformationRequest; // inherited from NSObject
static new(): AVAssetResourceLoadingContentInformationRequest; // inherited from NSObject
+ /**
+ * @since 11.2
+ */
readonly allowedContentTypes: NSArray;
byteRangeAccessSupported: boolean;
@@ -675,11 +1204,20 @@ declare class AVAssetResourceLoadingContentInformationRequest extends NSObject {
contentType: string;
+ /**
+ * @since 16.0
+ */
entireLengthAvailableOnDemand: boolean;
+ /**
+ * @since 8.0
+ */
renewalDate: Date;
}
+/**
+ * @since 7.0
+ */
declare class AVAssetResourceLoadingDataRequest extends NSObject {
static alloc(): AVAssetResourceLoadingDataRequest; // inherited from NSObject
@@ -692,46 +1230,92 @@ declare class AVAssetResourceLoadingDataRequest extends NSObject {
readonly requestedOffset: number;
+ /**
+ * @since 9.0
+ */
readonly requestsAllDataToEndOfResource: boolean;
respondWithData(data: NSData): void;
}
+/**
+ * @since 6.0
+ */
declare class AVAssetResourceLoadingRequest extends NSObject {
static alloc(): AVAssetResourceLoadingRequest; // inherited from NSObject
static new(): AVAssetResourceLoadingRequest; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
readonly cancelled: boolean;
+ /**
+ * @since 7.0
+ */
readonly contentInformationRequest: AVAssetResourceLoadingContentInformationRequest;
+ /**
+ * @since 7.0
+ */
readonly dataRequest: AVAssetResourceLoadingDataRequest;
readonly finished: boolean;
+ /**
+ * @since 7.0
+ */
redirect: NSURLRequest;
readonly request: NSURLRequest;
+ /**
+ * @since 12.0
+ */
readonly requestor: AVAssetResourceLoadingRequestor;
+ /**
+ * @since 7.0
+ */
response: NSURLResponse;
+ /**
+ * @since 7.0
+ */
finishLoading(): void;
finishLoadingWithError(error: NSError): void;
+ /**
+ * @since 6.0
+ * @deprecated 7.0
+ */
finishLoadingWithResponseDataRedirect(response: NSURLResponse, data: NSData, redirect: NSURLRequest): void;
+ /**
+ * @since 9.0
+ * @deprecated 18.0
+ */
persistentContentKeyFromKeyVendorResponseOptionsError(keyVendorResponse: NSData, options: NSDictionary): NSData;
+ /**
+ * @since 7.0
+ * @deprecated 18.0
+ */
streamingContentKeyRequestDataForAppContentIdentifierOptionsError(appIdentifier: NSData, contentIdentifier: NSData, options: NSDictionary): NSData;
}
+/**
+ * @since 9.0
+ * @deprecated 18.0
+ */
declare var AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey: string;
+/**
+ * @since 12.0
+ */
declare class AVAssetResourceLoadingRequestor extends NSObject {
static alloc(): AVAssetResourceLoadingRequestor; // inherited from NSObject
@@ -741,6 +1325,9 @@ declare class AVAssetResourceLoadingRequestor extends NSObject {
readonly providesExpiredSessionReports: boolean;
}
+/**
+ * @since 8.0
+ */
declare class AVAssetResourceRenewalRequest extends AVAssetResourceLoadingRequest {
static alloc(): AVAssetResourceRenewalRequest; // inherited from NSObject
@@ -748,6 +1335,9 @@ declare class AVAssetResourceRenewalRequest extends AVAssetResourceLoadingReques
static new(): AVAssetResourceRenewalRequest; // inherited from NSObject
}
+/**
+ * @since 14.0
+ */
declare class AVAssetSegmentReport extends NSObject {
static alloc(): AVAssetSegmentReport; // inherited from NSObject
@@ -759,6 +1349,9 @@ declare class AVAssetSegmentReport extends NSObject {
readonly trackReports: NSArray;
}
+/**
+ * @since 14.0
+ */
declare class AVAssetSegmentReportSampleInformation extends NSObject {
static alloc(): AVAssetSegmentReportSampleInformation; // inherited from NSObject
@@ -774,6 +1367,9 @@ declare class AVAssetSegmentReportSampleInformation extends NSObject {
readonly presentationTimeStamp: CMTime;
}
+/**
+ * @since 14.0
+ */
declare class AVAssetSegmentTrackReport extends NSObject {
static alloc(): AVAssetSegmentTrackReport; // inherited from NSObject
@@ -791,6 +1387,9 @@ declare class AVAssetSegmentTrackReport extends NSObject {
readonly trackID: number;
}
+/**
+ * @since 14.0
+ */
declare const enum AVAssetSegmentType {
Initialization = 1,
@@ -798,6 +1397,9 @@ declare const enum AVAssetSegmentType {
Separable = 2
}
+/**
+ * @since 4.0
+ */
declare class AVAssetTrack extends NSObject implements AVAsynchronousKeyValueLoading, NSCopying {
static alloc(): AVAssetTrack; // inherited from NSObject
@@ -808,12 +1410,21 @@ declare class AVAssetTrack extends NSObject implements AVAsynchronousKeyValueLoa
readonly availableMetadataFormats: NSArray;
+ /**
+ * @since 7.0
+ */
readonly availableTrackAssociationTypes: NSArray;
+ /**
+ * @since 16.0
+ */
readonly canProvideSampleCursors: boolean;
readonly commonMetadata: NSArray;
+ /**
+ * @since 11.0
+ */
readonly decodable: boolean;
readonly enabled: boolean;
@@ -824,14 +1435,23 @@ declare class AVAssetTrack extends NSObject implements AVAsynchronousKeyValueLoa
readonly formatDescriptions: NSArray;
+ /**
+ * @since 13.0
+ */
readonly hasAudioSampleDependencies: boolean;
readonly languageCode: string;
readonly mediaType: string;
+ /**
+ * @since 8.0
+ */
readonly metadata: NSArray;
+ /**
+ * @since 7.0
+ */
readonly minFrameDuration: CMTime;
readonly naturalSize: CGSize;
@@ -840,12 +1460,18 @@ declare class AVAssetTrack extends NSObject implements AVAsynchronousKeyValueLoa
readonly nominalFrameRate: number;
+ /**
+ * @since 5.0
+ */
readonly playable: boolean;
readonly preferredTransform: CGAffineTransform;
readonly preferredVolume: number;
+ /**
+ * @since 8.0
+ */
readonly requiresFrameReordering: boolean;
readonly segments: NSArray;
@@ -858,37 +1484,77 @@ declare class AVAssetTrack extends NSObject implements AVAsynchronousKeyValueLoa
readonly trackID: number;
+ /**
+ * @since 7.0
+ * @deprecated 18.0
+ */
associatedTracksOfType(trackAssociationType: string): NSArray;
copyWithZone(zone: interop.Pointer | interop.Reference): any;
hasMediaCharacteristic(mediaCharacteristic: string): boolean;
+ /**
+ * @since 15.0
+ */
loadAssociatedTracksOfTypeCompletionHandler(trackAssociationType: string, completionHandler: (p1: NSArray, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadMetadataForFormatCompletionHandler(format: string, completionHandler: (p1: NSArray, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadSamplePresentationTimeForTrackTimeCompletionHandler(trackTime: CMTime, completionHandler: (p1: CMTime, p2: NSError) => void): void;
+ /**
+ * @since 15.0
+ */
loadSegmentForTrackTimeCompletionHandler(trackTime: CMTime, completionHandler: (p1: AVAssetTrackSegment, p2: NSError) => void): void;
loadValuesAsynchronouslyForKeysCompletionHandler(keys: NSArray | string[], handler: () => void): void;
+ /**
+ * @since 16.0
+ */
makeSampleCursorAtFirstSampleInDecodeOrder(): AVSampleCursor;
+ /**
+ * @since 16.0
+ */
makeSampleCursorAtLastSampleInDecodeOrder(): AVSampleCursor;
+ /**
+ * @since 16.0
+ */
makeSampleCursorWithPresentationTimeStamp(presentationTimeStamp: CMTime): AVSampleCursor;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
metadataForFormat(format: string): NSArray;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
samplePresentationTimeForTrackTime(trackTime: CMTime): CMTime;
+ /**
+ * @since 4.0
+ * @deprecated 18.0
+ */
segmentForTrackTime(trackTime: CMTime): AVAssetTrackSegment;
statusOfValueForKeyError(key: string): AVKeyValueStatus;
}
+/**
+ * @since 7.0
+ */
declare class AVAssetTrackGroup extends NSObject implements NSCopying {
static alloc(): AVAssetTrackGroup; // inherited from NSObject
@@ -900,6 +1566,9 @@ declare class AVAssetTrackGroup extends NSObject implements NSCopying {
copyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 16.0
+ */
declare const enum AVAssetTrackGroupOutputHandling {
None = 0,
@@ -909,6 +1578,9 @@ declare const enum AVAssetTrackGroupOutputHandling {
DefaultPolicy = 0
}
+/**
+ * @since 4.0
+ */
declare class AVAssetTrackSegment extends NSObject {
static alloc(): AVAssetTrackSegment; // inherited from NSObject
@@ -920,12 +1592,24 @@ declare class AVAssetTrackSegment extends NSObject {
readonly timeMapping: CMTimeMapping;
}
+/**
+ * @since 9.0
+ */
declare var AVAssetTrackSegmentsDidChangeNotification: string;
+/**
+ * @since 9.0
+ */
declare var AVAssetTrackTimeRangeDidChangeNotification: string;
+/**
+ * @since 9.0
+ */
declare var AVAssetTrackTrackAssociationsDidChangeNotification: string;
+/**
+ * @since 15.0
+ */
declare class AVAssetVariant extends NSObject {
static alloc(): AVAssetVariant; // inherited from NSObject
@@ -941,6 +1625,9 @@ declare class AVAssetVariant extends NSObject {
readonly videoAttributes: AVAssetVariantVideoAttributes;
}
+/**
+ * @since 15.0
+ */
declare class AVAssetVariantAudioAttributes extends NSObject {
static alloc(): AVAssetVariantAudioAttributes; // inherited from NSObject
@@ -952,21 +1639,36 @@ declare class AVAssetVariantAudioAttributes extends NSObject {
renditionSpecificAttributesForMediaOption(mediaSelectionOption: AVMediaSelectionOption): AVAssetVariantAudioRenditionSpecificAttributes;
}
+/**
+ * @since 15.0
+ */
declare class AVAssetVariantAudioRenditionSpecificAttributes extends NSObject {
static alloc(): AVAssetVariantAudioRenditionSpecificAttributes; // inherited from NSObject
static new(): AVAssetVariantAudioRenditionSpecificAttributes; // inherited from NSObject
+ /**
+ * @since 16.0
+ */
readonly binaural: boolean;
readonly channelCount: number;
+ /**
+ * @since 16.0
+ */
readonly downmix: boolean;
+ /**
+ * @since 17.0
+ */
readonly immersive: boolean;
}
+/**
+ * @since 15.0
+ */
declare class AVAssetVariantQualifier extends NSObject implements NSCopying {
static alloc(): AVAssetVariantQualifier; // inherited from NSObject
@@ -977,12 +1679,26 @@ declare class AVAssetVariantQualifier extends NSObject implements NSCopying {
static new(): AVAssetVariantQualifier; // inherited from NSObject
+ /**
+ * @since 18.0
+ */
+ static predicateForAudioSampleRateMediaSelectionOptionOperatorType(sampleRate: number, mediaSelectionOption: AVMediaSelectionOption, operatorType: NSPredicateOperatorType): NSPredicate;
+
+ /**
+ * @since 17.0
+ */
static predicateForBinauralAudioMediaSelectionOption(isBinauralAudio: boolean, mediaSelectionOption: AVMediaSelectionOption): NSPredicate;
static predicateForChannelCountMediaSelectionOptionOperatorType(channelCount: number, mediaSelectionOption: AVMediaSelectionOption, operatorType: NSPredicateOperatorType): NSPredicate;
+ /**
+ * @since 17.0
+ */
static predicateForDownmixAudioMediaSelectionOption(isDownmixAudio: boolean, mediaSelectionOption: AVMediaSelectionOption): NSPredicate;
+ /**
+ * @since 17.0
+ */
static predicateForImmersiveAudioMediaSelectionOption(isImmersiveAudio: boolean, mediaSelectionOption: AVMediaSelectionOption): NSPredicate;
static predicateForPresentationHeightOperatorType(height: number, operatorType: NSPredicateOperatorType): NSPredicate;
@@ -992,6 +1708,9 @@ declare class AVAssetVariantQualifier extends NSObject implements NSCopying {
copyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 15.0
+ */
declare class AVAssetVariantVideoAttributes extends NSObject {
static alloc(): AVAssetVariantVideoAttributes; // inherited from NSObject
@@ -1004,11 +1723,17 @@ declare class AVAssetVariantVideoAttributes extends NSObject {
readonly presentationSize: CGSize;
+ /**
+ * @since 17.0
+ */
readonly videoLayoutAttributes: NSArray;
readonly videoRange: string;
}
+/**
+ * @since 17.0
+ */
declare class AVAssetVariantVideoLayoutAttributes extends NSObject {
static alloc(): AVAssetVariantVideoLayoutAttributes; // inherited from NSObject
@@ -1018,8 +1743,14 @@ declare class AVAssetVariantVideoLayoutAttributes extends NSObject {
readonly stereoViewComponents: CMStereoViewComponents;
}
+/**
+ * @since 12.0
+ */
declare var AVAssetWasDefragmentedNotification: string;
+/**
+ * @since 4.1
+ */
declare class AVAssetWriter extends NSObject {
static alloc(): AVAssetWriter; // inherited from NSObject
@@ -1030,18 +1761,36 @@ declare class AVAssetWriter extends NSObject {
readonly availableMediaTypes: NSArray;
+ /**
+ * @since 14.0
+ */
delegate: AVAssetWriterDelegate;
+ /**
+ * @since 8.0
+ */
directoryForTemporaryFiles: NSURL;
readonly error: NSError;
+ /**
+ * @since 17.0
+ */
initialMovieFragmentInterval: CMTime;
+ /**
+ * @since 14.0
+ */
initialMovieFragmentSequenceNumber: number;
+ /**
+ * @since 14.0
+ */
initialSegmentStartTime: CMTime;
+ /**
+ * @since 7.0
+ */
readonly inputGroups: NSArray;
readonly inputs: NSArray;
@@ -1050,34 +1799,55 @@ declare class AVAssetWriter extends NSObject {
movieFragmentInterval: CMTime;
+ /**
+ * @since 4.3
+ */
movieTimeScale: number;
readonly outputFileType: string;
+ /**
+ * @since 14.0
+ */
outputFileTypeProfile: string;
readonly outputURL: NSURL;
overallDurationHint: CMTime;
+ /**
+ * @since 14.0
+ */
preferredOutputSegmentInterval: CMTime;
+ /**
+ * @since 14.0
+ */
producesCombinableFragments: boolean;
shouldOptimizeForNetworkUse: boolean;
readonly status: AVAssetWriterStatus;
+ /**
+ * @since 14.0
+ */
constructor(o: { contentType: UTType; });
constructor(o: { URL: NSURL; fileType: string; });
addInput(input: AVAssetWriterInput): void;
+ /**
+ * @since 7.0
+ */
addInputGroup(inputGroup: AVAssetWriterInputGroup): void;
canAddInput(input: AVAssetWriterInput): boolean;
+ /**
+ * @since 7.0
+ */
canAddInputGroup(inputGroup: AVAssetWriterInputGroup): boolean;
canApplyOutputSettingsForMediaType(outputSettings: NSDictionary, mediaType: string): boolean;
@@ -1086,12 +1856,25 @@ declare class AVAssetWriter extends NSObject {
endSessionAtSourceTime(endTime: CMTime): void;
+ /**
+ * @since 4.1
+ * @deprecated 6.0
+ */
finishWriting(): boolean;
+ /**
+ * @since 6.0
+ */
finishWritingWithCompletionHandler(handler: () => void): void;
+ /**
+ * @since 14.0
+ */
flushSegment(): void;
+ /**
+ * @since 14.0
+ */
initWithContentType(outputContentType: UTType): this;
initWithURLFileTypeError(outputURL: NSURL, outputFileType: string): this;
@@ -1101,6 +1884,9 @@ declare class AVAssetWriter extends NSObject {
startWriting(): boolean;
}
+/**
+ * @since 14.0
+ */
interface AVAssetWriterDelegate extends NSObjectProtocol {
assetWriterDidOutputSegmentDataSegmentType?(writer: AVAssetWriter, segmentData: NSData, segmentType: AVAssetSegmentType): void;
@@ -1112,79 +1898,170 @@ declare var AVAssetWriterDelegate: {
prototype: AVAssetWriterDelegate;
};
+/**
+ * @since 4.1
+ */
declare class AVAssetWriterInput extends NSObject {
static alloc(): AVAssetWriterInput; // inherited from NSObject
static assetWriterInputWithMediaTypeOutputSettings(mediaType: string, outputSettings: NSDictionary): AVAssetWriterInput;
+ /**
+ * @since 6.0
+ */
static assetWriterInputWithMediaTypeOutputSettingsSourceFormatHint(mediaType: string, outputSettings: NSDictionary, sourceFormatHint: any): AVAssetWriterInput;
static new(): AVAssetWriterInput; // inherited from NSObject
+ /**
+ * @since 8.0
+ */
readonly canPerformMultiplePasses: boolean;
+ /**
+ * @since 8.0
+ */
readonly currentPassDescription: AVAssetWriterInputPassDescription;
expectsMediaDataInRealTime: boolean;
+ /**
+ * @since 7.0
+ */
extendedLanguageTag: string;
+ /**
+ * @since 7.0
+ */
languageCode: string;
+ /**
+ * @since 7.0
+ */
marksOutputTrackAsEnabled: boolean;
+ /**
+ * @since 11.0
+ */
mediaDataLocation: string;
+ /**
+ * @since 4.3
+ */
mediaTimeScale: number;
readonly mediaType: string;
metadata: NSArray;
+ /**
+ * @since 7.0
+ */
naturalSize: CGSize;
readonly outputSettings: NSDictionary;
+ /**
+ * @since 8.0
+ */
performsMultiPassEncodingIfSupported: boolean;
+ /**
+ * @since 8.0
+ */
preferredMediaChunkAlignment: number;
+ /**
+ * @since 8.0
+ */
preferredMediaChunkDuration: CMTime;
+ /**
+ * @since 7.0
+ */
preferredVolume: number;
readonly readyForMoreMediaData: boolean;
+ /**
+ * @since 8.0
+ */
sampleReferenceBaseURL: NSURL;
+ /**
+ * @since 6.0
+ */
readonly sourceFormatHint: any;
transform: CGAffineTransform;
constructor(o: { mediaType: string; outputSettings: NSDictionary; });
+ /**
+ * @since 6.0
+ */
constructor(o: { mediaType: string; outputSettings: NSDictionary; sourceFormatHint: any; });
+ /**
+ * @since 7.0
+ */
addTrackAssociationWithTrackOfInputType(input: AVAssetWriterInput, trackAssociationType: string): void;
appendSampleBuffer(sampleBuffer: any): boolean;
+ /**
+ * @since 7.0
+ */
canAddTrackAssociationWithTrackOfInputType(input: AVAssetWriterInput, trackAssociationType: string): boolean;
initWithMediaTypeOutputSettings(mediaType: string, outputSettings: NSDictionary): this;
+ /**
+ * @since 6.0
+ */
initWithMediaTypeOutputSettingsSourceFormatHint(mediaType: string, outputSettings: NSDictionary, sourceFormatHint: any): this;
markAsFinished(): void;
+ /**
+ * @since 8.0
+ */
markCurrentPassAsFinished(): void;
- requestMediaDataWhenReadyOnQueueUsingBlock(queue: interop.Pointer | interop.Reference, block: () => void): void;
+ requestMediaDataWhenReadyOnQueueUsingBlock(queue: NSObject & OS_dispatch_queue, block: () => void): void;
+
+ /**
+ * @since 8.0
+ */
+ respondToEachPassDescriptionOnQueueUsingBlock(queue: NSObject & OS_dispatch_queue, block: () => void): void;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVAssetWriterInputCaptionAdaptor extends NSObject {
+
+ static alloc(): AVAssetWriterInputCaptionAdaptor; // inherited from NSObject
+
+ static assetWriterInputCaptionAdaptorWithAssetWriterInput(input: AVAssetWriterInput): AVAssetWriterInputCaptionAdaptor;
+
+ static new(): AVAssetWriterInputCaptionAdaptor; // inherited from NSObject
+
+ readonly assetWriterInput: AVAssetWriterInput;
+
+ constructor(o: { assetWriterInput: AVAssetWriterInput; });
+
+ appendCaption(caption: AVCaption): boolean;
- respondToEachPassDescriptionOnQueueUsingBlock(queue: interop.Pointer | interop.Reference, block: () => void): void;
+ appendCaptionGroup(captionGroup: AVCaptionGroup): boolean;
+
+ initWithAssetWriterInput(input: AVAssetWriterInput): this;
}
+/**
+ * @since 7.0
+ */
declare class AVAssetWriterInputGroup extends AVMediaSelectionGroup {
static alloc(): AVAssetWriterInputGroup; // inherited from NSObject
@@ -1202,10 +2079,19 @@ declare class AVAssetWriterInputGroup extends AVMediaSelectionGroup {
initWithInputsDefaultInput(inputs: NSArray | AVAssetWriterInput[], defaultInput: AVAssetWriterInput): this;
}
+/**
+ * @since 11.0
+ */
declare var AVAssetWriterInputMediaDataLocationBeforeMainMediaDataNotInterleaved: string;
+/**
+ * @since 11.0
+ */
declare var AVAssetWriterInputMediaDataLocationInterleavedWithMainMediaData: string;
+/**
+ * @since 8.0
+ */
declare class AVAssetWriterInputMetadataAdaptor extends NSObject {
static alloc(): AVAssetWriterInputMetadataAdaptor; // inherited from NSObject
@@ -1223,6 +2109,9 @@ declare class AVAssetWriterInputMetadataAdaptor extends NSObject {
initWithAssetWriterInput(input: AVAssetWriterInput): this;
}
+/**
+ * @since 8.0
+ */
declare class AVAssetWriterInputPassDescription extends NSObject {
static alloc(): AVAssetWriterInputPassDescription; // inherited from NSObject
@@ -1232,6 +2121,9 @@ declare class AVAssetWriterInputPassDescription extends NSObject {
readonly sourceTimeRanges: NSArray;
}
+/**
+ * @since 4.1
+ */
declare class AVAssetWriterInputPixelBufferAdaptor extends NSObject {
static alloc(): AVAssetWriterInputPixelBufferAdaptor; // inherited from NSObject
@@ -1253,6 +2145,9 @@ declare class AVAssetWriterInputPixelBufferAdaptor extends NSObject {
initWithAssetWriterInputSourcePixelBufferAttributes(input: AVAssetWriterInput, sourcePixelBufferAttributes: NSDictionary): this;
}
+/**
+ * @since 17.0
+ */
declare class AVAssetWriterInputTaggedPixelBufferGroupAdaptor extends NSObject {
static alloc(): AVAssetWriterInputTaggedPixelBufferGroupAdaptor; // inherited from NSObject
@@ -1287,6 +2182,9 @@ declare const enum AVAssetWriterStatus {
Cancelled = 4
}
+/**
+ * @since 9.0
+ */
declare class AVAsynchronousCIImageFilteringRequest extends NSObject implements NSCopying {
static alloc(): AVAsynchronousCIImageFilteringRequest; // inherited from NSObject
@@ -1317,6 +2215,9 @@ declare var AVAsynchronousKeyValueLoading: {
prototype: AVAsynchronousKeyValueLoading;
};
+/**
+ * @since 7.0
+ */
declare class AVAsynchronousVideoCompositionRequest extends NSObject implements NSCopying {
static alloc(): AVAsynchronousVideoCompositionRequest; // inherited from NSObject
@@ -1327,6 +2228,9 @@ declare class AVAsynchronousVideoCompositionRequest extends NSObject implements
readonly renderContext: AVVideoCompositionRenderContext;
+ /**
+ * @since 15.0
+ */
readonly sourceSampleDataTrackIDs: NSArray;
readonly sourceTrackIDs: NSArray;
@@ -1343,11 +2247,20 @@ declare class AVAsynchronousVideoCompositionRequest extends NSObject implements
sourceFrameByTrackID(trackID: number): any;
+ /**
+ * @since 15.0
+ */
sourceSampleBufferByTrackID(trackID: number): any;
+ /**
+ * @since 15.0
+ */
sourceTimedMetadataByTrackID(trackID: number): AVTimedMetadataGroup;
}
+/**
+ * @since 4.0
+ */
declare class AVAudioMix extends NSObject implements NSCopying, NSMutableCopying {
static alloc(): AVAudioMix; // inherited from NSObject
@@ -1361,14 +2274,23 @@ declare class AVAudioMix extends NSObject implements NSCopying, NSMutableCopying
mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any;
}
+/**
+ * @since 4.0
+ */
declare class AVAudioMixInputParameters extends NSObject implements NSCopying, NSMutableCopying {
static alloc(): AVAudioMixInputParameters; // inherited from NSObject
static new(): AVAudioMixInputParameters; // inherited from NSObject
+ /**
+ * @since 6.0
+ */
readonly audioTapProcessor: any;
+ /**
+ * @since 7.0
+ */
readonly audioTimePitchAlgorithm: string;
readonly trackID: number;
@@ -1391,14 +2313,30 @@ declare const enum AVAudioSpatializationFormats {
MonoStereoAndMultichannel = 7
}
+/**
+ * @since 7.0
+ * @deprecated 15.0
+ */
declare var AVAudioTimePitchAlgorithmLowQualityZeroLatency: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioTimePitchAlgorithmSpectral: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioTimePitchAlgorithmTimeDomain: string;
+/**
+ * @since 7.0
+ */
declare var AVAudioTimePitchAlgorithmVarispeed: string;
+/**
+ * @since 7.0
+ */
declare const enum AVAuthorizationStatus {
NotDetermined = 0,
@@ -1410,6 +2348,9 @@ declare const enum AVAuthorizationStatus {
Authorized = 3
}
+/**
+ * @since 11.0
+ */
declare class AVCameraCalibrationData extends NSObject {
static alloc(): AVCameraCalibrationData; // inherited from NSObject
@@ -1420,17 +2361,534 @@ declare class AVCameraCalibrationData extends NSObject {
readonly intrinsicMatrix: simd_float3x3;
- readonly intrinsicMatrixReferenceDimensions: CGSize;
+ readonly intrinsicMatrixReferenceDimensions: CGSize;
+
+ readonly inverseLensDistortionLookupTable: NSData;
+
+ readonly lensDistortionCenter: CGPoint;
+
+ readonly lensDistortionLookupTable: NSData;
+
+ readonly pixelSize: number;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaption extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding {
+
+ static alloc(): AVCaption; // inherited from NSObject
+
+ static new(): AVCaption; // inherited from NSObject
+
+ readonly animation: AVCaptionAnimation;
+
+ readonly region: AVCaptionRegion;
+
+ readonly text: string;
+
+ readonly textAlignment: AVCaptionTextAlignment;
+
+ readonly timeRange: CMTimeRange;
+
+ static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
+
+ constructor(o: { coder: NSCoder; }); // inherited from NSCoding
+
+ constructor(o: { text: string; timeRange: CMTimeRange; });
+
+ backgroundColorAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): any;
+
+ copyWithZone(zone: interop.Pointer | interop.Reference): any;
+
+ decorationAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): AVCaptionDecoration;
+
+ encodeWithCoder(coder: NSCoder): void;
+
+ fontStyleAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): AVCaptionFontStyle;
+
+ fontWeightAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): AVCaptionFontWeight;
+
+ initWithCoder(coder: NSCoder): this;
+
+ initWithTextTimeRange(text: string, timeRange: CMTimeRange): this;
+
+ mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any;
+
+ rubyAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): AVCaptionRuby;
+
+ textColorAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): any;
+
+ textCombineAtIndexRange(index: number, outRange: interop.Pointer | interop.Reference): AVCaptionTextCombine;
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionAnimation {
+
+ None = 0,
+
+ CharacterReveal = 1
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionConversionAdjustment extends NSObject {
+
+ static alloc(): AVCaptionConversionAdjustment; // inherited from NSObject
+
+ static new(): AVCaptionConversionAdjustment; // inherited from NSObject
+
+ readonly adjustmentType: string;
+}
+
+/**
+ * @since 18.0
+ */
+declare var AVCaptionConversionAdjustmentTypeTimeRange: string;
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionConversionTimeRangeAdjustment extends AVCaptionConversionAdjustment {
+
+ static alloc(): AVCaptionConversionTimeRangeAdjustment; // inherited from NSObject
+
+ static new(): AVCaptionConversionTimeRangeAdjustment; // inherited from NSObject
+
+ readonly durationOffset: CMTime;
+
+ readonly startTimeOffset: CMTime;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionConversionValidator extends NSObject {
+
+ static alloc(): AVCaptionConversionValidator; // inherited from NSObject
+
+ static captionConversionValidatorWithCaptionsTimeRangeConversionSettings(captions: NSArray | AVCaption[], timeRange: CMTimeRange, conversionSettings: NSDictionary): AVCaptionConversionValidator;
+
+ static new(): AVCaptionConversionValidator; // inherited from NSObject
+
+ readonly captions: NSArray;
+
+ readonly status: AVCaptionConversionValidatorStatus;
+
+ readonly timeRange: CMTimeRange;
+
+ readonly warnings: NSArray;
+
+ constructor(o: { captions: NSArray | AVCaption[]; timeRange: CMTimeRange; conversionSettings: NSDictionary; });
+
+ initWithCaptionsTimeRangeConversionSettings(captions: NSArray | AVCaption[], timeRange: CMTimeRange, conversionSettings: NSDictionary): this;
+
+ stopValidating(): void;
+
+ validateCaptionConversionWithWarningHandler(handler: (p1: AVCaptionConversionWarning) => void): void;
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionConversionValidatorStatus {
+
+ Unknown = 0,
+
+ Validating = 1,
+
+ Completed = 2,
+
+ Stopped = 3
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionConversionWarning extends NSObject {
+
+ static alloc(): AVCaptionConversionWarning; // inherited from NSObject
+
+ static new(): AVCaptionConversionWarning; // inherited from NSObject
+
+ readonly adjustment: AVCaptionConversionAdjustment;
+
+ readonly rangeOfCaptions: NSRange;
+
+ readonly warningType: string;
+}
+
+/**
+ * @since 18.0
+ */
+declare var AVCaptionConversionWarningTypeExcessMediaData: string;
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionDecoration {
+
+ None = 0,
+
+ Underline = 1,
+
+ LineThrough = 2,
+
+ Overline = 4
+}
+
+interface AVCaptionDimension {
+ value: number;
+ units: AVCaptionUnitsType;
+}
+declare var AVCaptionDimension: interop.StructType;
+
+/**
+ * @since 18.0
+ */
+declare function AVCaptionDimensionMake(value: number, units: AVCaptionUnitsType): AVCaptionDimension;
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionFontStyle {
+
+ Unknown = 0,
+
+ Normal = 1,
+
+ Italic = 2
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionFontWeight {
+
+ Unknown = 0,
+
+ Normal = 1,
+
+ Bold = 2
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionFormatConformer extends NSObject {
+
+ static alloc(): AVCaptionFormatConformer; // inherited from NSObject
+
+ static captionFormatConformerWithConversionSettings(conversionSettings: NSDictionary): AVCaptionFormatConformer;
+
+ static new(): AVCaptionFormatConformer; // inherited from NSObject
+
+ conformsCaptionsToTimeRange: boolean;
+
+ constructor(o: { conversionSettings: NSDictionary; });
+
+ conformedCaptionForCaptionError(caption: AVCaption): AVCaption;
+
+ initWithConversionSettings(conversionSettings: NSDictionary): this;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionGroup extends NSObject {
+
+ static alloc(): AVCaptionGroup; // inherited from NSObject
+
+ static new(): AVCaptionGroup; // inherited from NSObject
+
+ readonly captions: NSArray;
+
+ readonly timeRange: CMTimeRange;
+
+ constructor(o: { captions: NSArray | AVCaption[]; timeRange: CMTimeRange; });
+
+ constructor(o: { timeRange: CMTimeRange; });
+
+ initWithCaptionsTimeRange(captions: NSArray | AVCaption[], timeRange: CMTimeRange): this;
+
+ initWithTimeRange(timeRange: CMTimeRange): this;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionGrouper extends NSObject {
+
+ static alloc(): AVCaptionGrouper; // inherited from NSObject
+
+ static new(): AVCaptionGrouper; // inherited from NSObject
+
+ addCaption(input: AVCaption): void;
+
+ flushAddedCaptionsIntoGroupsUpToTime(upToTime: CMTime): NSArray;
+}
+
+/**
+ * @since 18.0
+ */
+declare var AVCaptionMediaSubTypeKey: string;
+
+/**
+ * @since 18.0
+ */
+declare var AVCaptionMediaTypeKey: string;
+
+interface AVCaptionPoint {
+ x: AVCaptionDimension;
+ y: AVCaptionDimension;
+}
+declare var AVCaptionPoint: interop.StructType;
+
+/**
+ * @since 18.0
+ */
+declare function AVCaptionPointMake(x: AVCaptionDimension, y: AVCaptionDimension): AVCaptionPoint;
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionRegion extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding {
+
+ static alloc(): AVCaptionRegion; // inherited from NSObject
+
+ static new(): AVCaptionRegion; // inherited from NSObject
+
+ readonly displayAlignment: AVCaptionRegionDisplayAlignment;
+
+ readonly identifier: string;
+
+ readonly origin: AVCaptionPoint;
+
+ readonly scroll: AVCaptionRegionScroll;
+
+ readonly size: AVCaptionSize;
+
+ readonly writingMode: AVCaptionRegionWritingMode;
+
+ static readonly appleITTBottomRegion: AVCaptionRegion;
+
+ static readonly appleITTLeftRegion: AVCaptionRegion;
+
+ static readonly appleITTRightRegion: AVCaptionRegion;
+
+ static readonly appleITTTopRegion: AVCaptionRegion;
+
+ static readonly subRipTextBottomRegion: AVCaptionRegion;
+
+ static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
+
+ constructor(o: { coder: NSCoder; }); // inherited from NSCoding
+
+ copyWithZone(zone: interop.Pointer | interop.Reference): any;
+
+ encodeWithCoder(coder: NSCoder): void;
+
+ initWithCoder(coder: NSCoder): this;
+
+ mutableCopyWithZone(zone: interop.Pointer | interop.Reference): any;
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionRegionDisplayAlignment {
+
+ Before = 0,
+
+ Center = 1,
+
+ After = 2
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionRegionScroll {
+
+ None = 0,
+
+ RollUp = 1
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionRegionWritingMode {
+
+ LeftToRightAndTopToBottom = 0,
+
+ TopToBottomAndRightToLeft = 2
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionRenderer extends NSObject {
+
+ static alloc(): AVCaptionRenderer; // inherited from NSObject
+
+ static new(): AVCaptionRenderer; // inherited from NSObject
+
+ bounds: CGRect;
+
+ captions: NSArray;
+
+ captionSceneChangesInRange(consideredTimeRange: CMTimeRange): NSArray;
+
+ renderInContextForTime(ctx: any, time: CMTime): void;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionRendererScene extends NSObject implements NSCopying {
+
+ static alloc(): AVCaptionRendererScene; // inherited from NSObject
+
+ static new(): AVCaptionRendererScene; // inherited from NSObject
+
+ readonly hasActiveCaptions: boolean;
+
+ readonly needsPeriodicRefresh: boolean;
+
+ readonly timeRange: CMTimeRange;
+
+ copyWithZone(zone: interop.Pointer | interop.Reference): any;
+}
+
+/**
+ * @since 18.0
+ */
+declare class AVCaptionRuby extends NSObject implements NSCopying, NSSecureCoding {
+
+ static alloc(): AVCaptionRuby; // inherited from NSObject
+
+ static new(): AVCaptionRuby; // inherited from NSObject
+
+ readonly alignment: AVCaptionRubyAlignment;
+
+ readonly position: AVCaptionRubyPosition;
+
+ readonly text: string;
+
+ static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
+
+ constructor(o: { coder: NSCoder; }); // inherited from NSCoding
+
+ constructor(o: { text: string; });
+
+ constructor(o: { text: string; position: AVCaptionRubyPosition; alignment: AVCaptionRubyAlignment; });
+
+ copyWithZone(zone: interop.Pointer | interop.Reference): any;
+
+ encodeWithCoder(coder: NSCoder): void;
+
+ initWithCoder(coder: NSCoder): this;
+
+ initWithText(text: string): this;
+
+ initWithTextPositionAlignment(text: string, position: AVCaptionRubyPosition, alignment: AVCaptionRubyAlignment): this;
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionRubyAlignment {
+
+ Start = 0,
+
+ Center = 1,
+
+ DistributeSpaceBetween = 2,
+
+ DistributeSpaceAround = 3
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionRubyPosition {
+
+ Before = 0,
+
+ After = 1
+}
+
+interface AVCaptionSize {
+ width: AVCaptionDimension;
+ height: AVCaptionDimension;
+}
+declare var AVCaptionSize: interop.StructType;
+
+/**
+ * @since 18.0
+ */
+declare function AVCaptionSizeMake(width: AVCaptionDimension, height: AVCaptionDimension): AVCaptionSize;
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionTextAlignment {
+
+ Start = 0,
+
+ End = 1,
+
+ Center = 2,
+
+ Left = 3,
+
+ Right = 4
+}
+
+/**
+ * @since 18.0
+ */
+declare const enum AVCaptionTextCombine {
+
+ All = -1,
+
+ None = 0,
+
+ OneDigit = 1,
+
+ TwoDigits = 2,
+
+ ThreeDigits = 3,
+
+ FourDigits = 4
+}
+
+/**
+ * @since 18.0
+ */
+declare var AVCaptionTimeCodeFrameDurationKey: string;
- readonly inverseLensDistortionLookupTable: NSData;
+declare const enum AVCaptionUnitsType {
- readonly lensDistortionCenter: CGPoint;
+ Unspecified = 0,
- readonly lensDistortionLookupTable: NSData;
+ Cells = 1,
- readonly pixelSize: number;
+ Percent = 2
}
+/**
+ * @since 18.0
+ */
+declare var AVCaptionUseDropFrameTimeCodeKey: string;
+
+/**
+ * @since 4.0
+ */
declare class AVCaptureAudioChannel extends NSObject {
static alloc(): AVCaptureAudioChannel; // inherited from NSObject
@@ -1442,21 +2900,30 @@ declare class AVCaptureAudioChannel extends NSObject {
readonly peakHoldLevel: number;
}
+/**
+ * @since 4.0
+ */
declare class AVCaptureAudioDataOutput extends AVCaptureOutput {
static alloc(): AVCaptureAudioDataOutput; // inherited from NSObject
static new(): AVCaptureAudioDataOutput; // inherited from NSObject
- readonly sampleBufferCallbackQueue: interop.Pointer | interop.Reference;
+ readonly sampleBufferCallbackQueue: NSObject & OS_dispatch_queue;
readonly sampleBufferDelegate: AVCaptureAudioDataOutputSampleBufferDelegate;
+ /**
+ * @since 7.0
+ */
recommendedAudioSettingsForAssetWriterWithOutputFileType(outputFileType: string): NSDictionary;
- setSampleBufferDelegateQueue(sampleBufferDelegate: AVCaptureAudioDataOutputSampleBufferDelegate, sampleBufferCallbackQueue: interop.Pointer | interop.Reference): void;
+ setSampleBufferDelegateQueue(sampleBufferDelegate: AVCaptureAudioDataOutputSampleBufferDelegate, sampleBufferCallbackQueue: NSObject & OS_dispatch_queue): void;
}
+/**
+ * @since 4.0
+ */
interface AVCaptureAudioDataOutputSampleBufferDelegate extends NSObjectProtocol {
captureOutputDidOutputSampleBufferFromConnection?(output: AVCaptureOutput, sampleBuffer: any, connection: AVCaptureConnection): void;
@@ -1466,6 +2933,9 @@ declare var AVCaptureAudioDataOutputSampleBufferDelegate: {
prototype: AVCaptureAudioDataOutputSampleBufferDelegate;
};
+/**
+ * @since 8.0
+ */
declare class AVCaptureAutoExposureBracketedStillImageSettings extends AVCaptureBracketedStillImageSettings {
static alloc(): AVCaptureAutoExposureBracketedStillImageSettings; // inherited from NSObject
@@ -1477,6 +2947,9 @@ declare class AVCaptureAutoExposureBracketedStillImageSettings extends AVCapture
readonly exposureTargetBias: number;
}
+/**
+ * @since 7.0
+ */
declare const enum AVCaptureAutoFocusRangeRestriction {
None = 0,
@@ -1486,6 +2959,9 @@ declare const enum AVCaptureAutoFocusRangeRestriction {
Far = 2
}
+/**
+ * @since 8.0
+ */
declare const enum AVCaptureAutoFocusSystem {
None = 0,
@@ -1495,6 +2971,9 @@ declare const enum AVCaptureAutoFocusSystem {
PhaseDetection = 2
}
+/**
+ * @since 8.0
+ */
declare class AVCaptureBracketedStillImageSettings extends NSObject {
static alloc(): AVCaptureBracketedStillImageSettings; // inherited from NSObject
@@ -1502,6 +2981,9 @@ declare class AVCaptureBracketedStillImageSettings extends NSObject {
static new(): AVCaptureBracketedStillImageSettings; // inherited from NSObject
}
+/**
+ * @since 14.5
+ */
declare const enum AVCaptureCenterStageControlMode {
User = 0,
@@ -1511,6 +2993,9 @@ declare const enum AVCaptureCenterStageControlMode {
Cooperative = 2
}
+/**
+ * @since 10.0
+ */
declare const enum AVCaptureColorSpace {
sRGB = 0,
@@ -1522,77 +3007,163 @@ declare const enum AVCaptureColorSpace {
AppleLog = 3
}
+/**
+ * @since 4.0
+ */
declare class AVCaptureConnection extends NSObject {
static alloc(): AVCaptureConnection; // inherited from NSObject
+ /**
+ * @since 8.0
+ */
static connectionWithInputPortVideoPreviewLayer(port: AVCaptureInputPort, layer: AVCaptureVideoPreviewLayer): AVCaptureConnection;
+ /**
+ * @since 8.0
+ */
static connectionWithInputPortsOutput(ports: NSArray | AVCaptureInputPort[], output: AVCaptureOutput): AVCaptureConnection;
static new(): AVCaptureConnection; // inherited from NSObject
readonly active: boolean;
+ /**
+ * @since 8.0
+ */
readonly activeVideoStabilizationMode: AVCaptureVideoStabilizationMode;
readonly audioChannels: NSArray;
+ /**
+ * @since 6.0
+ */
automaticallyAdjustsVideoMirroring: boolean;
+ /**
+ * @since 11.0
+ */
cameraIntrinsicMatrixDeliveryEnabled: boolean;
+ /**
+ * @since 11.0
+ */
readonly cameraIntrinsicMatrixDeliverySupported: boolean;
enabled: boolean;
+ /**
+ * @since 6.0
+ * @deprecated 8.0
+ */
enablesVideoStabilizationWhenAvailable: boolean;
readonly inputPorts: NSArray;
readonly output: AVCaptureOutput;
+ /**
+ * @since 8.0
+ */
preferredVideoStabilizationMode: AVCaptureVideoStabilizationMode;
+ /**
+ * @since 5.0
+ * @deprecated 7.0
+ */
readonly supportsVideoMaxFrameDuration: boolean;
+ /**
+ * @since 5.0
+ * @deprecated 7.0
+ */
readonly supportsVideoMinFrameDuration: boolean;
readonly supportsVideoMirroring: boolean;
+ /**
+ * @since 4.0
+ * @deprecated 17.0
+ */
readonly supportsVideoOrientation: boolean;
+ /**
+ * @since 6.0
+ */
readonly supportsVideoStabilization: boolean;
+ /**
+ * @since 5.0
+ * @deprecated 7.0
+ */
videoMaxFrameDuration: CMTime;
+ /**
+ * @since 5.0
+ */
readonly videoMaxScaleAndCropFactor: number;
+ /**
+ * @since 5.0
+ * @deprecated 7.0
+ */
videoMinFrameDuration: CMTime;
videoMirrored: boolean;
+ /**
+ * @since 4.0
+ * @deprecated 17.0
+ */
videoOrientation: AVCaptureVideoOrientation;
+ /**
+ * @since 6.0
+ */
readonly videoPreviewLayer: AVCaptureVideoPreviewLayer;
+ /**
+ * @since 17.0
+ */
videoRotationAngle: number;
+ /**
+ * @since 5.0
+ */
videoScaleAndCropFactor: number;
+ /**
+ * @since 6.0
+ * @deprecated 8.0
+ */
readonly videoStabilizationEnabled: boolean;
+ /**
+ * @since 8.0
+ */
constructor(o: { inputPort: AVCaptureInputPort; videoPreviewLayer: AVCaptureVideoPreviewLayer; });
+ /**
+ * @since 8.0
+ */
constructor(o: { inputPorts: NSArray | AVCaptureInputPort[]; output: AVCaptureOutput; });
+ /**
+ * @since 8.0
+ */
initWithInputPortVideoPreviewLayer(port: AVCaptureInputPort, layer: AVCaptureVideoPreviewLayer): this;
+ /**
+ * @since 8.0
+ */
initWithInputPortsOutput(ports: NSArray | AVCaptureInputPort[], output: AVCaptureOutput): this;
isVideoRotationAngleSupported(videoRotationAngle: number): boolean;
}
+/**
+ * @since 11.0
+ */
declare class AVCaptureDataOutputSynchronizer extends NSObject {
static alloc(): AVCaptureDataOutputSynchronizer; // inherited from NSObject
@@ -1603,15 +3174,18 @@ declare class AVCaptureDataOutputSynchronizer extends NSObject {
readonly delegate: AVCaptureDataOutputSynchronizerDelegate;
- readonly delegateCallbackQueue: interop.Pointer | interop.Reference;
+ readonly delegateCallbackQueue: NSObject & OS_dispatch_queue;
constructor(o: { dataOutputs: NSArray | AVCaptureOutput[]; });
initWithDataOutputs(dataOutputs: NSArray | AVCaptureOutput[]): this;
- setDelegateQueue(delegate: AVCaptureDataOutputSynchronizerDelegate, delegateCallbackQueue: interop.Pointer | interop.Reference): void;
+ setDelegateQueue(delegate: AVCaptureDataOutputSynchronizerDelegate, delegateCallbackQueue: NSObject & OS_dispatch_queue): void;
}
+/**
+ * @since 11.0
+ */
interface AVCaptureDataOutputSynchronizerDelegate extends NSObjectProtocol {
dataOutputSynchronizerDidOutputSynchronizedDataCollection(synchronizer: AVCaptureDataOutputSynchronizer, synchronizedDataCollection: AVCaptureSynchronizedDataCollection): void;
@@ -1621,6 +3195,9 @@ declare var AVCaptureDataOutputSynchronizerDelegate: {
prototype: AVCaptureDataOutputSynchronizerDelegate;
};
+/**
+ * @since 17.0
+ */
declare class AVCaptureDeferredPhotoProxy extends AVCapturePhoto {
static alloc(): AVCaptureDeferredPhotoProxy; // inherited from NSObject
@@ -1628,6 +3205,9 @@ declare class AVCaptureDeferredPhotoProxy extends AVCapturePhoto {
static new(): AVCaptureDeferredPhotoProxy; // inherited from NSObject
}
+/**
+ * @since 11.0
+ */
declare class AVCaptureDepthDataOutput extends AVCaptureOutput {
static alloc(): AVCaptureDepthDataOutput; // inherited from NSObject
@@ -1638,13 +3218,16 @@ declare class AVCaptureDepthDataOutput extends AVCaptureOutput {
readonly delegate: AVCaptureDepthDataOutputDelegate;
- readonly delegateCallbackQueue: interop.Pointer | interop.Reference;
+ readonly delegateCallbackQueue: NSObject & OS_dispatch_queue;
filteringEnabled: boolean;
- setDelegateCallbackQueue(delegate: AVCaptureDepthDataOutputDelegate, callbackQueue: interop.Pointer | interop.Reference): void;
+ setDelegateCallbackQueue(delegate: AVCaptureDepthDataOutputDelegate, callbackQueue: NSObject & OS_dispatch_queue): void;
}
+/**
+ * @since 11.0
+ */
interface AVCaptureDepthDataOutputDelegate extends NSObjectProtocol {
depthDataOutputDidDropDepthDataTimestampConnectionReason?(output: AVCaptureDepthDataOutput, depthData: AVDepthData, timestamp: CMTime, connection: AVCaptureConnection, reason: AVCaptureOutputDataDroppedReason): void;
@@ -1656,50 +3239,109 @@ declare var AVCaptureDepthDataOutputDelegate: {
prototype: AVCaptureDepthDataOutputDelegate;
};
+/**
+ * @since 4.0
+ */
declare class AVCaptureDevice extends NSObject {
static alloc(): AVCaptureDevice; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
static authorizationStatusForMediaType(mediaType: string): AVAuthorizationStatus;
+ /**
+ * @since 10.0
+ */
static defaultDeviceWithDeviceTypeMediaTypePosition(deviceType: string, mediaType: string, position: AVCaptureDevicePosition): AVCaptureDevice;
static defaultDeviceWithMediaType(mediaType: string): AVCaptureDevice;
static deviceWithUniqueID(deviceUniqueID: string): AVCaptureDevice;
+ /**
+ * @since 4.0
+ * @deprecated 10.0
+ */
static devices(): NSArray;
+ /**
+ * @since 4.0
+ * @deprecated 10.0
+ */
static devicesWithMediaType(mediaType: string): NSArray;
+ /**
+ * @since 13.0
+ */
static extrinsicMatrixFromDeviceToDevice(fromDevice: AVCaptureDevice, toDevice: AVCaptureDevice): NSData;
static new(): AVCaptureDevice; // inherited from NSObject
+ /**
+ * @since 7.0
+ */
static requestAccessForMediaTypeCompletionHandler(mediaType: string, handler: (p1: boolean) => void): void;
+ /**
+ * @since 15.0
+ */
static showSystemUserInterface(systemUserInterface: AVCaptureSystemUserInterface): void;
+ /**
+ * @since 8.0
+ */
readonly ISO: number;
+ /**
+ * @since 10.0
+ */
activeColorSpace: AVCaptureColorSpace;
+ /**
+ * @since 11.0
+ */
activeDepthDataFormat: AVCaptureDeviceFormat;
+ /**
+ * @since 12.0
+ */
activeDepthDataMinFrameDuration: CMTime;
+ /**
+ * @since 7.0
+ */
activeFormat: AVCaptureDeviceFormat;
+ /**
+ * @since 12.0
+ */
activeMaxExposureDuration: CMTime;
+ /**
+ * @since 15.0
+ */
readonly activePrimaryConstituentDevice: AVCaptureDevice;
+ /**
+ * @since 15.0
+ */
readonly activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;
+ /**
+ * @since 15.0
+ */
readonly activePrimaryConstituentDeviceSwitchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior;
+ /**
+ * @since 7.0
+ */
activeVideoMaxFrameDuration: CMTime;
+ /**
+ * @since 7.0
+ */
activeVideoMinFrameDuration: CMTime;
readonly adjustingExposure: boolean;
@@ -1708,40 +3350,102 @@ declare class AVCaptureDevice extends NSObject {
readonly adjustingWhiteBalance: boolean;
+ /**
+ * @since 7.0
+ */
autoFocusRangeRestriction: AVCaptureAutoFocusRangeRestriction;
+ /**
+ * @since 7.0
+ */
readonly autoFocusRangeRestrictionSupported: boolean;
+ /**
+ * @since 18.0
+ */
+ autoVideoFrameRateEnabled: boolean;
+
+ /**
+ * @since 15.4
+ */
automaticallyAdjustsFaceDrivenAutoExposureEnabled: boolean;
+ /**
+ * @since 15.4
+ */
automaticallyAdjustsFaceDrivenAutoFocusEnabled: boolean;
+ /**
+ * @since 8.0
+ */
automaticallyAdjustsVideoHDREnabled: boolean;
+ /**
+ * @since 6.0
+ */
automaticallyEnablesLowLightBoostWhenAvailable: boolean;
+ /**
+ * @since 17.0
+ */
readonly availableReactionTypes: NSSet;
+ /**
+ * @since 18.0
+ */
+ readonly backgroundReplacementActive: boolean;
+
+ /**
+ * @since 17.0
+ */
readonly canPerformReactionEffects: boolean;
+ /**
+ * @since 14.5
+ */
readonly centerStageActive: boolean;
+ /**
+ * @since 16.4
+ */
centerStageRectOfInterest: CGRect;
+ /**
+ * @since 16.0
+ */
readonly companionDeskViewCamera: AVCaptureDevice;
readonly connected: boolean;
+ /**
+ * @since 13.0
+ */
readonly constituentDevices: NSArray;
+ /**
+ * @since 16.0
+ */
readonly continuityCamera: boolean;
+ /**
+ * @since 10.0
+ */
readonly deviceType: string;
+ /**
+ * @since 8.0
+ */
readonly deviceWhiteBalanceGains: AVCaptureWhiteBalanceGains;
+ /**
+ * @since 11.0
+ * @deprecated 13.0
+ */
readonly dualCameraSwitchOverVideoZoomFactor: number;
+ /**
+ * @since 8.0
+ */
readonly exposureDuration: CMTime;
exposureMode: AVCaptureExposureMode;
@@ -1750,20 +3454,46 @@ declare class AVCaptureDevice extends NSObject {
readonly exposurePointOfInterestSupported: boolean;
+ /**
+ * @since 8.0
+ */
readonly exposureTargetBias: number;
+ /**
+ * @since 8.0
+ */
readonly exposureTargetOffset: number;
+ /**
+ * @since 15.4
+ */
faceDrivenAutoExposureEnabled: boolean;
+ /**
+ * @since 15.4
+ */
faceDrivenAutoFocusEnabled: boolean;
+ /**
+ * @since 15.0
+ */
fallbackPrimaryConstituentDevices: NSArray;
+ /**
+ * @since 5.0
+ * @deprecated 10.0
+ */
readonly flashActive: boolean;
+ /**
+ * @since 5.0
+ */
readonly flashAvailable: boolean;
+ /**
+ * @since 4.0
+ * @deprecated 10.0
+ */
flashMode: AVCaptureFlashMode;
focusMode: AVCaptureFocusMode;
@@ -1772,128 +3502,295 @@ declare class AVCaptureDevice extends NSObject {
readonly focusPointOfInterestSupported: boolean;
+ /**
+ * @since 7.0
+ */
readonly formats: NSArray;
+ /**
+ * @since 13.0
+ */
geometricDistortionCorrectionEnabled: boolean;
+ /**
+ * @since 13.0
+ */
readonly geometricDistortionCorrectionSupported: boolean;
+ /**
+ * @since 13.0
+ */
globalToneMappingEnabled: boolean;
+ /**
+ * @since 8.0
+ */
readonly grayWorldDeviceWhiteBalanceGains: AVCaptureWhiteBalanceGains;
readonly hasFlash: boolean;
readonly hasTorch: boolean;
+ /**
+ * @since 8.0
+ */
readonly lensAperture: number;
+ /**
+ * @since 8.0
+ */
readonly lensPosition: number;
readonly localizedName: string;
+ /**
+ * @since 10.0
+ */
readonly lockingFocusWithCustomLensPositionSupported: boolean;
+ /**
+ * @since 10.0
+ */
readonly lockingWhiteBalanceWithCustomDeviceGainsSupported: boolean;
+ /**
+ * @since 6.0
+ */
readonly lowLightBoostEnabled: boolean;
+ /**
+ * @since 6.0
+ */
readonly lowLightBoostSupported: boolean;
+ /**
+ * @since 14.0
+ */
readonly manufacturer: string;
+ /**
+ * @since 11.0
+ */
readonly maxAvailableVideoZoomFactor: number;
+ /**
+ * @since 8.0
+ */
readonly maxExposureTargetBias: number;
+ /**
+ * @since 8.0
+ */
readonly maxWhiteBalanceGain: number;
+ /**
+ * @since 11.0
+ */
readonly minAvailableVideoZoomFactor: number;
+ /**
+ * @since 8.0
+ */
readonly minExposureTargetBias: number;
+ /**
+ * @since 15.0
+ */
readonly minimumFocusDistance: number;
readonly modelID: string;
+ /**
+ * @since 15.0
+ */
readonly portraitEffectActive: boolean;
readonly position: AVCaptureDevicePosition;
+ /**
+ * @since 15.0
+ */
readonly primaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;
+ /**
+ * @since 15.0
+ */
readonly primaryConstituentDeviceSwitchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior;
+ /**
+ * @since 7.0
+ */
readonly rampingVideoZoom: boolean;
+ /**
+ * @since 17.0
+ */
readonly reactionEffectsInProgress: NSArray;
+ /**
+ * @since 7.0
+ */
smoothAutoFocusEnabled: boolean;
+ /**
+ * @since 7.0
+ */
readonly smoothAutoFocusSupported: boolean;
+ /**
+ * @since 18.0
+ */
+ readonly spatialCaptureDiscomfortReasons: NSSet;
+
+ /**
+ * @since 16.0
+ */
readonly studioLightActive: boolean;
+ /**
+ * @since 5.0
+ */
subjectAreaChangeMonitoringEnabled: boolean;
+ /**
+ * @since 15.0
+ */
readonly supportedFallbackPrimaryConstituentDevices: NSArray;
+ /**
+ * @since 14.0
+ */
readonly suspended: boolean;
+ /**
+ * @since 11.1
+ */
readonly systemPressureState: AVCaptureSystemPressureState;
+ /**
+ * @since 6.0
+ */
readonly torchActive: boolean;
+ /**
+ * @since 5.0
+ */
readonly torchAvailable: boolean;
+ /**
+ * @since 5.0
+ */
readonly torchLevel: number;
torchMode: AVCaptureTorchMode;
readonly uniqueID: string;
+ /**
+ * @since 8.0
+ */
videoHDREnabled: boolean;
+ /**
+ * @since 7.0
+ */
videoZoomFactor: number;
+ /**
+ * @since 13.0
+ */
readonly virtualDevice: boolean;
+ /**
+ * @since 13.0
+ */
readonly virtualDeviceSwitchOverVideoZoomFactors: NSArray;
whiteBalanceMode: AVCaptureWhiteBalanceMode;
+ /**
+ * @since 15.0
+ */
static readonly activeMicrophoneMode: AVCaptureMicrophoneMode;
+ /**
+ * @since 18.0
+ */
+ static readonly backgroundReplacementEnabled: boolean;
+
+ /**
+ * @since 14.5
+ */
static centerStageControlMode: AVCaptureCenterStageControlMode;
+ /**
+ * @since 14.5
+ */
static centerStageEnabled: boolean;
+ /**
+ * @since 15.0
+ */
static readonly portraitEffectEnabled: boolean;
+ /**
+ * @since 15.0
+ */
static readonly preferredMicrophoneMode: AVCaptureMicrophoneMode;
+ /**
+ * @since 17.0
+ */
static readonly reactionEffectGesturesEnabled: boolean;
+ /**
+ * @since 17.0
+ */
static readonly reactionEffectsEnabled: boolean;
+ /**
+ * @since 16.0
+ */
static readonly studioLightEnabled: boolean;
+ /**
+ * @since 17.0
+ */
static readonly systemPreferredCamera: AVCaptureDevice;
+ /**
+ * @since 17.0
+ */
static userPreferredCamera: AVCaptureDevice;
+ /**
+ * @since 7.0
+ */
cancelVideoZoomRamp(): void;
+ /**
+ * @since 8.0
+ */
chromaticityValuesForDeviceWhiteBalanceGains(whiteBalanceGains: AVCaptureWhiteBalanceGains): AVCaptureWhiteBalanceChromaticityValues;
+ /**
+ * @since 8.0
+ */
deviceWhiteBalanceGainsForChromaticityValues(chromaticityValues: AVCaptureWhiteBalanceChromaticityValues): AVCaptureWhiteBalanceGains;
+ /**
+ * @since 8.0
+ */
deviceWhiteBalanceGainsForTemperatureAndTintValues(tempAndTintValues: AVCaptureWhiteBalanceTemperatureAndTintValues): AVCaptureWhiteBalanceGains;
hasMediaType(mediaType: string): boolean;
isExposureModeSupported(exposureMode: AVCaptureExposureMode): boolean;
+ /**
+ * @since 4.0
+ * @deprecated 10.0
+ */
isFlashModeSupported(flashMode: AVCaptureFlashMode): boolean;
isFocusModeSupported(focusMode: AVCaptureFocusMode): boolean;
@@ -1904,29 +3801,59 @@ declare class AVCaptureDevice extends NSObject {
lockForConfiguration(): boolean;
+ /**
+ * @since 17.0
+ */
performEffectForReaction(reactionType: string): void;
+ /**
+ * @since 7.0
+ */
rampToVideoZoomFactorWithRate(factor: number, rate: number): void;
+ /**
+ * @since 8.0
+ */
setExposureModeCustomWithDurationISOCompletionHandler(duration: CMTime, ISO: number, handler: (p1: CMTime) => void): void;
+ /**
+ * @since 8.0
+ */
setExposureTargetBiasCompletionHandler(bias: number, handler: (p1: CMTime) => void): void;
+ /**
+ * @since 8.0
+ */
setFocusModeLockedWithLensPositionCompletionHandler(lensPosition: number, handler: (p1: CMTime) => void): void;
+ /**
+ * @since 15.0
+ */
setPrimaryConstituentDeviceSwitchingBehaviorRestrictedSwitchingBehaviorConditions(switchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions): void;
+ /**
+ * @since 6.0
+ */
setTorchModeOnWithLevelError(torchLevel: number): boolean;
+ /**
+ * @since 8.0
+ */
setWhiteBalanceModeLockedWithDeviceWhiteBalanceGainsCompletionHandler(whiteBalanceGains: AVCaptureWhiteBalanceGains, handler: (p1: CMTime) => void): void;
supportsAVCaptureSessionPreset(preset: string): boolean;
+ /**
+ * @since 8.0
+ */
temperatureAndTintValuesForDeviceWhiteBalanceGains(whiteBalanceGains: AVCaptureWhiteBalanceGains): AVCaptureWhiteBalanceTemperatureAndTintValues;
unlockForConfiguration(): void;
}
+/**
+ * @since 10.0
+ */
declare class AVCaptureDeviceDiscoverySession extends NSObject {
static alloc(): AVCaptureDeviceDiscoverySession; // inherited from NSObject
@@ -1937,100 +3864,236 @@ declare class AVCaptureDeviceDiscoverySession extends NSObject {
readonly devices: NSArray;
+ /**
+ * @since 13.0
+ */
readonly supportedMultiCamDeviceSets: NSArray>;
}
+/**
+ * @since 7.0
+ */
declare class AVCaptureDeviceFormat extends NSObject {
static alloc(): AVCaptureDeviceFormat; // inherited from NSObject
static new(): AVCaptureDeviceFormat; // inherited from NSObject
+ /**
+ * @since 8.0
+ */
readonly autoFocusSystem: AVCaptureAutoFocusSystem;
+ /**
+ * @since 18.0
+ */
+ readonly autoVideoFrameRateSupported: boolean;
+
+ /**
+ * @since 18.0
+ */
+ readonly backgroundReplacementSupported: boolean;
+
+ /**
+ * @since 14.5
+ */
readonly centerStageSupported: boolean;
readonly formatDescription: any;
+ /**
+ * @since 13.0
+ */
readonly geometricDistortionCorrectedVideoFieldOfView: number;
+ /**
+ * @since 13.0
+ */
readonly globalToneMappingSupported: boolean;
+ /**
+ * @since 15.0
+ */
readonly highPhotoQualitySupported: boolean;
+ /**
+ * @since 8.0
+ * @deprecated 16.0
+ */
readonly highResolutionStillImageDimensions: CMVideoDimensions;
+ /**
+ * @since 13.0
+ */
readonly highestPhotoQualitySupported: boolean;
+ /**
+ * @since 8.0
+ */
readonly maxExposureDuration: CMTime;
+ /**
+ * @since 8.0
+ */
readonly maxISO: number;
readonly mediaType: string;
+ /**
+ * @since 8.0
+ */
readonly minExposureDuration: CMTime;
+ /**
+ * @since 8.0
+ */
readonly minISO: number;
+ /**
+ * @since 13.0
+ */
readonly multiCamSupported: boolean;
+ /**
+ * @since 15.0
+ */
readonly portraitEffectSupported: boolean;
+ /**
+ * @since 12.0
+ */
readonly portraitEffectsMatteStillImageDeliverySupported: boolean;
+ /**
+ * @since 17.0
+ */
readonly reactionEffectsSupported: boolean;
+ /**
+ * @since 16.0
+ */
readonly secondaryNativeResolutionZoomFactors: NSArray;
+ readonly spatialVideoCaptureSupported: boolean;
+
+ /**
+ * @since 16.0
+ */
readonly studioLightSupported: boolean;
+ /**
+ * @since 10.0
+ */
readonly supportedColorSpaces: NSArray