@@ -121,6 +121,11 @@ declare class AVAudioApplication extends NSObject {
121
121
122
122
static new ( ) : AVAudioApplication ; // inherited from NSObject
123
123
124
+ /**
125
+ * @since 18.2
126
+ */
127
+ static requestMicrophoneInjectionPermissionWithCompletionHandler ( response : ( p1 : AVAudioApplicationMicrophoneInjectionPermission ) => void ) : void ;
128
+
124
129
/**
125
130
* @since 17.0
126
131
*/
@@ -131,6 +136,11 @@ declare class AVAudioApplication extends NSObject {
131
136
*/
132
137
readonly inputMuted : boolean ;
133
138
139
+ /**
140
+ * @since 18.2
141
+ */
142
+ readonly microphoneInjectionPermission : AVAudioApplicationMicrophoneInjectionPermission ;
143
+
134
144
/**
135
145
* @since 17.0
136
146
*/
@@ -149,6 +159,17 @@ declare class AVAudioApplication extends NSObject {
149
159
*/
150
160
declare var AVAudioApplicationInputMuteStateChangeNotification : string ;
151
161
162
+ declare const enum AVAudioApplicationMicrophoneInjectionPermission {
163
+
164
+ ServiceDisabled = 1936876659 ,
165
+
166
+ Undetermined = 1970168948 ,
167
+
168
+ Denied = 1684369017 ,
169
+
170
+ Granted = 1735552628
171
+ }
172
+
152
173
/**
153
174
* @since 17.0
154
175
*/
@@ -2039,6 +2060,21 @@ declare class AVAudioSession extends NSObject {
2039
2060
*/
2040
2061
readonly inputOrientation : AVAudioStereoOrientation ;
2041
2062
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
+
2042
2078
/**
2043
2079
* @since 7.0
2044
2080
*/
@@ -2110,6 +2146,11 @@ declare class AVAudioSession extends NSObject {
2110
2146
*/
2111
2147
readonly preferredInputOrientation : AVAudioStereoOrientation ;
2112
2148
2149
+ /**
2150
+ * @since 18.2
2151
+ */
2152
+ readonly preferredMicrophoneInjectionMode : AVAudioSessionMicrophoneInjectionMode ;
2153
+
2113
2154
/**
2114
2155
* @since 7.0
2115
2156
*/
@@ -2120,6 +2161,11 @@ declare class AVAudioSession extends NSObject {
2120
2161
*/
2121
2162
readonly preferredSampleRate : number ;
2122
2163
2164
+ /**
2165
+ * @since 18.2
2166
+ */
2167
+ readonly prefersEchoCancelledInput : boolean ;
2168
+
2123
2169
/**
2124
2170
* @since 17.0
2125
2171
*/
@@ -2276,6 +2322,11 @@ declare class AVAudioSession extends NSObject {
2276
2322
*/
2277
2323
setPreferredInputOrientationError ( orientation : AVAudioStereoOrientation ) : boolean ;
2278
2324
2325
+ /**
2326
+ * @since 18.2
2327
+ */
2328
+ setPreferredMicrophoneInjectionModeError ( inValue : AVAudioSessionMicrophoneInjectionMode ) : boolean ;
2329
+
2279
2330
/**
2280
2331
* @since 7.0
2281
2332
*/
@@ -2286,6 +2337,11 @@ declare class AVAudioSession extends NSObject {
2286
2337
*/
2287
2338
setPreferredSampleRateError ( sampleRate : number ) : boolean ;
2288
2339
2340
+ /**
2341
+ * @since 18.2
2342
+ */
2343
+ setPrefersEchoCancelledInputError ( value : boolean ) : boolean ;
2344
+
2289
2345
/**
2290
2346
* @since 17.0
2291
2347
*/
@@ -2542,6 +2598,23 @@ declare var AVAudioSessionMediaServicesWereLostNotification: string;
2542
2598
*/
2543
2599
declare var AVAudioSessionMediaServicesWereResetNotification : string ;
2544
2600
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
+
2545
2618
/**
2546
2619
* @since 5.0
2547
2620
*/
0 commit comments