Stay organized with collections
Save and categorize content based on your preferences.
OnLoadCompleteListener
interface OnLoadCompleteListener
Summary
Public methods |
abstract Unit |
Called when a sound has completed loading.
|
Public methods
onLoadComplete
abstract fun onLoadComplete(
soundPool: SoundPool!,
sampleId: Int,
status: Int
): Unit
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SoundPool.OnLoadCompleteListener\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnLoadCompleteListener\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/SoundPool.OnLoadCompleteListener \"View this page in Java\") \n\n```\ninterface OnLoadCompleteListener\n```\n\n|-----------------------------------------------------|\n| [android.media.SoundPool.OnLoadCompleteListener](#) |\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onLoadComplete](#onLoadComplete(android.media.SoundPool,%20kotlin.Int,%20kotlin.Int))`(`soundPool:` `[SoundPool](/reference/kotlin/android/media/SoundPool)!`, `sampleId:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `status:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Called when a sound has completed loading. |\n\nPublic methods\n--------------\n\n### onLoadComplete\n\nAdded in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onLoadComplete(\n soundPool: SoundPool!, \n sampleId: Int, \n status: Int\n): Unit\n```\n\nCalled when a sound has completed loading.\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------|\n| `soundPool` | [SoundPool](/reference/kotlin/android/media/SoundPool)!: SoundPool object from the load() method |\n| `sampleId` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the sample ID of the sound loaded. |\n| `status` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the status of the load operation (0 = success) |"]]