Package-level declarations

Types

Link copied to clipboard
open class Age
Link copied to clipboard
open class DateUtils
Link copied to clipboard
open class Dispatch
Link copied to clipboard
abstract class Downloader
Link copied to clipboard
open class GsonHolder
Link copied to clipboard
open class IntRange
Link copied to clipboard
abstract class JsonCallback<T, T2> : Callback
Link copied to clipboard
Link copied to clipboard
open class Logger
Wrapper class for lazy logging
Link copied to clipboard

Collection of utils to format and handle phone numbers

Link copied to clipboard
Link copied to clipboard
abstract class SimpleJsonCallback<T> : JsonCallback<T, T2>
Link copied to clipboard
abstract class StringDownloader : Downloader
Link copied to clipboard
open class StringNormalizer
Class to normalize Strings and match them.
Link copied to clipboard
open class Utils

Functions

Link copied to clipboard
fun JsonObject.getBooleanOpt(key: String, defaultValue: Boolean): Boolean
Link copied to clipboard

Returns the int value of an attribute

Link copied to clipboard
fun Context.getColorId(resource: String): Int

Resolves the given into color string into resource identifier returns the id if found else 0

Link copied to clipboard
fun Context.getComposeColor(resource: String?): Int?

Resolves the given color string into a color for Compose returns the color as Int on success else null

Link copied to clipboard
fun JsonObject.getDoubleOpt(key: String, defaultValue: Double): Double
Link copied to clipboard
fun Context.getImageId(resource: String): Int

Resolves the given into image string into resource identifier returns the id if found else 0

Link copied to clipboard
fun JsonObject.getIntOpt(key: String, defaultValue: Int): Int
Link copied to clipboard
fun JsonObject.getLongOpt(key: String, defaultValue: Long): Long
Link copied to clipboard

Resolves the given into string resource identifier

Link copied to clipboard

Converts the string into a resource id and returns the matching resource String

Link copied to clipboard
fun JsonObject.getString(key: String, defaultValue: String): String
Link copied to clipboard
fun JsonObject.getStringListOpt(key: String, defaultValue: List<String?>?): List<String?>?
Link copied to clipboard
fun JsonObject.getStringOpt(key: String, defaultValue: String?): String?
Link copied to clipboard

Returns a Boolean. True if the given Charsequence is not null or blank

Link copied to clipboard
fun Context.resolveColorId(resource: String?): Int?

Resolves the given color string into resource identifier returns the id on success else null

Link copied to clipboard
fun Context.resolveImageId(resource: String?): Int?

Resolves the given into image string into resource identifier returns the id if found else null

Link copied to clipboard
Link copied to clipboard

Sets the textview to visible and the text to be displayed if the given char sequence is not null or blank. The text will be set as resource string if the string matches a string resoruce id. Otherwise the plain text will be displayed

Link copied to clipboard
Link copied to clipboard

Sets the textview to visible and text to be displayed if the given char sequence is not null or blank

Link copied to clipboard

Returns a converted hex string matching the previous int value

Link copied to clipboard