Stay organized with collections
Save and categorize content based on your preferences.
OnTimeChangedListener
interface OnTimeChangedListener
The callback interface used to indicate the time has been adjusted.
Summary
Public methods |
abstract Unit |
|
Public methods
onTimeChanged
abstract fun onTimeChanged(
view: TimePicker!,
hourOfDay: Int,
minute: Int
): Unit
Parameters |
view |
TimePicker!: The view associated with this listener. |
hourOfDay |
Int: The current hour. |
minute |
Int: The current minute. |
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,["# TimePicker.OnTimeChangedListener\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnTimeChangedListener\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/TimePicker.OnTimeChangedListener \"View this page in Java\") \n\n```\ninterface OnTimeChangedListener\n```\n\n|------------------------------------------------------|\n| [android.widget.TimePicker.OnTimeChangedListener](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [TimePickerDialog](../app/TimePickerDialog.html#) |---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------| | [TimePickerDialog](../app/TimePickerDialog.html#) | A dialog that prompts the user for the time of day using a [TimePicker](/reference/kotlin/android/widget/TimePicker). | |\n\nThe callback interface used to indicate the time has been adjusted.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onTimeChanged](#onTimeChanged(android.widget.TimePicker,%20kotlin.Int,%20kotlin.Int))`(`view:` `[TimePicker](/reference/kotlin/android/widget/TimePicker)!`, `hourOfDay:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `minute:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### onTimeChanged\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onTimeChanged(\n view: TimePicker!, \n hourOfDay: Int, \n minute: Int\n): Unit\n```\n\n| Parameters ||\n|-------------|-----------------------------------------------------------------------------------------------------|\n| `view` | [TimePicker](/reference/kotlin/android/widget/TimePicker)!: The view associated with this listener. |\n| `hourOfDay` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The current hour. |\n| `minute` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The current minute. |"]]