Condividi tramite


MediaRecorder.PrivacySensitive Property

Definition

Returns whether this MediaRecorder is marked as privacy sensitive or not with regard to audio capture. -or- Indicates that this capture request is privacy sensitive and that any concurrent capture is not permitted.

public virtual bool PrivacySensitive { [Android.Runtime.Register("isPrivacySensitive", "()Z", "GetIsPrivacySensitiveHandler", ApiSince=30)] get; [Android.Runtime.Register("setPrivacySensitive", "(Z)V", "GetSetPrivacySensitive_ZHandler", ApiSince=30)] set; }
[<get: Android.Runtime.Register("isPrivacySensitive", "()Z", "GetIsPrivacySensitiveHandler", ApiSince=30)>]
[<set: Android.Runtime.Register("setPrivacySensitive", "(Z)V", "GetSetPrivacySensitive_ZHandler", ApiSince=30)>]
member this.PrivacySensitive : bool with get, set

Property Value

true if privacy sensitive, false otherwise

Attributes

Remarks

Property getter documentation:

Returns whether this MediaRecorder is marked as privacy sensitive or not with regard to audio capture.

See #setPrivacySensitive(boolean)

Java documentation for android.media.MediaRecorder.isPrivacySensitive().

Property setter documentation:

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 AudioSource#VOICE_COMMUNICATION or 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: <ul> <li>AudioSource#MIC</li> <li>AudioSource#CAMCORDER</li> <li>AudioSource#VOICE_RECOGNITION</li> <li>AudioSource#VOICE_COMMUNICATION</li> <li>AudioSource#UNPROCESSED</li> <li>AudioSource#VOICE_PERFORMANCE</li> </ul> Invoking #prepare() will throw an IOException if this condition is not met.

Must be called after #setAudioSource(int) and before #setOutputFormat(int).

Java documentation for android.media.MediaRecorder.setPrivacySensitive(boolean).

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