다음을 통해 공유


MediaActionSound.Load(MediaActionSoundType) Method

Definition

Preload a predefined platform sound to minimize latency when the sound is played later by #play.

[Android.Runtime.Register("load", "(I)V", "GetLoad_IHandler")]
public virtual void Load (Android.Media.MediaActionSoundType soundName);
[<Android.Runtime.Register("load", "(I)V", "GetLoad_IHandler")>]
abstract member Load : Android.Media.MediaActionSoundType -> unit
override this.Load : Android.Media.MediaActionSoundType -> unit

Parameters

soundName
MediaActionSoundType

The type of sound to preload, selected from SHUTTER_CLICK, FOCUS_COMPLETE, START_VIDEO_RECORDING, or STOP_VIDEO_RECORDING.

Attributes

Remarks

Preload a predefined platform sound to minimize latency when the sound is played later by #play.

Java documentation for android.media.MediaActionSound.load(int).

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