[][src]Function aaudio_sys::AAudioStreamBuilder_setPrivacySensitive

pub unsafe extern "C" fn AAudioStreamBuilder_setPrivacySensitive(
    builder: *mut AAudioStreamBuilder,
    privacy_sensitive: bool
)

Indicates whether this input stream must be marked as privacy sensitive or not.

When true, this input stream is privacy sensitive and any concurrent capture is not permitted.

This is off (false) by default except when the input preset is VoiceCommunication or Camcorder.

Always takes precedence over default from input preset when set explicitly.

Only relevant if the stream direction is Input.

Added in API level 30.

Arguments

  • builder - reference provided by AAudio_createStreamBuilder()
  • privacy_sensitive - true if capture from this stream must be marked as privacy sensitive, false otherwise.