public static interface SoundPool.OnLoadCompleteListener

android.media.SoundPool.OnLoadCompleteListener



Summary

Public methods

abstract void onLoadComplete(SoundPool soundPool, int sampleId, int status)

Called when a sound has completed loading.

Public methods

onLoadComplete

public abstract void onLoadComplete (SoundPool soundPool, 
                int sampleId, 
                int status)

Called when a sound has completed loading.

Parameters
soundPool SoundPool: SoundPool object from the load() method
sampleId int: the sample ID of the sound loaded.
status int: the status of the load operation (0 = success)

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.