SettingsDialog

class SettingsDialog(context: Context, @StyleRes() theme: Int, requestCode: Int, openOnNewTask: Boolean, title: String?, rationale: String?, positiveButtonText: String?, negativeButtonText: String?) : DialogInterface.OnClickListener

Dialog to prompt the user to go to the app's settings screen and enable permissions. If the user clicks 'OK' on the dialog, they are sent to the settings screen. The result is returned to the Activity via Activity.onActivityResult.

Constructors

SettingsDialog
Link copied to clipboard
fun SettingsDialog(context: Context, @StyleRes() theme: Int, requestCode: Int, openOnNewTask: Boolean, title: String?, rationale: String?, positiveButtonText: String?, negativeButtonText: String?)

Types

Builder
Link copied to clipboard
class Builder(context: Context)
Builder for an SettingsDialog.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onClick
Link copied to clipboard
open override fun onClick(dialogInterface: DialogInterface?, buttonType: Int)
show
Link copied to clipboard
fun show()
Display the dialog.
toString
Link copied to clipboard
open fun toString(): String