Skip to content

text from

milan edited this page Jun 7, 2023 · 2 revisions

//app/org.mjdev.balldontlie.base.helpers/Ext/textFrom

textFrom

[androidJvm]\

@Composable

inline fun <T> textFrom(text: T?): String

Helper function to return text from any object is given as input. Mainly: Int -> is represented as resource text id String -> String null -> empty string other -> toString() call result

Return

String generated from any resource given

Parameters

androidJvm

text Text
T T type of result
Clone this wiki locally