{% setvar book_path %}/reference/kotlin/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ViewDebug.IntToString

{% setvar page_path %}dokkatest/platform/ViewDebug.IntToString.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

annotation ViewDebug.IntToString


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

See also
ViewDebug.ExportedProperty

Summary

Public functions

abstract Int

The original int value to map to a String.

abstract String
to()

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

Public functions

from

abstract fun from(): Int

The original int value to map to a String.

Returns
Int

An arbitrary int value.

to

abstract fun to(): String

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

Returns
String

An arbitrary non-null String.