@@ -121,6 +121,11 @@ declare class AVAudioApplication extends NSObject {
121121
122122 static new ( ) : AVAudioApplication ; // inherited from NSObject
123123
124+ /**
125+ * @since 18.2
126+ */
127+ static requestMicrophoneInjectionPermissionWithCompletionHandler ( response : ( p1 : AVAudioApplicationMicrophoneInjectionPermission ) => void ) : void ;
128+
124129 /**
125130 * @since 17.0
126131 */
@@ -131,6 +136,11 @@ declare class AVAudioApplication extends NSObject {
131136 */
132137 readonly inputMuted : boolean ;
133138
139+ /**
140+ * @since 18.2
141+ */
142+ readonly microphoneInjectionPermission : AVAudioApplicationMicrophoneInjectionPermission ;
143+
134144 /**
135145 * @since 17.0
136146 */
@@ -149,6 +159,17 @@ declare class AVAudioApplication extends NSObject {
149159 */
150160declare var AVAudioApplicationInputMuteStateChangeNotification : string ;
151161
162+ declare const enum AVAudioApplicationMicrophoneInjectionPermission {
163+
164+ ServiceDisabled = 1936876659 ,
165+
166+ Undetermined = 1970168948 ,
167+
168+ Denied = 1684369017 ,
169+
170+ Granted = 1735552628
171+ }
172+
152173/**
153174 * @since 17.0
154175 */
@@ -2039,6 +2060,21 @@ declare class AVAudioSession extends NSObject {
20392060 */
20402061 readonly inputOrientation : AVAudioStereoOrientation ;
20412062
2063+ /**
2064+ * @since 18.2
2065+ */
2066+ readonly isEchoCancelledInputAvailable : boolean ;
2067+
2068+ /**
2069+ * @since 18.2
2070+ */
2071+ readonly isEchoCancelledInputEnabled : boolean ;
2072+
2073+ /**
2074+ * @since 18.2
2075+ */
2076+ readonly isMicrophoneInjectionAvailable : boolean ;
2077+
20422078 /**
20432079 * @since 7.0
20442080 */
@@ -2110,6 +2146,11 @@ declare class AVAudioSession extends NSObject {
21102146 */
21112147 readonly preferredInputOrientation : AVAudioStereoOrientation ;
21122148
2149+ /**
2150+ * @since 18.2
2151+ */
2152+ readonly preferredMicrophoneInjectionMode : AVAudioSessionMicrophoneInjectionMode ;
2153+
21132154 /**
21142155 * @since 7.0
21152156 */
@@ -2120,6 +2161,11 @@ declare class AVAudioSession extends NSObject {
21202161 */
21212162 readonly preferredSampleRate : number ;
21222163
2164+ /**
2165+ * @since 18.2
2166+ */
2167+ readonly prefersEchoCancelledInput : boolean ;
2168+
21232169 /**
21242170 * @since 17.0
21252171 */
@@ -2276,6 +2322,11 @@ declare class AVAudioSession extends NSObject {
22762322 */
22772323 setPreferredInputOrientationError ( orientation : AVAudioStereoOrientation ) : boolean ;
22782324
2325+ /**
2326+ * @since 18.2
2327+ */
2328+ setPreferredMicrophoneInjectionModeError ( inValue : AVAudioSessionMicrophoneInjectionMode ) : boolean ;
2329+
22792330 /**
22802331 * @since 7.0
22812332 */
@@ -2286,6 +2337,11 @@ declare class AVAudioSession extends NSObject {
22862337 */
22872338 setPreferredSampleRateError ( sampleRate : number ) : boolean ;
22882339
2340+ /**
2341+ * @since 18.2
2342+ */
2343+ setPrefersEchoCancelledInputError ( value : boolean ) : boolean ;
2344+
22892345 /**
22902346 * @since 17.0
22912347 */
@@ -2542,6 +2598,23 @@ declare var AVAudioSessionMediaServicesWereLostNotification: string;
25422598 */
25432599declare var AVAudioSessionMediaServicesWereResetNotification : string ;
25442600
2601+ /**
2602+ * @since 18.2
2603+ */
2604+ declare var AVAudioSessionMicrophoneInjectionCapabilitiesChangeNotification : string ;
2605+
2606+ /**
2607+ * @since 18.2
2608+ */
2609+ declare var AVAudioSessionMicrophoneInjectionIsAvailableKey : string ;
2610+
2611+ declare const enum AVAudioSessionMicrophoneInjectionMode {
2612+
2613+ None = 0 ,
2614+
2615+ SpokenAudio = 1
2616+ }
2617+
25452618/**
25462619 * @since 5.0
25472620 */
0 commit comments