MediaCaptureInitializationSettings.AlwaysPlaySystemShutterSound Property

Definition

Gets a value indicating whether the system should always play a shutter sound when a photo is captured.

public:
 property bool AlwaysPlaySystemShutterSound { bool get(); void set(bool value); };
bool AlwaysPlaySystemShutterSound();

void AlwaysPlaySystemShutterSound(bool value);
public bool AlwaysPlaySystemShutterSound { get; set; }
var boolean = mediaCaptureInitializationSettings.alwaysPlaySystemShutterSound;
mediaCaptureInitializationSettings.alwaysPlaySystemShutterSound = boolean;
Public Property AlwaysPlaySystemShutterSound As Boolean

Property Value

Boolean

bool

True if the system should always play a shutter sound; otherwise, false.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
backgroundMediaRecording

Remarks

Some regions require that the system play a shutter sound whenever a photo is captured. Setting this value to true will cause the system to always play the shutter sound, whether or not is required by the current region. Setting this value to false will not suppress the system shutter sound when it is required.

Applies to