enrichText

open fun enrichText(@Nullable text: String, @Nullable screenDevice: DeviceInstance): String
open fun enrichText(@Nullable text: String, replaceTextMap: HashMap<String, String>): String


open fun enrichText(@Nullable uiConfigText: String, @Nullable replaceText: String, @Nullable text: String): String

Replace all occurrences of the text in the string with the new text.

Return

the string by replacing old text with new text.

Parameters

uiConfigText

the actual text

replaceText

the text that needs to be replaced.

text

the new text with which the replace text needs to be replaced with.