MediaCaptureSettings.CameraSoundRequiredForRegion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.