fun String.createJSONArray(): JSONArray?
create JSONArray from String |
|
fun String.createJSONObject(): JSONObject?
create JSONObject from String |
|
fun String.getBitmap(): Bitmap?
get bitmap from filePath |
|
fun String.getImageHeight(): Int
get Height of Image which given String |
|
fun String.getImageMimeType(): String
get MimeType of Image which given String |
|
fun String.getImageWidth(): Int
get Width of Image which given String |
|
fun String.getVideoHeight(): Int
get Height of Video which given String |
|
fun String.getVideoWidth(): Int
get Width of Video which given String |
|
fun String.isEmpty(): Boolean
return string empty state |
|
fun String.isEmptyOrReturn(default: String = ""): String
get string with empty handling |
|
fun String.parseDate(format: String? = "yyyy-MM-dd HH:mm:ss"): Date?
parsing date from String |
|
fun String.toDateString(fromFormat: String, toFormat: String): String
format formatted date to another formatted date |
|
fun String.toFile(): File
make String to File |