Android.Media.AudioManager.PlaySoundEffect Method
Plays a sound effect (Key clicks, lid open/close.

Syntax

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

Parameters

effectType
The type of sound effect. One of AudioManager.FX_KEY_CLICK, AudioManager.FX_FOCUS_NAVIGATION_UP, AudioManager.FX_FOCUS_NAVIGATION_DOWN, AudioManager.FX_FOCUS_NAVIGATION_LEFT, AudioManager.FX_FOCUS_NAVIGATION_RIGHT, AudioManager.FX_KEYPRESS_STANDARD, AudioManager.FX_KEYPRESS_SPACEBAR, AudioManager.FX_KEYPRESS_DELETE, AudioManager.FX_KEYPRESS_RETURN, AudioManager.FX_KEYPRESS_INVALID, NOTE: This version uses the UI settings to determine whether sounds are heard or not.

Remarks

Plays a sound effect (Key clicks, lid open/close...)

[Android Documentation]

Requirements

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