8000 feat(types-ios): iOS 15.2 by NathanWalker · Pull Request #9710 · NativeScript/NativeScript · GitHub
[go: up one dir, main page]

Skip to content

feat(types-ios): iOS 15.2 #9710

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/types-ios/src/lib/ios/ios.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
/// <reference path="objc-x86_64/objc!JavaScriptCore.d.ts" />
/// <reference path="objc-x86_64/objc!LinkPresentation.d.ts" />
/// <reference path="objc-x86_64/objc!LocalAuthentication.d.ts" />
/// <reference path="objc-x86_64/objc!MDFInternationalization.d.ts" />
/// <reference path="objc-x86_64/objc!MachO.d.ts" />
/// <reference path="objc-x86_64/objc!MapKit.d.ts" />
/// <reference path="objc-x86_64/objc!MediaAccessibility.d.ts" />
Expand Down
54 changes: 54 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!AVFoundation.d.ts
6DB6
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ declare var AVAssetExportPreset960x540: string;

declare var AVAssetExportPresetAppleM4A: string;

declare var AVAssetExportPresetAppleProRes422LPCM: string;

declare var AVAssetExportPresetAppleProRes4444LPCM: string;

declare var AVAssetExportPresetHEVC1920x1080: string;

declare var AVAssetExportPresetHEVC1920x1080WithAlpha: string;
Expand Down Expand Up @@ -1587,6 +1591,12 @@ declare class AVCaptureDevice extends NSObject {

activeMaxExposureDuration: CMTime;

readonly activePrimaryConstituentDevice: AVCaptureDevice;

readonly activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;

readonly activePrimaryConstituentDeviceSwitchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior;

activeVideoMaxFrameDuration: CMTime;

activeVideoMinFrameDuration: CMTime;
Expand Down Expand Up @@ -1629,6 +1639,8 @@ declare class AVCaptureDevice extends NSObject {

readonly exposureTargetOffset: number;

fallbackPrimaryConstituentDevices: NSArray<AVCaptureDevice>;

readonly flashActive: boolean;

readonly flashAvailable: boolean;
Expand Down Expand Up @@ -1689,6 +1701,10 @@ declare class AVCaptureDevice extends NSObject {

readonly position: AVCaptureDevicePosition;

readonly primaryConstituentDeviceRestrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;

readonly primaryConstituentDeviceSwitchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior;

readonly rampingVideoZoom: boolean;

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

subjectAreaChangeMonitoringEnabled: boolean;

readonly supportedFallbackPrimaryConstituentDevices: NSArray<AVCaptureDevice>;

readonly suspended: boolean;

readonly systemPressureState: AVCaptureSystemPressureState;
Expand Down Expand Up @@ -1761,6 +1779,8 @@ declare class AVCaptureDevice extends NSObject {

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

setPrimaryConstituentDeviceSwitchingBehaviorRestrictedSwitchingBehaviorConditions(switchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions): void;

setTorchModeOnWithLevelError(torchLevel: number): boolean;

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

readonly multiCamSupported: boolean;

readonly portraitEffectSupported: boolean;

readonly portraitEffectsMatteStillImageDeliverySupported: boolean;

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

readonly videoFrameRateRangeForCenterStage: AVFrameRateRange;

readonly videoFrameRateRangeForPortraitEffect: AVFrameRateRange;

readonly videoHDRSupported: boolean;

readonly videoMaxZoomFactor: number;
Expand Down Expand Up @@ -2105,12 +2129,20 @@ declare class AVCaptureMovieFileOutput extends AVCaptureFileOutput {

movieFragmentInterval: CMTime;

readonly primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions;

readonly primaryConstituentDeviceSwitchingBehaviorForRecording: AVCapturePrimaryConstituentDeviceSwitchingBehavior;

primaryConstituentDeviceSwitchingBehaviorForRecordingEnabled: boolean;

outputSettingsForConnection(connection: AVCaptureConnection): NSDictionary<string, any>;

recordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection(connection: AVCaptureConnection): boolean;

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

setPrimaryConstituentDeviceSwitchingBehaviorForRecordingRestrictedSwitchingBehaviorConditions(switchingBehavior: AVCapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions: AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions): void;

setRecordsVideoOrientationAndMirroringChangesAsMetadataTrackForConnection(doRecordChanges: boolean, connection: AVCaptureConnection): void;

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

declare const enum AVCapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions {

None = 0,

VideoZoomChanged = 1,

FocusModeChanged = 2,

ExposureModeChanged = 4
}

declare const enum AVCapturePrimaryConstituentDeviceSwitchingBehavior {

Unsupported = 0,

Auto = 1,

Restricted = 2,

Locked = 3
}

declare class AVCaptureResolvedPhotoSettings extends NSObject {

static alloc(): AVCaptureResolvedPhotoSettings; // inherited from NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ declare const enum BNNSDataType {

Float32 = 65568,

BFloat16 = 98320,

IntBit = 131072,

Int1 = 131073,
Expand Down
36 changes: 36 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!Accessibility.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@

declare class AXBrailleMap extends NSObject implements NSCopying, NSSecureCoding {

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

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

readonly dimensions: CGSize;

static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding

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

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

encodeWithCoder(coder: NSCoder): void;

heightAtPoint(point: CGPoint): number;

initWithCoder(coder: NSCoder): this;

presentImage(image: any): void;

setHeightAtPoint(status: number, point: CGPoint): void;
}

interface AXBrailleMapRenderer extends NSObjectProtocol {

accessibilityBrailleMapRenderRegion: CGRect;

accessibilityBrailleMapRenderer: (p1: AXBrailleMap) => void;
}
declare var AXBrailleMapRenderer: {

prototype: AXBrailleMapRenderer;
};

declare class AXCategoricalDataAxi F438 sDescriptor extends NSObject implements AXDataAxisDescriptor {

static alloc(): AXCategoricalDataAxisDescriptor; // inherited from NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ declare const enum CLSErrorCode {

InvalidUpdate = 8,

PartialFailure = 9
PartialFailure = 9,

InvalidAccountCredentials = 10
}

declare var CLSErrorCodeDomain: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1596,12 +1596,16 @@ declare var kCGColorSpaceITUR_2020_PQ: string;

declare var kCGColorSpaceITUR_2020_PQ_EOTF: string;

declare var kCGColorSpaceITUR_2020_sRGBGamma: string;

declare var kCGColorSpaceITUR_2100_HLG: string;

declare var kCGColorSpaceITUR_2100_PQ: string;

declare var kCGColorSpaceITUR_709: string;

declare var kCGColorSpaceITUR_709_PQ: string;

declare var kCGColorSpaceLinearDisplayP3: string;

declare var kCGColorSpaceLinearGray: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!CoreML.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ declare const enum MLMultiArrayDataType {

Float32 = 65568,

Float16 = 65552,

Float = 65568,

Int32 = 131104
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1727,6 +1727,10 @@ declare const kCMVideoCodecType_DVCPro50PAL: number;

declare const kCMVideoCodecType_DVCProPAL: number;

declare const kCMVideoCodecType_DepthHEVC: number;

declare const kCMVideoCodecType_DisparityHEVC: number;

declare const kCMVideoCodecType_DolbyVisionHEVC: number;

declare const kCMVideoCodecType_H263: number;
Expand Down
12 changes: 12 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!CoreVideo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,18 @@ declare const kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarFullRange: number;

declare const kCVPixelFormatType_Lossless_420YpCbCr8BiPlanarVideoRange: number;

declare const kCVPixelFormatType_Lossless_422YpCbCr10PackedBiPlanarVideoRange: number;

declare const kCVPixelFormatType_Lossy_32BGRA: number;

declare const kCVPixelFormatType_Lossy_420YpCbCr10PackedBiPlanarVideoRange: number;

declare const kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarFullRange: number;

declare const kCVPixelFormatType_Lossy_420YpCbCr8BiPlanarVideoRange: number;

declare const kCVPixelFormatType_Lossy_422YpCbCr10PackedBiPlanarVideoRange: number;

declare const kCVPixelFormatType_OneComponent10: number;

declare const kCVPixelFormatType_OneComponent12: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ declare class ENExposureWindow extends NSObject {
readonly infectiousness: ENInfectiousness;

readonly scanInstances: NSArray<ENScanInstance>;

readonly variantOfConcernType: ENVariantOfConcernType;
}

declare const enum ENInfectiousness {
Expand Down Expand Up @@ -368,3 +370,16 @@ declare class ENTemporaryExposureKey extends NSObject {

transmissionRiskLevel: number;
}

declare const enum ENVariantOfConcernType {

TypeUnknown = 0,

Type1 = 1,

Type2 = 2,

Type3 = 3,

Type4 = 4
}
12 changes: 0 additions & 12 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!Foundation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5221,10 +5221,6 @@ declare class NSLocale extends NSObject implements NSCopying, NSSecureCoding {

static localeWithLocaleIdentifier(ident: string): NSLocale;

static mdf_isDefaultLanguageLTR(): boolean;

static mdf_isDefaultLanguageRTL(): boolean;

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

static windowsLocaleCodeFromLocaleIdentifier(localeIdentifier: string): number;
Expand Down Expand Up @@ -9491,14 +9487,6 @@ declare class NSString extends NSObject implements CKRecordValue, CNKeyDescripto

maximumLengthOfBytesUsingEncoding(enc: number): number;

mdf_calculatedLanguageDirection(): NSLocaleLanguageDirection;

mdf_stringWithBidiEmbedding(languageDirection: NSLocaleLanguageDirection): string;

mdf_stringWithBidiMarkersStripped(): string;

mdf_stringWithStereoResetContext(direction: NSLocaleLanguageDirection, contextDirection: NSLocaleLanguageDirection): string;

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

paragraphRangeForRange(range: NSRange): NSRange;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,28 @@ declare class GCPhysicalInputProfile extends NSObject {
setStateFromPhysicalInput(physicalInput: GCPhysicalInputProfile): void;
}

declare var GCProductCategoryCoalescedRemote: string;

declare var GCProductCategoryControlCenterRemote: string;

declare var GCProductCategoryDualSense: string;

declare var GCProductCategoryDualShock4: string;

declare var GCProductCategoryKeyboard: string;

declare var GCProductCategoryMFi: string;

declare var GCProductCategoryMouse: string;

declare var GCProductCategorySiriRemote1stGen: string;

declare var GCProductCategorySiriRemote2ndGen: string;

declare var GCProductCategoryUniversalElectronicsRemote: string;

declare var GCProductCategoryXboxOne: string;

interface GCQuaternion {
x: number;
y: number;
Expand Down
Loading
0