# NumberPicker.Formatter

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# NumberPicker.Formatter

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/widget/NumberPicker.Formatter "View this page in Kotlin")\|Java

`
public
static


interface
NumberPicker.Formatter
`  
`


`

|---------------------------------------|
| android.widget.NumberPicker.Formatter |

<br />

*** ** * ** ***

Interface used to format current value into a string for presentation.

## Summary

|                                                                                                                     ### Public methods                                                                                                                     ||
|--------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[String](https://developer.android.com/reference/java/lang/String) | ` `[format](https://developer.android.com/reference/android/widget/NumberPicker.Formatter#format(int))`(int value) ` Formats a string representation of the current value. |

## Public methods

### format

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract String format (int value)
```

Formats a string representation of the current value.

<br />

|                      Parameters                      ||
|---------|---------------------------------------------|
| `value` | `int`: The currently selected value. <br /> |

|                                                    Returns                                                    ||
|--------------------------------------------------------------------|-------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String) | A formatted string representation. <br /> |