Compartir a través de


View.SoundEffectsEnabled Property

Definition

Set whether this view should have sound effects enabled for events such as clicking and touching.

public virtual bool SoundEffectsEnabled { [Android.Runtime.Register("isSoundEffectsEnabled", "()Z", "GetIsSoundEffectsEnabledHandler")] get; [Android.Runtime.Register("setSoundEffectsEnabled", "(Z)V", "GetSetSoundEffectsEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isSoundEffectsEnabled", "()Z", "GetIsSoundEffectsEnabledHandler")>]
[<set: Android.Runtime.Register("setSoundEffectsEnabled", "(Z)V", "GetSetSoundEffectsEnabled_ZHandler")>]
member this.SoundEffectsEnabled : bool with get, set

Property Value

whether this view should have sound effects enabled for events such as clicking and touching.

Attributes

Remarks

Property getter documentation:

Java documentation for android.view.View.isSoundEffectsEnabled().

Property setter documentation:

Set whether this view should have sound effects enabled for events such as clicking and touching.

You may wish to disable sound effects for a view if you already play sounds, for instance, a dial key that plays dtmf tones.

Java documentation for android.view.View.setSoundEffectsEnabled(boolean).

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

See also