Stay organized with collections
Save and categorize content based on your preferences.
IntToString
@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class 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 |
Defines a mapping from an int value to a String.
|
Properties |
Int |
The original int value to map to a String.
|
String |
The String to use in place of the original int value.
|
Public constructors
IntToString
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.
Properties
from
val from: Int
The original int value to map to a String.
Return |
Int |
An arbitrary int value. |
to
val to: String
The String to use in place of the original int value.
Return |
String |
An arbitrary non-null String. |
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,["# ViewDebug.IntToString\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIntToString\n===========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/ViewDebug.IntToString \"View this page in Java\") \n\n```\n@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) class IntToString\n```\n\n|-----------------------------------------|\n| [android.view.ViewDebug.IntToString](#) |\n\nDefines 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.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [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. |\n\n| Properties ||\n|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [from](#from:kotlin.Int) The original int value to map to a String. |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [to](#to:kotlin.String) The String to use in place of the original int value. |\n\nPublic constructors\n-------------------\n\n### IntToString\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nIntToString(\n from: Int, \n to: String)\n```\n\nDefines 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. \n**See Also**\n\n- [android.view.ViewDebug.ExportedProperty](/reference/kotlin/android/view/ViewDebug.ExportedProperty)\n\nProperties\n----------\n\n### from\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval from: Int\n```\n\nThe original int value to map to a String.\n\n| Return ||\n|----------------------------------------------------------------------------|-------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | An arbitrary int value. |\n\n### to\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nval to: String\n```\n\nThe String to use in place of the original int value.\n\n| Return ||\n|----------------------------------------------------------------------------------|-------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | An arbitrary non-null String. |"]]