belongs to Maven artifact androidx.car:car:1.0.0-alpha1

CarAlertDialog

public class CarAlertDialog
extends Dialog

java.lang.Object
   ↳ 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

class CarAlertDialog.Builder

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

Inherited constants

Public methods

void setTitle(CharSequence title)

Protected methods

void onCreate(Bundle savedInstanceState)

Inherited methods

Public methods

setTitle

void setTitle (CharSequence title)

Parameters
title CharSequence

Protected methods

onCreate

void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle