Show / Hide Table of Contents

Class AN_AlertDialog

A subclass of Dialog that can display one, two or three buttons.

Inheritance
System.Object
AN_Dialog
AN_AlertDialog
Inherited Members
AN_Dialog.Id
AN_Dialog.Title
AN_Dialog.Message
AN_Dialog.Cancelable
AN_Dialog.ThemeId
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.Android.App
Assembly: cs.temp.dll.dll
Syntax
public class AN_AlertDialog : AN_Dialog

Constructors

AN_AlertDialog()

Creates a dialog window that uses the default dialog theme.

Declaration
public AN_AlertDialog()

AN_AlertDialog(AN_DialogTheme)

Creates a dialog window that uses a custom dialog style.

Declaration
public AN_AlertDialog(AN_DialogTheme theme)
Parameters
Type Name Description
AN_DialogTheme theme

Dialog theme

Methods

Hide()

Closes the dialog.

Declaration
public override void Hide()
Overrides
AN_Dialog.Hide()

SetNegativeButton(String, Action)

Set a listener to be invoked when the negative button of the dialog is pressed.

Declaration
public void SetNegativeButton(string text, Action callback)
Parameters
Type Name Description
System.String text

button text

Action callback

click listner

SetNeutralButton(String, Action)

Set a listener to be invoked when the neutral button of the dialog is pressed.

Declaration
public void SetNeutralButton(string text, Action callback)
Parameters
Type Name Description
System.String text

button text

Action callback

click listner

SetPositiveButton(String, Action)

Set a listener to be invoked when the positive button of the dialog is pressed.

Declaration
public void SetPositiveButton(string text, Action callback)
Parameters
Type Name Description
System.String text

button text

Action callback

click listner

Show()

Start the dialog and display it on screen.

Declaration
public override void Show()
Overrides
AN_Dialog.Show()
In This Article
Back to top Generated by DocFX