Android.Views.View.PlaySoundEffect Method
Play a sound effect for this view.

Syntax

[Android.Runtime.Register("playSoundEffect", "(I)V", "GetPlaySoundEffect_IHandler")]
public virtual void PlaySoundEffect ([Android.Runtime.GeneratedEnum] SoundEffects soundConstant)

Parameters

soundConstant
One of the constants defined in Android.Views.SoundEffectConstants

Remarks

Play a sound effect for this view.

The framework will play sound effects for some built in actions, such as clicking, but you may wish to play these effects in your widget, for instance, for internal navigation.

The sound effect will only be played if sound effects are enabled by the user, and View.SoundEffectsEnabled is true.

[Android Documentation]

Requirements

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