Stay organized with collections
Save and categorize content based on your preferences.
OnDrawableLoadedListener
interface OnDrawableLoadedListener
Implement this interface to receive a callback when loadDrawableAsync
is finished and your Drawable is ready.
Summary
Public methods |
abstract Unit |
|
Public methods
onDrawableLoaded
abstract fun onDrawableLoaded(d: Drawable!): Unit
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,["# Icon.OnDrawableLoadedListener\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnDrawableLoadedListener\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/drawable/Icon.OnDrawableLoadedListener \"View this page in Java\") \n\n```\ninterface OnDrawableLoadedListener\n```\n\n|--------------------------------------------------------------|\n| [android.graphics.drawable.Icon.OnDrawableLoadedListener](#) |\n\nImplement this interface to receive a callback when [loadDrawableAsync](/reference/kotlin/android/graphics/drawable/Icon#loadDrawableAsync(android.content.Context,%20android.graphics.drawable.Icon.OnDrawableLoadedListener,%20android.os.Handler)) is finished and your Drawable is ready.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onDrawableLoaded](#onDrawableLoaded(android.graphics.drawable.Drawable))`(`d:` `[Drawable](/reference/kotlin/android/graphics/drawable/Drawable)!`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### onDrawableLoaded\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onDrawableLoaded(d: Drawable!): Unit\n```"]]