val Context.accessibilityManager: AccessibilityManager
get AccessibilityManager |
|
val Context.accountManager: AccountManager
get AccountManager |
|
val Context.activityManager: ActivityManager
get ActivityManager |
|
val Context.alarmManager: AlarmManager
get AlarmManager |
|
fun Context.alert(message: String, title: String = "", positiveButton: String? = null, cancelable: Boolean = true, callback: (DialogInterface) -> Unit = {}): Builder
Display AlertDialog instantly fun Context.alert(message: String, title: String = "", positiveButton: String? = null, cancelable: Boolean = true, callback: F1<DialogInterface>?): Builder
Display AlertDialog instantly for SAM Conversion |
|
val Context.appOpsManager: AppOpsManager
get AppOpsManager |
|
val Context.appWidgetManager: AppWidgetManager
get AppWidgetManager |
|
fun Context.applyUnReadCount(count: Int): Unit
apply count of UnRead |
|
val Context.audioManager: AudioManager
get AudioManager |
|
val Context.batteryManager: BatteryManager
get BatteryManager |
|
fun Context.bitmapToDrawable(bitmap: Bitmap): Drawable
Bitmap to Drawable |
|
val Context.bluetoothManager: BluetoothManager
get BluetoothManager |
|
fun Context.browse(url: String, newTask: Boolean = false): Boolean
Browse given url with internal browser |
|
val Context.cameraManager: CameraManager
get CameraManager |
|
val Context.captioningManager: CaptioningManager
get CaptioningManager |
|
fun Context.checkNetwork(): Int
get network connection check |
|
val Context.clipboardManager: ClipboardManager
get ClipboardManager |
|
fun Context.confirm(message: String, callback: DialogInterface.() -> Unit, title: String = "", positiveButton: String? = null, negativeButton: String? = null, cancelable: Boolean = true): Builder
Display AlertDialog instantly with confirm fun Context.confirm(message: String, callback: F1<DialogInterface>?, title: String = "", positiveButton: String? = null, negativeButton: String? = null, cancelable: Boolean = true): Builder
Display AlertDialog instantly with confirm for SAM Conversion |
|
val Context.connectivityManager: ConnectivityManager
get ConnectivityManager |
|
val Context.consumerIrManager: ConsumerIrManager
get ConsumerIrManager |
|
fun Context.copyAssets(path: String): Unit
Assets to Internal storage |
|
fun Context.copyText(text: CharSequence): Unit
copy text to clipboard |
|
fun Context.createNotificationChannel(id: String = "", name: String = "", description: String = "", importance: Int = NotificationManager.IMPORTANCE_HIGH): String
create Notification Channel for Android Oreo and above. every options is optional, if you doesn't matter whatever value, leave them no parameters. |
|
val Context.devicePolicyManager: DevicePolicyManager
get DevicePolicyManager |
|
fun Context.dialCall(number: String): Boolean
Make phone dial with given phone number |
|
fun Context.dimen(resource: Int): Int
get pixel size from DimenRes |
|
fun Context.dip2px(value: Int): Int fun Context.dip2px(value: Float): Int
convert dip to px |
|
val Context.displayManager: DisplayManager
get DisplayManager |
|
val Context.downloadManager: DownloadManager
get downloadManager |
|
val Context.dropBoxManager: DropBoxManager
get DropBoxManager |
|
fun Context.getAndroidId(): String
get androidId of device |
|
fun Context.getContactsList(): List<ContactItem>
load contact data from device |
|
fun Context.getExtension(uri: String?): String
Gets the extension of a file name, like ".png" or ".jpg". |
|
fun Context.getIMEI(): String
get IMEI of device |
|
fun Context.getImageHeight(resId: Int): Int
get Height of Image which given Drawable Resources |
|
fun Context.getImageMimeType(resId: Int): String
get MimeType of Image which given Drawable Resources |
|
fun Context.getImageWidth(resId: Int): Int
get Width of Image which given Drawable Resources |
|
fun Context.getKeyHash(): String
get key hash of application |
|
fun Context.getLine1Number(): String
get Line1Number (as know as PhoneNumber) of device |
|
fun Context.getMimeType(file: File): String |
|
fun Context.getOutputMediaFile(dateFormat: String = "yyyy-MM-dd HH:mm:ss", format: CompressFormat = Bitmap.CompressFormat.JPEG): File
Generate File object in externalFilesDir |
|
fun Context.getStatusBarHeight(): Int
get Height of status bar |
|
fun Context.getTextFromClipboard(): String
get text of clipboard list |
|
fun Context.getThumbnail(file: File): Bitmap?
Attempt to retrieve the thumbnail of given File from the MediaStore. This should not be called on the UI thread. fun Context.getThumbnail(uri: Uri): Bitmap? fun Context.getThumbnail(uri: Uri?, mimeType: String): Bitmap?
Attempt to retrieve the thumbnail of given Uri from the MediaStore. This should not be called on the UI thread. |
|
fun Context.getVideoDuration(videoId: String): Long
get Duration of Video from MediaStore.Video with given videoId |
|
fun Context.getVideoFileId(videoPath: String): String
get id from MediaStore.Video with given videoPath |
|
fun Context.getVideoThumbsPath(videoId: String): String
get Path of Thumbnail from MediaStore.Video with given videoId |
|
fun Context.inflate(layoutRes: Int, parent: ViewGroup? = null, attachToRoot: Boolean = false): View
inflate view |
|
val Context.inputManager: InputManager
get InputManager |
|
val Context.inputMethodManager: InputMethodManager
get InputMethodManager |
|
fun Context.isConnected(): Boolean |
|
fun Context.isMobileConnected(): Boolean
get Mobile connection check |
|
fun Context.isNotConnected(): Boolean
get state of not connected |
|
fun Context.isProcessRunning(): Boolean
get boolean value for whatever application process is running |
|
fun Context.isWifiConnected(): Boolean
get Wifi connection check |
|
val Context.jobScheduler: JobScheduler
get JobScheduler |
|
val Context.keyguardManager: KeyguardManager
get KeyguardManager |
|
val Context.launcherApps: LauncherApps
get LauncherApps |
|
val Context.layoutInflater: LayoutInflater
get LayoutInflater |
|
val Context.locationManager: LocationManager
get LocationManager |
|
fun Context.makeCall(number: String): Boolean
Make phone call with given phone number |
|
val Context.mediaProjectionManager: MediaProjectionManager
get MediaProjectionManager |
|
val Context.mediaRouter: MediaRouter
get MediaRouter |
|
val Context.mediaSessionManager: MediaSessionManager
get MediaSessionManager |
|
val Context.nfcManager: NfcManager
get NfcManager |
|
val Context.notificationManager: NotificationManager
get NotificationManager |
|
val Context.nsdManager: NsdManager
get NsdManager |
|
val Context.powerManager: PowerManager
get PowerManager |
|
val Context.printManager: PrintManager
get PrintManager |
|
fun Context.progress(message: String, cancelable: Boolean = true, title: String = ""): DialogInterface
Display ProgressDialog |
|
fun Context.px2dip(px: Int): Float
convert px to dip |
|
fun Context.px2sp(px: Int): Float
convert px to sp |
|
fun Context.reboot(restartIntent: Intent = this.packageManager.getLaunchIntentForPackage(this.packageName)): Unit
Reboot application |
|
fun Context.removeUnReadCount(): Unit
remove count of UnRead |
|
fun Context.requestMediaScanner(url: String): Unit
Request MediaScanning |
|
val Context.restrictionsManager: RestrictionsManager
get RestrictionsManager |
|
fun Context.saveBitmapToFile(bitmap: Bitmap, dateFormat: String = "yyyy-MM-dd HH:mm:ss", format: CompressFormat = Bitmap.CompressFormat.JPEG, quality: Int = 100): File?
Save Bitmap to generated File |
|
val Context.searchManager: SearchManager
get SearchManager |
|
fun <T> Context.selector(items: List<T>, callback: (DialogInterface, item: T, Int) -> Unit, title: String = "", cancelable: Boolean = true): Builder
Display SelectorDialog instantly fun <T> Context.selector(items: List<T>, callback: F3<DialogInterface, T, Int>?, title: String = "", cancelable: Boolean = true): Builder
Display SelectorDialog instantly for SAM Conversion |
|
val Context.sensorManager: SensorManager
get SensorManager |
|
fun Context.setTypeface(layoutRes: Int, parent: ViewGroup? = null, isAttachedRoot: Boolean = false): View? fun Context.setTypeface(view: ViewGroup, parent: ViewGroup? = null, isAttachedRoot: Boolean = false): View?
Set system font into ViewGroup |
|
fun Context.sp2px(value: Int): Int fun Context.sp2px(value: Float): Int
convert sp to px |
|
val Context.storageManager: StorageManager
get StorageManager |
|
val Context.telecomManager: TelecomManager
get TelecomManager |
|
val Context.telephonyManager: TelephonyManager
get TelephonyManager |
|
val Context.textServicesManager: TextServicesManager
get TextServicesManager |
|
fun Context.toast(message: String, length: Int = Toast.LENGTH_SHORT): Unit fun Context.toast(message: Int, length: Int = Toast.LENGTH_SHORT): Unit
Display Toast Message |
|
fun Context.toggleKeyboard(): Unit
toggle keyboard open / close |
|
val Context.tvInputManager: TvInputManager
get TvInputManager |
|
val Context.uiModeManager: UiModeManager
get UiModeManager |
|
val Context.usbManager: UsbManager
get UsbManager |
|
val Context.userManager: UserManager
get UserManager |
|
fun Context.versionCode(): Int
get version code of this application |
|
fun Context.versionName(): String
get version name of this application |
|
fun Context.vibrate(millSec: Long): Unit fun Context.vibrate(pattern: LongArray, repeat: Int = -1): Unit
Vibrate need VIBRATE permission |
|
val Context.vibrator: Vibrator
get Vibrator |
|
val Context.wallpaperManager: WallpaperManager
get WallpaperManager |
|
val Context.wifiManager: WifiManager
get WifiManager |
|
val Context.wifiP2pManager: WifiP2pManager
get WifiP2pManager |
|
val Context.windowManager: WindowManager
get WindowManager |