Android.Hardware.Camera.EnableShutterSound Method

Syntax

[Android.Runtime.Register("enableShutterSound", "(Z)Z", "")]
public bool EnableShutterSound (bool enabled)

See Also

Camera.TakePicture(.IShutterCallback, .IPictureCallback, .IPictureCallback)

Parameters

enabled
whether the camera should play the system shutter sound when Camera.TakePicture(.IShutterCallback, .IPictureCallback, .IPictureCallback) is called.

Returns

Documentation for this section has not yet been entered.

Remarks

Enable or disable the default shutter sound when taking a picture.

By default, the camera plays the system-defined camera shutter sound when Camera.TakePicture(.IShutterCallback, .IPictureCallback, .IPictureCallback) is called. Using this method, the shutter sound can be disabled. It is strongly recommended that an alternative shutter sound is played in the NoType:android/hardware/Camera$ShutterCallback;Href=../../../reference/android/hardware/Camera.ShutterCallback.html when the system shutter sound is disabled.

Note that devices may not always allow disabling the camera shutter sound. If the shutter sound state cannot be set to the desired value, this method will return false. NoType:android/hardware/Camera$CameraInfo;Href=../../../reference/android/hardware/Camera.CameraInfo.html#canDisableShutterSound can be used to determine whether the device will allow the shutter sound to be disabled.

[Android Documentation]

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17