Freigeben über


Camera.CameraInfo.CanDisableShutterSound Property

Definition

Caution

deprecated

Whether the shutter sound can be disabled.

[Android.Runtime.Register("canDisableShutterSound")]
[System.Obsolete("deprecated")]
public bool CanDisableShutterSound { get; set; }
[<Android.Runtime.Register("canDisableShutterSound")>]
[<System.Obsolete("deprecated")>]
member this.CanDisableShutterSound : bool with get, set

Property Value

Attributes

Remarks

Whether the shutter sound can be disabled.

On some devices, the camera shutter sound cannot be turned off through #enableShutterSound enableShutterSound. This field can be used to determine whether a call to disable the shutter sound will succeed.

If this field is set to true, then a call of enableShutterSound(false) will be successful. If set to false, then that call will fail, and the shutter sound will be played when Camera#takePicture takePicture is called.

Java documentation for android.hardware.Camera.CameraInfo.canDisableShutterSound.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to