8000 feat(types-ios): iOS 17 SDK (#10304) · NativeScript/NativeScript@fc172b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc172b3

Browse files
authored
feat(types-ios): iOS 17 SDK (#10304)
1 parent d3a0f2c commit fc172b3

File tree

102 files changed

+13055
-4846
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+13055
-4846
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
/// <reference path="objc-x86_64/objc!EventKit.d.ts" />
6565
/// <reference path="objc-x86_64/objc!EventKitUI.d.ts" />
6666
/// <reference path="objc-x86_64/objc!ExposureNotification.d.ts" />
67+
/// <reference path="objc-x86_64/objc!ExtensionKit.d.ts" />
6768
/// <reference path="objc-x86_64/objc!ExternalAccessory.d.ts" />
6869
/// <reference path="objc-x86_64/objc!FileProvider.d.ts" />
6970
/// <reference path="objc-x86_64/objc!FileProviderUI.d.ts" />
@@ -108,7 +109,6 @@
108109
/// <reference path="objc-x86_64/objc!NearbyInteraction.d.ts" />
109110
/// <reference path="objc-x86_64/objc!Network.d.ts" />
110111
/// <reference path="objc-x86_64/objc!NetworkExtension.d.ts" />
111-
/// <reference path="objc-x86_64/objc!NewsstandKit.d.ts" />
112112
/// <reference path="objc-x86_64/objc!NotificationCenter.d.ts" />
113113
/// <reference path="objc-x86_64/objc!OSLog.d.ts" />
114114
/// <reference path="objc-x86_64/objc!ObjectiveC.d.ts" />
@@ -134,6 +134,7 @@
134134
/// <reference path="objc-x86_64/objc!SceneKit.d.ts" />
135135
/// <reference path="objc-x86_64/objc!ScreenTime.d.ts" />
136136
/// <reference path="objc-x86_64/objc!Security.d.ts" />
137+
/// <reference path="objc-x86_64/objc!SensitiveContentAnalysis.d.ts" />
137138
/// <reference path="objc-x86_64/objc!SensorKit.d.ts" />
138139
/// <reference path="objc-x86_64/objc!SharedWithYou.d.ts" />
139140
/// <reference path="objc-x86_64/objc!SharedWithYouCore.d.ts" />
@@ -144,6 +145,7 @@
144145
/// <reference path="objc-x86_64/objc!Speech.d.ts" />
145146
/// <reference path="objc-x86_64/objc!SpriteKit.d.ts" />
146147
/// <reference path="objc-x86_64/objc!StoreKit.d.ts" />
148+
/// <reference path="objc-x86_64/objc!Symbols.d.ts" />
147149
/// <reference path="objc-x86_64/objc!SystemConfiguration.d.ts" />
148150
/// <reference path="objc-x86_64/objc!TNSWidgets.d.ts" />
149151
/// <reference path="objc-x86_64/objc!Twitter.d.ts" />
@@ -170,5 +172,6 @@
170172
/// <reference path="objc-x86_64/objc!os.d.ts" />
171173
/// <reference path="objc-x86_64/objc!os_object.d.ts" />
172174
/// <reference path="objc-x86_64/objc!os_workgroup.d.ts" />
175+
/// <reference path="objc-x86_64/objc!rpc.d.ts" />
173176
/// <reference path="objc-x86_64/objc!simd.d.ts" />
174177
/// <reference path="objc-x86_64/objc!zlib.d.ts" />

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

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

17211721
delegate: ARSessionDelegate;
17221722

1723-
delegateQueue: NSObject;
1724-
17251723
readonly identifier: NSUUID;
17261724

17271725
addAnchor(anchor: ARAnchor): void;

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

Lines changed: 125 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,36 @@ interface AVAudio3DVectorOrientation {
9494
}
9595
declare var AVAudio3DVectorOrientation: interop.StructType<AVAudio3DVectorOrientation>;
9696

97+
declare class AVAudioApplication extends NSObject {
98+
99+
static alloc(): AVAudioApplication; // inherited from NSObject
100+
101+
static new(): AVAudioApplication; // inherited from NSObject
102+
103+
static requestRecordPermissionWithCompletionHandler(response: (p1: boolean) => void): void;
104+
105+
readonly inputMuted: boolean;
106+
107+
readonly recordPermission: AVAudioApplicationRecordPermission;
108+
109+
static readonly sharedInstance: AVAudioApplication;
110+
111+
setInputMutedError(muted: boolean): boolean;
112+
}
113+
114+
declare var AVAudioApplicationInputMuteStateChangeNotification: string;
115+
116+
declare var AVAudioApplicationMuteStateKey: string;
117+
118+
declare const enum AVAudioApplicationRecordPermission {
119+
120+
Undetermined = 1970168948,
121+
122+
Denied = 1684369017,
123+
124+
Granted = 1735552628
125+
}
126+
97127
declare var AVAudioBitRateStrategy_Constant: string;
98128

99129
declare var AVAudioBitRateStrategy_LongTermAverage: string;
@@ -679,6 +709,8 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
679709

680710
voiceProcessingInputMuted: boolean;
681711

712+
voiceProcessingOtherAudioDuckingConfiguration: AVAudioVoiceProcessingOtherAudioDuckingConfiguration;
713+
682714
readonly debugDescription: string; // inherited from NSObjectProtocol
683715

684716
readonly description: string; // inherited from NSObjectProtocol
@@ -736,6 +768,8 @@ declare class AVAudioInputNode extends AVAudioIONode implements AVAudioMixing {
736768
self(): this;
737769

738770
setManualRenderingInputPCMFormatInputBlock(format: AVAudioFormat, block: (p1: number) => interop.Pointer | interop.Reference<AudioBufferList>): boolean;
771+
772+
setMutedSpeechActivityEventListener(listenerBlock: (p1: AVAudioVoiceProcessingSpeechActivityEvent) => void): boolean;
739773
}
740774

741775
declare class AVAudioMixerNode extends AVAudioNode implements AVAudioMixing {
@@ -1434,6 +1468,8 @@ declare class AVAudioSession extends NSObject {
14341468

14351469
readonly preferredSampleRate: number;
14361470

1471+
readonly prefersInterruptionOnRouteDisconnect: boolean;
1472+
14371473
readonly prefersNoInterruptionsFromSystemAlerts: boolean;
14381474

14391475
readonly promptStyle: AVAudioSessionPromptStyle;
@@ -1494,6 +1530,8 @@ declare class AVAudioSession extends NSObject {
14941530

14951531
setPreferredSampleRateError(sampleRate: number): boolean;
14961532

1533+
setPrefersInterruptionOnRouteDisconnectError(inValue: boolean): boolean;
1534+
14971535
setPrefersNoInterruptionsFromSystemAlertsError(inValue: boolean): boolean;
14981536

14991537
setSupportsMultichannelContentError(inValue: boolean): boolean;
@@ -1614,7 +1652,9 @@ declare const enum AVAudioSessionInterruptionReason {
16141652

16151653
AppWasSuspended = 1,
16161654

1617-
BuiltInMicMuted = 2
1655+
BuiltInMicMuted = 2,
1656+
1657+
RouteDisconnected = 4
16181658
}
16191659

16201660
declare var AVAudioSessionInterruptionReasonKey: string;
@@ -1694,6 +1734,8 @@ declare var AVAudioSessionPortBuiltInSpeaker: string;
16941734

16951735
declare var AVAudioSessionPortCarAudio: string;
16961736

1737+
declare var AVAudioSessionPortContinuityMicrophone: string;
1738+
16971739
declare class AVAudioSessionPortDescription extends NSObject {
16981740

16991741
static alloc(): AVAudioSessionPortDescription; // inherited from NSObject
@@ -2287,72 +2329,16 @@ declare class AVAudioUnitGenerator extends AVAudioUnit implements AVAudioMixing
22872329
self(): this;
22882330
}
22892331

2290-
declare class AVAudioUnitMIDIInstrument extends AVAudioUnit implements AVAudioMixing {
2332+
declare class AVAudioUnitMIDIInstrument extends AVAudioUnit {
22912333

22922334
static alloc(): AVAudioUnitMIDIInstrument; // inherited from NSObject
22932335

22942336
static new(): AVAudioUnitMIDIInstrument; // inherited from NSObject
22952337

2296-
readonly debugDescription: string; // inherited from NSObjectProtocol
2297-
2298-
readonly description: string; // inherited from NSObjectProtocol
2299-
2300-
readonly hash: number; // inherited from NSObjectProtocol
2301-
2302-
readonly isProxy: boolean; // inherited from NSObjectProtocol
2303-
2304-
obstruction: number; // inherited from AVAudio3DMixing
2305-
2306-
occlusion: number; // inherited from AVAudio3DMixing
2307-
2308-
pan: number; // inherited from AVAudioStereoMixing
2309-
2310-
pointSourceInHeadMode: AVAudio3DMixingPointSourceInHeadMode; // inherited from AVAudio3DMixing
2311-
2312-
position: AVAudio3DPoint; // inherited from AVAudio3DMixing
2313-
2314-
rate: number; // inherited from AVAudio3DMixing
2315-
2316-
renderingAlgorithm: AVAudio3DMixingRenderingAlgorithm; // inherited from AVAudio3DMixing
2317-
2318-
reverbBlend: number; // inherited from AVAudio3DMixing
2319-
2320-
sourceMode: AVAudio3DMixingSourceMode; // inherited from AVAudio3DMixing
2321-
2322-
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
2323-
2324-
volume: number; // inherited from AVAudioMixing
2325-
2326-
readonly // inherited from NSObjectProtocol
2327-
23282338
constructor(o: { audioComponentDescription: AudioComponentDescription; });
23292339

2330-
class(): typeof NSObject;
2331-
2332-
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
2333-
2334-
destinationForMixerBus(mixer: AVAudioNode, bus: number): AVAudioMixingDestination;
2335-
23362340
initWithAudioComponentDescription(description: AudioComponentDescription): this;
23372341

2338-
isEqual(object: any): boolean;
2339-
2340-
isKindOfClass(aClass: typeof NSObject): boolean;
2341-
2342-
isMemberOfClass(aClass: typeof NSObject): boolean;
2343-
2344-
performSelector(aSelector: string): any;
2345-
2346-
performSelectorWithObject(aSelector: string, object: any): any;
2347-
2348-
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
2349-
2350-
respondsToSelector(aSelector: string): boolean;
2351-
2352-
retainCount(): number;
2353-
2354-
self(): this;
2355-
23562342
sendControllerWithValueOnChannel(controller: number, value: number, channel: number): void;
23572343

23582344
sendMIDIEventData1(midiStatus: number, data1: number): void;
@@ -2496,6 +2482,30 @@ declare class AVAudioUnitVarispeed extends AVAudioUnitTimeEffect {
24962482
rate: number;
24972483
}
24982484

2485+
interface AVAudioVoiceProcessingOtherAudioDuckingConfiguration {
2486+
enableAdvancedDucking: boolean;
2487+
duckingLevel: AVAudioVoiceProcessingOtherAudioDuckingLevel;
2488+
}
2489+
declare var AVAudioVoiceProcessingOtherAudioDuckingConfiguration: interop.StructType<AVAudioVoiceProcessingOtherAudioDuckingConfiguration>;
2490+
2491+
declare const enum AVAudioVoiceProcessingOtherAudioDuckingLevel {
2492+
2493+
Default = 0,
2494+
2495+
Min = 10,
2496+
2497+
Mid = 20,
2498+
2499+
Max = 30
2500+
}
2501+
2502+
declare const enum AVAudioVoiceProcessingSpeechActivityEvent {
2503+
2504+
Started = 0,
2505+
2506+
Ended = 1
2507+
}
2508+
24992509
interface AVBeatRange {
25002510
start: number;
25012511
length: number;
@@ -2943,6 +2953,8 @@ declare const enum AVSpeechBoundary {
29432953
Word = 1
29442954
}
29452955

2956+
declare var AVSpeechSynthesisAvailableVoicesDidChangeNotification: string;
2957+
29462958
declare var AVSpeechSynthesisIPANotationAttribute: string;
29472959

29482960
declare class AVSpeechSynthesisMarker extends NSObject implements NSCopying, NSSecureCoding {
@@ -2951,25 +2963,49 @@ declare class AVSpeechSynthesisMarker extends NSObject implements NSCopying, NSS
29512963

29522964
static new(): AVSpeechSynthesisMarker; // inherited from NSObject
29532965

2966+
bookmarkName: string;
2967+
29542968
byteSampleOffset: number;
29552969

29562970
mark: AVSpeechSynthesisMarkerMark;
29572971

2972+
phoneme: string;
2973+
29582974
textRange: NSRange;
29592975

29602976
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
29612977

2978+
constructor(o: { bookmarkName: string; atByteSampleOffset: number; });
2979+
29622980
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
29632981

29642982
constructor(o: { markerType: AVSpeechSynthesisMarkerMark; forTextRange: NSRange; atByteSampleOffset: number; });
29652983

2984+
constructor(o: { paragraphRange: NSRange; atByteSampleOffset: number; });
2985+
2986+
constructor(o: { phonemeString: string; atByteSampleOffset: number; });
2987+
2988+
constructor(o: { sentenceRange: NSRange; atByteSampleOffset: number; });
2989+
2990+
constructor(o: { wordRange: NSRange; atByteSampleOffset: number; });
2991+
29662992
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
29672993

29682994
encodeWithCoder(coder: NSCoder): void;
29692995

2996+
initWithBookmarkNameAtByteSampleOffset(mark: string, byteSampleOffset: number): this;
2997+
29702998
initWithCoder(coder: NSCoder): this;
29712999

29723000
initWithMarkerTypeForTextRangeAtByteSampleOffset(type: AVSpeechSynthesisMarkerMark, range: NSRange, byteSampleOffset: number): this;
3001+
3002+
initWithParagraphRangeAtByteSampleOffset(range: NSRange, byteSampleOffset: number): this;
3003+
3004+
initWithPhonemeStringAtByteSampleOffset(phoneme: string, byteSampleOffset: number): this;
3005+
3006+
initWithSentenceRangeAtByteSampleOffset(range: NSRange, byteSampleOffset: number): this;
3007+
3008+
initWithWordRangeAtByteSampleOffset(range: NSRange, byteSampleOffset: number): this;
29733009
}
29743010

29753011
declare const enum AVSpeechSynthesisMarkerMark {
@@ -2980,7 +3016,20 @@ declare const enum AVSpeechSynthesisMarkerMark {
29803016

29813017
Sentence = 2,
29823018

2983-
Paragraph = 3
3019+
Paragraph = 3,
3020+
3021+
Bookmark = 4
3022+
}
3023+
3024+
declare const enum AVSpeechSynthesisPersonalVoiceAuthorizationStatus {
3025+
3026+
NotDetermined = 0,
3027+
3028+
Denied = 1,
3029+
3030+
Unsupported = 2,
3031+
3032+
Authorized = 3
29843033
}
29853034

29863035
declare class AVSpeechSynthesisProviderAudioUnit extends AUAudioUnit {
@@ -3088,6 +3137,8 @@ declare class AVSpeechSynthesisVoice extends NSObject implements NSSecureCoding
30883137

30893138
readonly quality: AVSpeechSynthesisVoiceQuality;
30903139

3140+
readonly voiceTraits: AVSpeechSynthesisVoiceTraits;
3141+
30913142
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
30923143

30933144
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
@@ -3117,12 +3168,23 @@ declare const enum AVSpeechSynthesisVoiceQuality {
31173168
Premium = 3
31183169
}
31193170

3171+
declare const enum AVSpeechSynthesisVoiceTraits {
3172+
3173+
None = 0,
3174+
3175+
IsNoveltyVoice = 1,
3176+
3177+
IsPersonalVoice = 2
3178+
}
3179+
31203180
declare class AVSpeechSynthesizer extends NSObject {
31213181

31223182
static alloc(): AVSpeechSynthesizer; // inherited from NSObject
31233183

31243184
static new(): AVSpeechSynthesizer; // inherited from NSObject
31253185

3186+
static requestPersonalVoiceAuthorizationWithCompletionHandler(handler: (p1: AVSpeechSynthesisPersonalVoiceAuthorizationStatus) => void): void;
3187+
31263188
delegate: AVSpeechSynthesizerDelegate;
31273189

31283190
mixToTelephonyUplink: boolean;
@@ -3135,6 +3197,8 @@ declare class AVSpeechSynthesizer extends NSObject {
31353197

31363198
usesApplicationAudioSession: boolean;
31373199

3200+
static readonly personalVoiceAuthorizationStatus: AVSpeechSynthesisPersonalVoiceAuthorizationStatus;
3201+
31383202
continueSpeaking(): boolean;
31393203

31403204
pauseSpeakingAtBoundary(boundary: AVSpeechBoundary): boolean;
@@ -3160,6 +3224,8 @@ interface AVSpeechSynthesizerDelegate extends NSObjectProtocol {
31603224

31613225
speechSynthesizerDidStartSpeechUtterance?(synthesizer: AVSpeechSynthesizer, utterance: AVSpeechUtterance): void;
31623226

3227+
speechSynthesizerWillSpeakMarkerUtterance?(synthesizer: AVSpeechSynthesizer, marker: AVSpeechSynthesisMarker, utterance: AVSpeechUtterance): void;
3228+
31633229
speechSynthesizerWillSpeakRangeOfSpeechStringUtterance?(synthesizer: AVSpeechSynthesizer, characterRange: NSRange, utterance: AVSpeechUtterance): void;
31643230
}
31653231
declare var AVSpeechSynthesizerDelegate: {

0 commit comments

Comments
 (0)
0