8000 feat(types-ios): iOS 15.2 (#9710) · NativeScript/NativeScript@4a384ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a384ca

Browse files
authored
feat(types-ios): iOS 15.2 (#9710)
1 parent c6c3292 commit 4a384ca

26 files changed

+401
-229
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
/// <reference path="objc-x86_64/objc!JavaScriptCore.d.ts" />
8383
/// <reference path="objc-x86_64/objc!LinkPresentation.d.ts" />
8484
/// <reference path="objc-x86_64/objc!LocalAuthentication.d.ts" />
85-
/// <reference path="objc-x86_64/objc!MDFInternationalization.d.ts" />
8685
/// <reference path="objc-x86_64/objc!MachO.d.ts" />
8786
/// <reference path="objc-x86_64/objc!MapKit.d.ts" />
8887
/// <reference path="objc-x86_64/objc!MediaAccessibility.d.ts" />

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
271271

272272
declare var AVAssetExportPresetAppleM4A: string;
273273

274+
declare var AVAssetExportPresetAppleProRes422LPCM: string;
275+
276+
declare var AVAssetExportPresetAppleProRes4444LPCM: string;
277+
274278
declare var AVAssetExportPresetHEVC1920x1080: string;
275279

276280
declare var AVAssetExportPresetHEVC1920x1080WithAlpha: string;
@@ -1587,6 +1591,12 @@ declare class AVCaptureDevice extends NSObject {
15871591

15881592
activeMaxExposureDuration: CMTime;
15891593

1594+
readonly activePrimaryConstituentDevice: AVCaptureDevice;
1595+
1596+
readonly activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;
1597+
1598+
readonly activePrimaryConstituentDeviceSwitchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior;
1599+
15901600
activeVideoMaxFrameDuration: CMTime;
15911601

15921602
activeVideoMinFrameDuration: CMTime;
@@ -1629,6 +1639,8 @@ declare class AVCaptureDevice extends NSObject {
16291639

16301640
readonly exposureTargetOffset: number;
16311641

1642+
fallbackPrimaryConstituentDevices: NSArray<AVCaptureDevice>;
1643+
16321644
readonly flashActive: boolean;
16331645

16341646
readonly flashAvailable: boolean;
@@ -1689,6 +1701,10 @@ declare class AVCaptureDevice extends NSObject {
16891701

16901702
readonly position: AVCaptureDevicePosition;
16911703

1704+
readonly primaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;
1705+
1706+
readonly primaryConstituentDeviceSwitchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior;
1707+
16921708
readonly rampingVideoZoom: boolean;
16931709

16941710
smoothAutoFocusEnabled: boolean;
@@ -1697,6 +1713,8 @@ declare class AVCaptureDevice extends NSObject {
16971713

16981714
subjectAreaChangeMonitoringEnabled: boolean;
16991715

1716+
readonly supportedFallbackPrimaryConstituentDevices: NSArray<AVCaptureDevice>;
1717+
17001718
readonly suspended: boolean;
17011719

17021720
readonly systemPressureState: AVCaptureSystemPressureState;
@@ -1761,6 +1779,8 @@ declare class AVCaptureDevice extends NSObject {
17611779

17621780
setFocusModeLockedWithLensPositionCompletionHandler(lensPosition: number, handler: (p1: CMTime) => void): void;
17631781

1782+
setPrimaryConstituentDeviceSwitchingBehaviorRestrictedSwitchingBehaviorConditions(switchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions): void;
1783+
17641784
setTorchModeOnWithLevelError(torchLevel: number): boolean;
17651785

17661786
setWhiteBalanceModeLockedWithDeviceWhiteBalanceGainsCompletionHandler(whiteBalanceGains: AVCaptureWhiteBalanceGains, handler: (p1: CMTime) => void): void;
@@ -1819,6 +1839,8 @@ declare class AVCaptureDeviceFormat extends NSObject {
18191839

18201840
readonly multiCamSupported: boolean;
18211841

1842+
readonly portraitEffectSupported: boolean;
1843+
18221844
readonly portraitEffectsMatteStillImageDeliverySupported: boolean;
18231845

18241846
readonly supportedColorSpaces: NSArray<number>;
@@ -1833,6 +1855,8 @@ declare class AVCaptureDeviceFormat extends NSObject {
18331855

18341856
readonly videoFrameRateRangeForCenterStage: AVFrameRateRange;
18351857

1858+
readonly videoFrameRateRangeForPortraitEffect: AVFrameRateRange;
1859+
18361860
readonly videoHDRSupported: boolean;
18371861

18381862
readonly videoMaxZoomFactor: number;
@@ -2105,12 +2129,20 @@ declare class AVCaptureMovieFileOutput extends AVCaptureFileOutput {
21052129

21062130
movieFragmentInterval: CMTime;
21072131

2132+
readonly primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;
2133+
2134+
readonly primaryConstituentDeviceSwitchingBehaviorForRecording: AVCapturePrimaryConstituentDeviceSwitchingBehavior;
2135+
2136+
primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled: boolean;
2137+
21082138
outputSettingsForConnection(connection: AVCaptureConnection): NSDictionary<string, any>;
21092139

21102140
recordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection(connection: AVCaptureConnection): boolean;
21112141

21122142
setOutputSettingsForConnection(outputSettings: NSDictionary<string, any>, connection: AVCaptureConnection): void;
21132143

2144+
setPrimaryConstituentDeviceSwitchingBehaviorForRecordingRestrictedSwitchingBehaviorConditions(switchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions): void;
2145+
21142146
setRecordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection(doRecordChanges: boolean, connection: AVCaptureConnection): void;
21152147

21162148
supportedOutputSettingsKeysForConnection(connection: AVCaptureConnection): NSArray<string>;
@@ -2474,6 +2506,28 @@ declare class AVCapturePhotoSettings extends NSObject implements NSCopying {
24742506
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
24752507
}
24762508

2509+
declare const enum AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions {
2510+
2511+
None = 0,
2512+
2513+
VideoZoomChanged = 1,
2514+
2515+
FocusModeChanged = 2,
2516+
2517+
ExposureModeChanged = 4
2518+
}
2519+
2520+
declare const enum AVCapturePrimaryConstituentDeviceSwitchingBehavior {
2521+
2522+
Unsupported = 0,
2523+
2524+
Auto = 1,
2525+
2526+
Restricted = 2,
2527+
2528+
Locked = 3
2529+
}
2530+
24772531
declare class AVCaptureResolvedPhotoSettings extends NSObject {
24782532

24792533
static alloc(): AVCaptureResolvedPhotoSettings; // inherited from NSObject

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ declare const enum BNNSDataType {
284284

285285
Float32 = 65568,
286286

287+
BFloat16 = 98320,
288+
287289
IntBit = 131072,
288290

289291
Int1 = 131073,

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11

2+
declare class AXBrailleMap extends NSObject implements NSCopying, NSSecureCoding {
3+
4+
static alloc(): AXBrailleMap; // inherited from NSObject
5+
6+
static new(): AXBrailleMap; // inherited from NSObject
7+
8+
readonly dimensions: CGSize;
9+
10+
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
11+
12+
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
13+
14+
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
15+
16+
encodeWithCoder(coder: NSCoder): void;
17+
18+
heightAtPoint(point: CGPoint): number;
19+
20+
initWithCoder(coder: NSCoder): this;
21+
22+
presentImage(image: any): void;
23+
24+
setHeightAtPoint(status: number, point: CGPoint): void;
25+
}
26+
27+
interface AXBrailleMapRenderer extends NSObjectProtocol {
28+
29+
accessibilityBrailleMapRenderRegion: CGRect;
30+
31+
accessibilityBrailleMapRenderer: (p1: AXBrailleMap) => void;
32+
}
33+
declare var AXBrailleMapRenderer: {
34+
35+
prototype: AXBrailleMapRenderer;
36+
};
37+
238
declare class AXCategoricalDataAxisDescriptor extends NSObject implements AXDataAxisDescriptor {
339

440
static alloc(): AXCategoricalDataAxisDescriptor; // inherited from NSObject

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ declare const enum CLSErrorCode {
254254

255255
InvalidUpdate = 8,
256256

257-
PartialFailure = 9
257+
PartialFailure = 9,
258+
259+
InvalidAccountCredentials = 10
258260
}
259261

260262
declare var CLSErrorCodeDomain: string;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,12 +1596,16 @@ declare var kCGColorSpaceITUR_2020_PQ: string;
15961596

15971597
declare var kCGColorSpaceITUR_2020_PQ_EOTF: string;
15981598

1599+
declare var kCGColorSpaceITUR_2020_sRGBGamma: string;
1600+
15991601
declare var kCGColorSpaceITUR_2100_HLG: string;
16001602

16011603
declare var kCGColorSpaceITUR_2100_PQ: string;
16021604

16031605
declare var kCGColorSpaceITUR_709: string;
16041606

1607+
declare var kCGColorSpaceITUR_709_PQ: string;
1608+
16051609
declare var kCGColorSpaceLinearDisplayP3: string;
16061610

16071611
declare var kCGColorSpaceLinearGray: string;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,8 @@ declare const enum MLMultiArrayDataType {
586586

587587
Float32 = 65568,
588588

589+
Float16 = 65552,
590+
589591
Float = 65568,
590592

591593
Int32 = 131104

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,10 @@ declare const kCMVideoCodecType_DVCPro50PAL: number;
17271727

17281728
declare const kCMVideoCodecType_DVCProPAL: number;
17291729

1730+
declare const kCMVideoCodecType_DepthHEVC: number;
1731+
1732+
declare const kCMVideoCodecType_DisparityHEVC: number;
1733+
17301734
declare const kCMVideoCodecType_DolbyVisionHEVC: number;
17311735

17321736
declare const kCMVideoCodecType_H263: number;

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,18 @@ declare const kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange: number;
730730

731731
declare const kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange: number;
732732

733+
declare const kCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange: number;
734+
735+
declare const kCVPixelFormatType_Lossy_32BGRA: number;
736+
737+
declare const kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange: number;
738+
739+
declare const kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange: number;
740+
741+
declare const kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange: number;
742+
743+
declare const kCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange: number;
744+
733745
declare const kCVPixelFormatType_OneComponent10: number;
734746

735747
declare const kCVPixelFormatType_OneComponent12: number;

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ declare class ENExposureWindow extends NSObject {
246246
readonly infectiousness: ENInfectiousness;
247247

248248
readonly scanInstances: NSArray<ENScanInstance>;
249+
250+
readonly variantOfConcernType: ENVariantOfConcernType;
249251
}
250252

251253
declare const enum ENInfectiousness {
@@ -368,3 +370,16 @@ declare class ENTemporaryExposureKey extends NSObject {
368370

369371
transmissionRiskLevel: number;
370372
}
373+
374+
declare const enum ENVariantOfConcernType {
375+
376+
TypeUnknown = 0,
377+
378+
Type1 = 1,
379+
380+
Type2 = 2,
381+
382+
Type3 = 3,
383+
384+
Type4 = 4
385+
}

0 commit comments

Comments
 (0)
0