Stay organized with collections
Save and categorize content based on your preferences.
SoundPool.OnLoadCompleteListener
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
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SoundPool.OnLoadCompleteListener\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSoundPool.OnLoadCompleteListener\n================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/SoundPool.OnLoadCompleteListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSoundPool.OnLoadCompleteListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| android.media.SoundPool.OnLoadCompleteListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onLoadComplete](/reference/android/media/SoundPool.OnLoadCompleteListener#onLoadComplete(android.media.SoundPool,%20int,%20int))`(`[SoundPool](/reference/android/media/SoundPool)` soundPool, int sampleId, int status) ` Called when a sound has completed loading. |\n\nPublic methods\n--------------\n\n### onLoadComplete\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onLoadComplete (SoundPool soundPool, \n int sampleId, \n int status)\n```\n\nCalled when a sound has completed loading.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|--------------------------------------------------------------|\n| `soundPool` | `SoundPool`: SoundPool object from the load() method \u003cbr /\u003e |\n| `sampleId` | `int`: the sample ID of the sound loaded. \u003cbr /\u003e |\n| `status` | `int`: the status of the load operation (0 = success) \u003cbr /\u003e |"]]