car/src/main/java/androidx/car/app/CarAlertDialog.java
public CarAlertDialog create() {
            CarAlertDialog dialog = new CarAlertDialog(mContext, /* builder= */ this);

            dialog.setCancelable(mCancelable);
            dialog.setCanceledOnTouchOutside(mCancelable);
            dialog.setOnCancelListener(mOnCancelListener);
            dialog.setOnDismissListener(mOnDismissListener);

            return dialog;
        }
/**
         * Creates an {@link CarAlertDialog} with the arguments supplied to this {@code Builder}.
         *
         * <p>Calling this method does not display the dialog. Utilize this dialog within a
         * {@link androidx.fragment.app.DialogFragment} to show the dialog.
         */
Creates an  CarAlertDialog with the arguments supplied to this  Builder.
Calling this method does not display the dialog. Utilize this dialog within a
androidx.fragment.app.DialogFragment to show the dialog.
Creates an CarAlertDialog with the arguments supplied to this Builder . Calling this method does not display the dialog . Utilize this dialog within a androidx . fragment . app . DialogFragment to show the dialog .
public CarAlertDialog create() {
            CarAlertDialog dialog = new CarAlertDialog(mContext, /* builder= */ this);
            dialog.setCancelable(mCancelable);
            dialog.setCanceledOnTouchOutside(mCancelable);
            dialog.setOnCancelListener(mOnCancelListener);
            dialog.setOnDismissListener(mOnDismissListener);
            return dialog;
        }
public CarAlertDialog create ( ) { CarAlertDialog dialog = new CarAlertDialog ( mContext , /* builder= */ this ) ; dialog . setCancelable ( mCancelable ) ; dialog . setCanceledOnTouchOutside ( mCancelable ) ; dialog . setOnCancelListener ( mOnCancelListener ) ; dialog . setOnDismissListener ( mOnDismissListener ) ; return dialog ; }
Creates an {@link CarAlertDialog} with the arguments supplied to this {@code Builder}.
Creates an { @link CarAlertDialog } with the arguments supplied to this { @code Builder } .