Function

toRemoteString

Returns a RemoteString that evaluates to the result of this RemoteFloat formatted according to the provided android.icu.text.DecimalFormat.

toRemoteString

Source set: Android
public fun RemoteFloat.toRemoteString(format: IcuDecimalFormat): RemoteString

Returns a RemoteString that evaluates to the result of this RemoteFloat formatted according to the provided android.icu.text.DecimalFormat.

This method maps the localized android.icu.text.DecimalFormat symbols (such as separators, padding, rounding, and digit constraints) to a remote-compatible string representation. It specifically handles complex padding logic and threshold-based selections to ensure the formatted output remains consistent when evaluated on the remote target.

Parameters

format The ICU android.icu.text.DecimalFormat to use for determining formatting options like separators, grouping, and padding width.

Return

A RemoteString representing the formatted float.

toRemoteString

Source set: Android
public fun RemoteFloat.toRemoteString(@Suppress("UseIcu") format: DecimalFormat): RemoteString

Returns a RemoteString that evaluates to the result of this RemoteFloat formatted according to the provided DecimalFormat.

This method maps the localized DecimalFormat symbols (such as separators and grouping sizes) and configuration (such as padding and rounding) to a remote-compatible string representation.

Parameters

format The DecimalFormat to use for determining separators, grouping, and padding.

Return

A RemoteString representing the formatted float.

toRemoteString

Source set: Android
public fun RemoteInt.toRemoteString(format: IcuDecimalFormat): RemoteString

Converts this RemoteInt to a RemoteString using the specified android.icu.text.DecimalFormat.

This method maps the localized android.icu.text.DecimalFormat symbols (such as separators, padding, and digit constraints) to a remote-compatible string representation.

Parameters

format The android.icu.text.DecimalFormat used to format the integer value.

Return

A RemoteString representing the formatted integer value.

toRemoteString

Source set: Android
public fun RemoteInt.toRemoteString(@Suppress("UseIcu") format: DecimalFormat): RemoteString

Converts this RemoteInt to a RemoteString using the specified DecimalFormat.

This method maps the localized DecimalFormat symbols (such as separators and grouping sizes) and configuration (such as padding and rounding) to a remote-compatible string representation.

Parameters

format The DecimalFormat to use for determining separators, grouping, and padding.

Return

A RemoteString representing the formatted integer.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: