data class ContactItem |
|
enum class Intensity |
|
class RHintSpinner
RHintSpinner Created by WindSekirun 2016-01-09. |
|
class RPermission |
|
class RPickMedia |
|
class RPreference |
|
enum class ResizeMode |
fun applyAlphaIntoColor(color: Int, alpha: Int): Int
apply alpha value range of alpha is 0 to 255. |
|
fun downloadBitmap(imageUrl: String): Bitmap?
Download bitmap from uri |
|
fun drawableToBitmap(drawable: Drawable): Bitmap
Convert Drawable to Bitmap in safe way |
|
fun getJSONArray(jsonObject: JSONObject?, name: String): JSONArray?
get JSONArray from JSONObject fun getJSONArray(jsonArray: JSONArray?, index: Int): JSONArray?
get JSONArray from JSONArray |
|
fun getJSONObject(jsonObject: JSONObject?, name: String): JSONObject?
get JSONObject from JSONObject fun getJSONObject(jsonArray: JSONArray?, index: Int): JSONObject?
get JSONObject from JSONArray |
|
fun getPhotoHeight(filePath: String?): Int
get height of photo from ExifInterface |
|
fun getPhotoOrientationDegree(filePath: String?): Int
get orientation degree of photo from ExifInterface |
|
fun getPhotoWidth(filePath: String?): Int
get width of photo from ExifInterface |
|
fun getVibratorPattern(intensity: Intensity, duration: Long): LongArray
get Intensity (Desired Strength) of Vibrate NOTE: Some device's default value may 0.7f (Tested in Galaxy S6), fun getVibratorPattern(intensity: Float, duration: Long): LongArray
get Intensity (Desired Strength) of Vibrate Normal Way, just use getVibratorPattern(Intensity, long) for easy work. |
|
fun put(jsonObject: JSONObject?, name: String, value: Any): JSONObject?
put value to JSONObject fun put(jsonArray: JSONArray?, index: Int, value: Any): JSONArray?
put value to JSONArray fun put(jsonArray: JSONArray?, value: Any): JSONArray?
put value to JSONArray without ordering |
|
fun rotate(bitmap: Bitmap, degree: Int): Bitmap
rotate bitmap |
|
fun runAsync(action: () -> Unit): Unit
run code inside of Background Thread |
|
fun runDelayed(action: () -> Unit, delayMillis: Long): Boolean
run code inside of Background Thread after given delay |
|
fun runDelayedOnUiThread(action: () -> Unit, delayMillis: Long): Boolean
run code inside of UI Thread after given delay |
|
fun runNaraeAsync(action: () -> Unit, poolSize: Int = RAsync.instance.settingPoolSize, taskType: String = RAsync.instance.settingTaskType): Unit
run code inside of Background thread with custom pool size and tasksa this will help in multi-threading working |
|
fun runOnUiThread(action: () -> Unit): Boolean
run code inside of UI Thread |