Language

MediaActionSound.LoadAsync(MediaActionSoundType) Method

Definition

Runs the synchronous sound-load request on a task.

public System.Threading.Tasks.Task LoadAsync(Android.Media.MediaActionSoundType soundName);
member this.LoadAsync : Android.Media.MediaActionSoundType -> System.Threading.Tasks.Task

Parameters

soundName
MediaActionSoundType

The predefined media-action sound to pass to the synchronous load call.

Returns

A task that completes when the load request returns, not when sample decoding finishes. Some loading errors can be logged without throwing from that request.

Remarks

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