Package com.github.ushiosan23.android_utilities.utilities

Functions

directoryChooserIntent
Link copied to clipboard
fun directoryChooserIntent(uri: Uri? = null): Intent
Create intent to select external storage directory.
fileChooserIntent
Link copied to clipboard
fun fileChooserIntent(typeEl: String = "*/*", uri: Uri? = null): Intent
Create intent to select external storage file.
generateIntList
Link copied to clipboard
fun generateIntList(total: UInt): List<Int>
Generate a random order list.
getSystemHandler
Link copied to clipboard
fun getSystemHandler(): Handler
Get valid system handler.
getTimeMillis
Link copied to clipboard
fun getTimeMillis(): Long
Get device time in milliseconds
inflateBinding
Link copied to clipboard
fun <T : ViewBinding> inflateBinding(clazz: Class<T>, inflater: LayoutInflater): T?
Inflate layout binding class.
fun <T : ViewBinding> inflateBinding(clazz: Class<T>, inflater: LayoutInflater, parent: ViewGroup?, attachToParent: Boolean): T?
Inflate layout binding class.
logAnyError
Link copied to clipboard
fun logAnyError(cause: Any?): Int
Show log warning
logError
Link copied to clipboard
fun logError(throwable: Throwable): Int
Show log error
fun logError(tag: String, cause: CharSequence?): Int
Show log error
fun logError(tag: String, throwable: Throwable): Int
Show log error
logInfo
Link copied to clipboard
fun logInfo(obj: Any?): Int
Show log information
fun logInfo(tag: String, message: Any?): Int
Show log information
fun logInfo(tag: String, message: CharSequence?): Int
Show log information
logWarning
Link copied to clipboard
fun logWarning(obj: Any?): Int
Show log warning
fun logWarning(tag: String, message: Any?): Int
Show log warning
fun logWarning(tag: String, message: CharSequence?): Int
Show log warning
runOnUiThreadEx
Link copied to clipboard
fun runOnUiThreadEx(action: Runnable): Boolean
Run action in android UI Thread.
fun runOnUiThreadEx(action: Runnable, delay: Long = 0L): Boolean
Run action in android UI Thread with delay.

Properties

systemCalendar
Link copied to clipboard
val systemCalendar: Calendar
Get system calendar