Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

CarAlertDialog

open class CarAlertDialog : Dialog
kotlin.Any
   ↳ android.app.Dialog
   ↳ androidx.car.app.CarAlertDialog

A subclass of Dialog that is tailored for the car environment. This dialog can display a title text, body text, and up to two buttons -- a positive and negative button. There is no affordance for displaying a custom view or list of content, differentiating it from a regular AlertDialog.

Summary

Nested classes

Builder class that can be used to create a CarAlertDialog by configuring the options for what shows up in the resulting dialog.

Public methods

open Unit

Protected methods

open Unit
onCreate(savedInstanceState: Bundle!)

Public methods

setTitle

open fun setTitle(title: CharSequence!): Unit

Protected methods

onCreate

protected open fun onCreate(savedInstanceState: Bundle!): Unit