Package-level declarations

Types

Link copied to clipboard

Activity utils.

Link copied to clipboard
object AppUtils
Link copied to clipboard
object ColorUtils
Link copied to clipboard
object DateUtils

Date utils.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
internal fun ByteArray.bytesToHex(): String
Link copied to clipboard
fun Context.color(@ColorRes resId: Int): Int?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> findByContext(callback: T? = null, method: Context.() -> T?): T

Using the context provided by ContextHelper.getAppContext and method to find the required resources.

Link copied to clipboard
inline fun <T : Any> findByResources(callback: T? = null, method: (Resources, Resources.Theme) -> T?): T

Using the resources and theme provided by ContextHelper.getAppContext and method to find the required resources.

Link copied to clipboard
internal fun getFileMD5(file: File): String

Returns a byte array of the calculated hash of file.

Link copied to clipboard

Determine if GPS is turned on.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun unzip(src: File, dest: File)

Extract the file specified by src to the dest directory.

Link copied to clipboard
Link copied to clipboard
fun zip(src: File, dest: File): Boolean

Compress files under src to dest.

Link copied to clipboard
private fun zipFileOrDirectory(out: ZipOutputStream, fileOrDirectory: File, curPath: String)