Jaa


MediaCaptureSettings.CameraSoundRequiredForRegion Property

Definition

Gets a value that indicates if the device’s region requires that a sound be played when a photo or video is captured.

public:
 property bool CameraSoundRequiredForRegion { bool get(); };
bool CameraSoundRequiredForRegion();
public bool CameraSoundRequiredForRegion { get; }
var boolean = mediaCaptureSettings.cameraSoundRequiredForRegion;
Public ReadOnly Property CameraSoundRequiredForRegion As Boolean

Property Value

Boolean

bool

true if the device’s region requires that a sound be played when a photo or video is captured; otherwise, false. An app may play a sound during photo or video capture even if it is not required by the device’s region.

Windows requirements

App capabilities
backgroundMediaRecording

Remarks

App developers can use this information to determine if they should suppress playing a sound when the device takes a picture since the operating system will play a sound if it is required by the device's region.

You can specify that the system should always play a shutter sound when a photo is captured by setting the MediaCaptureInitializationSettings.AlwaysPlaySystemShutterSound property to true when initializing the MediaCapture object.

Applies to