ContextExtension

ContextExtension Extension function related to Context

Author

jimlyas

Since

13 Jan 2023

Copyright © 2022-2023 jimlyas. All rights reserved.

Functions

Link copied to clipboard

Extension function of Context to open an in-app browser

Link copied to clipboard

Function to determine does current device is tampered or not

Link copied to clipboard
fun Context.showDialog(title: String, message: String, positiveAction: Pair<String, () -> Unit?>, negativeAction: Pair<String, () -> Unit?>? = null)

Extension function of Context to display Material Dialog

Link copied to clipboard
fun Context.showNotification(channelId: String, title: String, message: String, @DrawableRes icon: Int, notificationId: Int = 0, pendingIntent: PendingIntent? = null)

Extension function of Context to display notification

Link copied to clipboard
fun Context.showToast(message: String, isItLong: Boolean = false)

Extension function of Context to display

Link copied to clipboard

Function to check app that install current application

Properties

Link copied to clipboard

Variable to check does the current application is debuggable or not