Condividi tramite


MediaActionSound.MustPlayShutterSound Method

Definition

Returns true if the application must play the shutter sound in accordance to certain regional restrictions.

[Android.Runtime.Register("mustPlayShutterSound", "()Z", "", ApiSince=33)]
public static bool MustPlayShutterSound ();
[<Android.Runtime.Register("mustPlayShutterSound", "()Z", "", ApiSince=33)>]
static member MustPlayShutterSound : unit -> bool

Returns

Attributes

Remarks

Returns true if the application must play the shutter sound in accordance to certain regional restrictions.

If this method returns true, applications are strongly recommended to use MediaActionSound.play(SHUTTER_CLICK) or START_VIDEO_RECORDING whenever it captures images or video to storage or sends them over the network.

Java documentation for android.media.MediaActionSound.mustPlayShutterSound().

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