setIcon

Set the resource id of the Drawable to be used in the title.

Takes precedence over values set using setIcon.

Return

This Builder object to allow for chaining of calls to set methods


open fun setIcon(@Nullable icon: @Nullable Drawable): AlertDialog.Builder(source)

Set the Drawable to be used in the title.

Note: To ensure consistent styling, the drawable should be inflated or constructed using the alert dialog's themed context obtained via getContext.

Return

this Builder object to allow for chaining of calls to set methods