Skip to content

Commit 204e876

Browse files
authored
feat(types-ios): iOS 16.4 types (NativeScript#10287)
1 parent ab32aea commit 204e876

38 files changed

+28495
-11925
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
/// <reference path="objc-x86_64/objc!RoomPlan.d.ts" />
131131
/// <reference path="objc-x86_64/objc!SQLite3.d.ts" />
132132
/// <reference path="objc-x86_64/objc!SafariServices.d.ts" />
133+
/// <reference path="objc-x86_64/objc!SafetyKit.d.ts" />
133134
/// <reference path="objc-x86_64/objc!SceneKit.d.ts" />
134135
/// <reference path="objc-x86_64/objc!ScreenTime.d.ts" />
135136
/// <reference path="objc-x86_64/objc!Security.d.ts" />
@@ -162,6 +163,7 @@
162163
/// <reference path="objc-x86_64/objc!dnssd.d.ts" />
163164
/// <reference path="objc-x86_64/objc!iAd.d.ts" />
164165
/// <reference path="objc-x86_64/objc!libkern.d.ts" />
166+
/// <reference path="objc-x86_64/objc!libunwind.d.ts" />
165167
/// <reference path="objc-x86_64/objc!libxml2.d.ts" />
166168
/// <reference path="objc-x86_64/objc!networkext.d.ts" />
167169
/// <reference path="objc-x86_64/objc!notify.d.ts" />

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

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,8 @@ declare class AVCaptureDevice extends NSObject {
16591659

16601660
readonly centerStageActive: boolean;
16611661

1662+
centerStageRectOfInterest: CGRect;
1663+
16621664
readonly companionDeskViewCamera: AVCaptureDevice;
16631665

16641666
readonly connected: boolean;
@@ -1801,7 +1803,7 @@ declare class AVCaptureDevice extends NSObject {
18011803

18021804
static readonly preferredMicrophoneMode: AVCaptureMicrophoneMode;
18031805

1804-
static studioLightEnabled: boolean;
1806+
static readonly studioLightEnabled: boolean;
18051807

18061808
cancelVideoZoomRamp(): void;
18071809

@@ -3679,7 +3681,11 @@ declare const enum AVError {
36793681

36803682
FailedToLoadSampleData = -11881,
36813683

3682-
AirPlayReceiverTemporarilyUnavailable = -11882
3684+
AirPlayReceiverTemporarilyUnavailable = -11882,
3685+
3686+
EncodeFailed = -11883,
3687+
3688+
SandboxExtensionDenied = -11884
36833689
}
36843690

36853691
declare var AVErrorDeviceKey: string;
@@ -6164,6 +6170,8 @@ declare class AVPlayerInterstitialEvent extends NSObject implements NSCopying {
61646170

61656171
alignsStartWithPrimarySegmentBoundary: boolean;
61666172

6173+
readonly assetListResponse: NSDictionary<any, any>;
6174+
61676175
cue: string;
61686176

61696177
date: Date;
@@ -6189,6 +6197,15 @@ declare class AVPlayerInterstitialEvent extends NSObject implements NSCopying {
61896197
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
61906198
}
61916199

6200+
declare const enum AVPlayerInterstitialEventAssetListResponseStatus {
6201+
6202+
Available = 0,
6203+
6204+
Cleared = 1,
6205+
6206+
Unavailable = 2
6207+
}
6208+
61926209
declare class AVPlayerInterstitialEventController extends AVPlayerInterstitialEventMonitor {
61936210

61946211
static alloc(): AVPlayerInterstitialEventController; // inherited from NSObject
@@ -6229,6 +6246,14 @@ declare class AVPlayerInterstitialEventMonitor extends NSObject {
62296246
initWithPrimaryPlayer(primaryPlayer: AVPlayer): this;
62306247
}
62316248

6249+
declare var AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeErrorKey: string;
6250+
6251+
declare var AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeEventKey: string;
6252+
6253+
declare var AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeNotification: string;
6254+
6255+
declare var AVPlayerInterstitialEventMonitorAssetListResponseStatusDidChangeStatusKey: string;
6256+
62326257
declare var AVPlayerInterstitialEventMonitorCurrentEventDidChangeNotification: string;
62336258

62346259
declare var AVPlayerInterstitialEventMonitorEventsDidChangeNotification: string;

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,15 @@ declare const enum BNNSActivationFunction {
7878

7979
HardSwish = 30,
8080

81-
SiLU = 31
81+
SiLU = 31,
82+
83+
ReLU6 = 32,
84+
85+
Erf = 33,
86+
87+
GELU = 34,
88+
89+
GELUApproximationSigmoid = 35
8290
}
8391

8492
declare function BNNSApplyMultiheadAttention(F: interop.Pointer | interop.Reference<any>, batch_size: number, query: interop.Pointer | interop.Reference<any>, query_stride: number, key: interop.Pointer | interop.Reference<any>, key_stride: number, key_mask: interop.Pointer | interop.Reference<BNNSNDArrayDescriptor>, key_mask_stride: number, value: interop.Pointer | interop.Reference<any>, value_stride: number, output: interop.Pointer | interop.Reference<any>, output_stride: number, add_to_attention: interop.Pointer | interop.Reference<BNNSNDArrayDescriptor>, backprop_cache_size: interop.Pointer | interop.Reference<number>, backprop_cache: interop.Pointer | interop.Reference<any>, workspace_size: interop.Pointer | interop.Reference<number>, workspace: interop.Pointer | interop.Reference<any>): number;
@@ -1205,6 +1213,8 @@ declare const enum BNNSReduceFunction {
12051213

12061214
None = 15,
12071215

1216+
LogSum = 16,
1217+
12081218
Any = 10,
12091219

12101220
All = 11
@@ -1247,7 +1257,11 @@ declare const enum BNNSShuffleType {
12471257

12481258
PixelShuffleNCHW = 0,
12491259

1250-
PixelUnshuffleNCHW = 1
1260+
PixelUnshuffleNCHW = 1,
1261+
1262+
DepthToSpaceNCHW = 2,
1263+
1264+
SpaceToDepthNCHW = 3
12511265
}
12521266

12531267
interface BNNSSparsityParameters {

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,6 +1508,15 @@ declare class ASAuthorizationSingleSignOnRequest extends ASAuthorizationOpenIDRe
15081508
userInterfaceEnabled: boolean;
15091509
}
15101510

1511+
declare const enum ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState {
1512+
1513+
Authorized = 0,
1514+
1515+
Denied = 1,
1516+
1517+
NotDetermined = 2
1518+
}
1519+
15111520
declare var ASCOSEAlgorithmIdentifierES256: number;
15121521

15131522
declare var ASCOSEEllipticCurveIdentifierP256: number;

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ declare class BAAppExtensionInfo extends NSObject implements NSSecureCoding {
77

88
readonly restrictedDownloadSizeRemaining: number;
99

10+
readonly restrictedEssentialDownloadSizeRemaining: number;
11+
1012
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
1113

1214
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
@@ -33,6 +35,8 @@ declare class BADownload extends NSObject implements NSCoding, NSCopying, NSSecu
3335

3436
readonly identifier: string;
3537

38+
readonly isEssential: boolean;
39+
3640
readonly priority: number;
3741

3842
readonly state: BADownloadState;
@@ -43,6 +47,8 @@ declare class BADownload extends NSObject implements NSCoding, NSCopying, NSSecu
4347

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

50+
copyAsNonEssential(): this;
51+
4652
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
4753

4854
encodeWithCoder(coder: NSCoder): void;
@@ -62,6 +68,8 @@ declare class BADownloadManager extends NSObject {
6268

6369
cancelDownloadError(download: BADownload): boolean;
6470

71+
fetchCurrentDownloads(): NSArray<BADownload>;
72+
6573
fetchCurrentDownloadsWithCompletionHandler(completionHandler: (p1: NSArray<BADownload>, p2: NSError) => void): void;
6674

6775
performWithExclusiveControl(performHandler: (p1: boolean, p2: NSError) => void): void;
@@ -128,7 +136,7 @@ declare var BADownloaderPriorityMax: number;
128136

129137
declare var BADownloaderPriorityMin: number;
130138

131-
declare class BAURLDownload extends BADownload {
139+
declare class BAURLDownload extends BADownload implements NSCopying {
132140

133141
static alloc(): BAURLDownload; // inherited from NSObject
134142

@@ -138,7 +146,17 @@ declare class BAURLDownload extends BADownload {
138146

139147
constructor(o: { identifier: string; request: NSURLRequest; applicationGroupIdentifier: string; priority: number; });
140148

149+
constructor(o: { identifier: string; request: NSURLRequest; essential: boolean; fileSize: number; applicationGroupIdentifier: string; priority: number; });
150+
151+
constructor(o: { identifier: string; request: NSURLRequest; fileSize: number; applicationGroupIdentifier: string; });
152+
153+
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
154+
141155
initWithIdentifierRequestApplicationGroupIdentifier(identifier: string, request: NSURLRequest, applicationGroupIdentifier: string): this;
142156

143157
initWithIdentifierRequestApplicationGroupIdentifierPriority(identifier: string, request: NSURLRequest, applicationGroupIdentifier: string, priority: number): this;
158+
159+
initWithIdentifierRequestEssentialFileSizeApplicationGroupIdentifierPriority(identifier: string, request: NSURLRequest, essential: boolean, fileSize: number, applicationGroupIdentifier: string, priority: number): this;
160+
161+
initWithIdentifierRequestFileSizeApplicationGroupIdentifier(identifier: string, request: NSURLRequest, fileSize: number, applicationGroupIdentifier: string): this;
144162
}

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

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ declare class CPInformationRatingItem extends CPInformationItem {
524524
initWithRatingMaximumRatingTitleDetail(rating: number, maximumRating: number, title: string, detail: string): this;
525525
}
526526

527-
declare class CPInformationTemplate extends CPTemplate {
527+
declare class CPInformationTemplate extends CPTemplate implements CPBarButtonProviding {
528528

529529
static alloc(): CPInformationTemplate; // inherited from NSObject
530530

@@ -538,9 +538,49 @@ declare class CPInformationTemplate extends CPTemplate {
538538

539539
title: string;
540540

541+
backButton: CPBarButton; // inherited from CPBarButtonProviding
542+
543+
readonly debugDescription: string; // inherited from NSObjectProtocol
544+
545+
readonly description: string; // inherited from NSObjectProtocol
546+
547+
readonly hash: number; // inherited from NSObjectProtocol
548+
549+
readonly isProxy: boolean; // inherited from NSObjectProtocol
550+
551+
leadingNavigationBarButtons: NSArray<CPBarButton>; // inherited from CPBarButtonProviding
552+
553+
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
554+
555+
trailingNavigationBarButtons: NSArray<CPBarButton>; // inherited from CPBarButtonProviding
556+
557+
readonly // inherited from NSObjectProtocol
558+
541559
constructor(o: { title: string; layout: CPInformationTemplateLayout; items: NSArray<CPInformationItem> | CPInformationItem[]; actions: NSArray<CPTextButton> | CPTextButton[]; });
542560

561+
class(): typeof NSObject;
562+
563+
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
564+
543565
initWithTitleLayoutItemsActions(title: string, layout: CPInformationTemplateLayout, items: NSArray<CPInformationItem> | CPInformationItem[], actions: NSArray<CPTextButton> | CPTextButton[]): this;
566+
567+
isEqual(object: any): boolean;
568+
569+
isKindOfClass(aClass: typeof NSObject): boolean;
570+
571+
isMemberOfClass(aClass: typeof NSObject): boolean;
572+
573+
performSelector(aSelector: string): any;
574+
575+
performSelectorWithObject(aSelector: string, object: any): any;
576+
577+
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
578+
579+
respondsToSelector(aSelector: string): boolean;
580+
581+
retainCount(): number;
582+
583+
self(): this;
544584
}
545585

546586
declare const enum CPInformationTemplateLayout {

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3213,6 +3213,8 @@ declare var kCFURLFileDirectoryContents: string;
32133213

32143214
declare var kCFURLFileExists: string;
32153215

3216+
declare var kCFURLFileIdentifierKey: string;
3217+
32163218
declare var kCFURLFileLastModificationTime: string;
32173219

32183220
declare var kCFURLFileLength: string;
@@ -3395,10 +3397,14 @@ declare var kCFURLVolumeLocalizedNameKey: string;
33953397

33963398
declare var kCFURLVolumeMaximumFileSizeKey: string;
33973399

3400+
declare var kCFURLVolumeMountFromLocationKey: string;
3401+
33983402
declare var kCFURLVolumeNameKey: string;
33993403

34003404
declare var kCFURLVolumeResourceCountKey: string;
34013405

3406+
declare var kCFURLVolumeSubtypeKey: string;
3407+
34023408
declare var kCFURLVolumeSupportsAccessPermissionsKey: string;
34033409

34043410
declare var kCFURLVolumeSupportsAdvisoryFileLockingKey: string;
@@ -3441,6 +3447,8 @@ declare var kCFURLVolumeSupportsZeroRunsKey: string;
34413447

34423448
declare var kCFURLVolumeTotalCapacityKey: string;
34433449

3450+
declare var kCFURLVolumeTypeNameKey: string;
3451+
34443452
declare var kCFURLVolumeURLForRemountingKey: string;
34453453

34463454
declare var kCFURLVolumeURLKey: string;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,9 @@ declare const enum CLLocationPushServiceError {
584584

585585
MissingPushServerEnvironment = 2,
586586

587-
MissingEntitlement = 3
587+
MissingEntitlement = 3,
588+
589+
UnsupportedPlatform = 4
588590
}
589591

590592
declare var CLLocationPushServiceErrorDomain: string;

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6021,6 +6021,13 @@ declare function creat(p1: string | interop.Pointer | interop.Reference<any>, p2
60216021

60226022
declare function crypt(p1: string | interop.Pointer | interop.Reference<any>, p2: string | interop.Pointer | interop.Reference<any>): string;
60236023

6024+
declare const enum cryptex_auth_type_t {
6025+
6026+
CRYPTEX1_AUTH_ENV_GENERIC = 4,
6027+
6028+
CRYPTEX1_AUTH_ENV_GENERIC_SUPPLEMENTAL = 5
6029+
}
6030+
60246031
declare function ctermid(p1: string | interop.Pointer | interop.Reference<any>): string;
60256032

60266033
declare function ctermid_r(p1: string | interop.Pointer | interop.Reference<any>): string;
@@ -8805,6 +8812,8 @@ declare const enum mach_port_guard_exception_codes {
88058812

88068813
kGUARD_EXC_SET_CONTEXT = 4,
88078814

8815+
kGUARD_EXC_THREAD_SET_STATE = 5,
8816+
88088817
kGUARD_EXC_UNGUARDED = 8,
88098818

88108819
kGUARD_EXC_INCORRECT_GUARD = 16,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ declare class NSFileProviderDomain extends NSObject {
6868

6969
readonly userEnabled: boolean;
7070

71+
readonly volumeUUID: NSUUID;
72+
7173
constructor(o: { identifier: string; displayName: string; });
7274

7375
constructor(o: { identifier: string; displayName: string; pathRelativeToDocumentStorage: string; });

0 commit comments

Comments
 (0)