IntentUtils

Types

Link copied to clipboard

AlarmConfig

Properties

Link copied to clipboard
private const val TAG: String

The log tag.

Functions

Link copied to clipboard
@RequiresPermission(value = "com.android.alarm.permission.SET_ALARM")
fun createAlarm(context: Context, alarmConfig: IntentUtils.AlarmConfig = AlarmConfig())

Create alarm.

Link copied to clipboard
@RequiresPermission(value = "android.permission.CALL_PHONE")
fun dialPhoneNumber(context: Context, phoneNumber: String)

Dial phone number.

Link copied to clipboard

Open Application details settings.

Link copied to clipboard
fun openEmail(context: Context, addresses: Array<String>, subject: String = "", text: String = "")

Open email only by email apps (not other SMS or social apps)

Link copied to clipboard
fun openWebPage(context: Context, url: String)

Open url by WebView

Link copied to clipboard

Open wifi settings.

Link copied to clipboard
@RequiresPermission(value = "android.permission.INTERNET")
fun searchWeb(context: Context, query: String)

Search query by webView

Link copied to clipboard
fun sendMmsMessage(context: Context, message: String = "", phoneNumber: String? = null)

Send message only by SMS app (not other email or social apps).

Link copied to clipboard
private fun startIntent(context: Context, intent: Intent)

Start intent.