Stay organized with collections
Save and categorize content based on your preferences.
TimePickerDialog.OnTimeSetListener
public
static
interface
TimePickerDialog.OnTimeSetListener
android.app.TimePickerDialog.OnTimeSetListener
|
The callback interface used to indicate the user is done filling in
the time (e.g. they clicked on the 'OK' button).
Summary
Public methods |
abstract
void
|
onTimeSet(TimePicker view, int hourOfDay, int minute)
Called when the user is done setting a new time and the dialog has
closed.
|
Public methods
public abstract void onTimeSet (TimePicker view,
int hourOfDay,
int minute)
Called when the user is done setting a new time and the dialog has
closed.
Parameters |
view |
TimePicker : the view associated with this listener |
hourOfDay |
int : the hour that was set |
minute |
int : the minute that was set |
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,["# TimePickerDialog.OnTimeSetListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTimePickerDialog.OnTimeSetListener\n==================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/TimePickerDialog.OnTimeSetListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTimePickerDialog.OnTimeSetListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| android.app.TimePickerDialog.OnTimeSetListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe callback interface used to indicate the user is done filling in\nthe time (e.g. they clicked on the 'OK' button).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onTimeSet](/reference/android/app/TimePickerDialog.OnTimeSetListener#onTimeSet(android.widget.TimePicker,%20int,%20int))`(`[TimePicker](/reference/android/widget/TimePicker)` view, int hourOfDay, int minute) ` Called when the user is done setting a new time and the dialog has closed. |\n\nPublic methods\n--------------\n\n### onTimeSet\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onTimeSet (TimePicker view, \n int hourOfDay, \n int minute)\n```\n\nCalled when the user is done setting a new time and the dialog has\nclosed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|-------------------------------------------------------------|\n| `view` | `TimePicker`: the view associated with this listener \u003cbr /\u003e |\n| `hourOfDay` | `int`: the hour that was set \u003cbr /\u003e |\n| `minute` | `int`: the minute that was set \u003cbr /\u003e |"]]