Language

AudioRecord.Builder.SetPrivacySensitive(Boolean) Method

Definition

Indicates that this capture request is privacy sensitive and that any concurrent capture is not permitted.

[Android.Runtime.Register("setPrivacySensitive", "(Z)Landroid/media/AudioRecord$Builder;", "GetSetPrivacySensitive_ZHandler", ApiSince=30)]
public virtual Android.Media.AudioRecord.Builder SetPrivacySensitive(bool privacySensitive);
[<Android.Runtime.Register("setPrivacySensitive", "(Z)Landroid/media/AudioRecord$Builder;", "GetSetPrivacySensitive_ZHandler", ApiSince=30)>]
abstract member SetPrivacySensitive : bool -> Android.Media.AudioRecord.Builder
override this.SetPrivacySensitive : bool -> Android.Media.AudioRecord.Builder

Parameters

privacySensitive
Boolean

True if capture from this AudioRecord must be marked as privacy sensitive, false otherwise.

Returns

Attributes

Remarks

Indicates that this capture request is privacy sensitive and that any concurrent capture is not permitted. The default is not privacy sensitive except when the audio source set with setAudioSource(int) is MediaRecorder.AudioSource.VOICE_COMMUNICATION or MediaRecorder.AudioSource.CAMCORDER. Always takes precedence over default from audio source when set explicitly. Using this API is only permitted when the audio source is one of: MediaRecorder.AudioSource.MIC MediaRecorder.AudioSource.CAMCORDER MediaRecorder.AudioSource.VOICE_RECOGNITION MediaRecorder.AudioSource.VOICE_COMMUNICATION MediaRecorder.AudioSource.UNPROCESSED MediaRecorder.AudioSource.VOICE_PERFORMANCE Invoking build() will throw an UnsupportedOperationException if this condition is not met.

Android reference for android.media.AudioRecord.Builder.setPrivacySensitive.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to