Stay organized with collections
Save and categorize content based on your preferences.
DialogInterface.OnShowListener
public
static
interface
DialogInterface.OnShowListener
android.content.DialogInterface.OnShowListener
|
Interface used to allow the creator of a dialog to run some code when the
dialog is shown.
Summary
Public methods |
abstract
void
|
onShow(DialogInterface dialog)
This method will be invoked when the dialog is shown.
|
Public methods
onShow
public abstract void onShow (DialogInterface dialog)
This method will be invoked when the dialog is shown.
Parameters |
dialog |
DialogInterface : the dialog that was shown will be passed into the
method |
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,["# DialogInterface.OnShowListener\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nDialogInterface.OnShowListener\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/content/DialogInterface.OnShowListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nDialogInterface.OnShowListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| android.content.DialogInterface.OnShowListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface used to allow the creator of a dialog to run some code when the\ndialog is shown.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onShow](/reference/android/content/DialogInterface.OnShowListener#onShow(android.content.DialogInterface))`(`[DialogInterface](/reference/android/content/DialogInterface)` dialog) ` This method will be invoked when the dialog is shown. |\n\nPublic methods\n--------------\n\n### onShow\n\nAdded in [API level 8](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onShow (DialogInterface dialog)\n```\n\nThis method will be invoked when the dialog is shown.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------|\n| `dialog` | `DialogInterface`: the dialog that was shown will be passed into the method \u003cbr /\u003e |"]]