Skip to content

//deferred-resources/com.backbase.deferredresources/DeferredFormattedString

DeferredFormattedString

[androidJvm] interface DeferredFormattedString

A wrapper for resolving a formatted string on demand.

Types

Name Summary
Constant [androidJvm]
Content
class Constant(format: String) : ParcelableDeferredFormattedString
More info
A wrapper for a constant format-able format string.


Resource [androidJvm]
Content
class Resource(@StringRes()resId: Int) : ParcelableDeferredFormattedString
More info
A wrapper for a format-able StringRes.


Functions

Name Summary
resolve [androidJvm]
Content
abstract fun resolve(context: Context, vararg formatArgs: Any): String
More info
Resolve the string with the supplied formatArgs.


Inheritors

Name
ParcelableDeferredFormattedString

Extensions

Name Summary
withFormatArgs [androidJvm]
Content
fun DeferredFormattedString.withFormatArgs(vararg formatArgs: Any): FormattedDeferredText
~~fun~~ ~~<~~T~~>~~ DeferredFormattedString~~.~~~~withFormatArgs~~~~(~~~~vararg~~ ~~formatArgs~~~~:~~ Any~~)~~~~:~~ DeferredText
More info
Convert a DeferredFormattedString to a normal DeferredText by providing formatArgs to be used when resolved.