# ViewDebug.IntToString

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

# IntToString

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/view/ViewDebug.IntToString "View this page in Java")  

```
@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class IntToString
```

|--------------------------------------------------------------------------------------------------------------------------|
| [android.view.ViewDebug.IntToString](https://developer.android.com/reference/kotlin/android/view/ViewDebug.IntToString#) |

Defines a mapping from an int value to a String. Such a mapping can be used in an @ExportedProperty to provide more meaningful values to the end user.

## Summary

|                                                                                                                                                                               Public constructors                                                                                                                                                                               ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [IntToString](https://developer.android.com/reference/kotlin/android/view/ViewDebug.IntToString#IntToString(kotlin.Int,%20kotlin.String))`(`from:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `to:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Defines a mapping from an int value to a String. |

|                                                                                                                    Properties                                                                                                                    ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [from](https://developer.android.com/reference/kotlin/android/view/ViewDebug.IntToString#from:kotlin.Int) The original int value to map to a String.           |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [to](https://developer.android.com/reference/kotlin/android/view/ViewDebug.IntToString#to:kotlin.String) The String to use in place of the original int value. |

## Public constructors

### IntToString

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

```
IntToString(
    from: Int, 
    to: String)
```

Defines a mapping from an int value to a String. Such a mapping can be used in an @ExportedProperty to provide more meaningful values to the end user.  
**See Also**

- [android.view.ViewDebug.ExportedProperty](https://developer.android.com/reference/kotlin/android/view/ViewDebug.ExportedProperty)

## Properties

### from

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

```
val from: Int
```

The original int value to map to a String.

|                                               Return                                                ||
|----------------------------------------------------------------------------|-------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | An arbitrary int value. |

### to

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

```
val to: String
```

The String to use in place of the original int value.

|                                                     Return                                                      ||
|----------------------------------------------------------------------------------|-------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | An arbitrary non-null String. |