Stay organized with collections
Save and categorize content based on your preferences.
interface Formatter
Interface used to format current value into a string for presentation.
Summary
Public methods |
abstract String! |
Formats a string representation of the current value.
|
Public methods
abstract fun format(value: Int): String!
Formats a string representation of the current value.
Parameters |
value |
Int: The currently selected value. |
Return |
String! |
A formatted string representation. |
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,["# NumberPicker.Formatter\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFormatter\n=========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/NumberPicker.Formatter \"View this page in Java\") \n\n```\ninterface Formatter\n```\n\n|--------------------------------------------|\n| [android.widget.NumberPicker.Formatter](#) |\n\nInterface used to format current value into a string for presentation.\n\nSummary\n-------\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [format](#format(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Formats a string representation of the current value. |\n\nPublic methods\n--------------\n\n### format\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun format(value: Int): String!\n```\n\nFormats a string representation of the current value.\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------|\n| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The currently selected value. |\n\n| Return ||\n|-----------------------------------------------------------------------------------|------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | A formatted string representation. |"]]