kutils / com.celites.kutils

Package com.celites.kutils

Type Aliases

ErrorSender

typealias ErrorSender = (Throwable) -> Unit

MessageSender

typealias MessageSender = (String) -> Unit

Extensions for External Classes

android.app.Activity

android.content.ContentResolver

android.content.Context

android.content.SharedPreferences

android.graphics.drawable.Drawable

android.net.Uri

android.os.Bundle

android.view.View

android.widget.ImageView

android.widget.TextView

androidx.appcompat.app.AlertDialog.Builder

androidx.documentfile.provider.DocumentFile

androidx.fragment.app.Fragment

androidx.fragment.app.FragmentActivity

java.io.File

java.util.Calendar

java.util.Date

kotlin.CharSequence

kotlin.String

Properties

NO_GETTER

const val NO_GETTER: String

now

val now: Long

Gets value of Milliseconds of current time

platformApi

val platformApi: Int

Functions

getCurrentTimeInFormat

fun getCurrentTimeInFormat(stringFormat: String): String

Gets current time in given format

noGetter

fun noGetter(): Nothing

platformIsGreaterThan

fun platformIsGreaterThan(version: Int): Boolean

platformIsOlderThan

fun platformIsOlderThan(version: Int): Boolean

runAndLogException

fun runAndLogException(block: () -> Unit): Unit

setVisible

fun setVisible(condition: Boolean, shouldBeGoneWhenFalse: Boolean = true): Unit