[][src]Function aaudio_sys::AAudioStreamBuilder_setAllowedCapturePolicy

pub unsafe extern "C" fn AAudioStreamBuilder_setAllowedCapturePolicy(
    builder: *mut AAudioStreamBuilder,
    capture_policy: i32
)

Specify whether this stream audio may or may not be captured by other apps or the system.

The default is AllowCaptureByAll.

Note that an application can also set its global policy, in which case the most restrictive policy is always applied. See android.media.AudioAttributes#setAllowedCapturePolicy(int)

Available since API level 29.

builder - reference provided by AAudio_createStreamBuilder() capturePolicy - the desired level of opt-out from being captured.