C# Class EasyBike.Droid.Helpers.ExtendedDialogService

An implementation of IDialogService allowing to display simple dialogs to the user. Note that this class uses the built in Android dialogs which may or may not be sufficient for your needs. Using this class is easy but feel free to develop your own IDialogService implementation if needed.
Inheritance: IDialogService
Afficher le fichier Open project: ThePublicBikeGang/EasyBike

Méthodes publiques

Méthode Description
ShowError ( Exception error, string title, string buttonText, System.Action afterHideCallback ) : System.Threading.Tasks.Task

Displays information about an error.

Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.

ShowError ( string message, string title, string buttonText, System.Action afterHideCallback ) : System.Threading.Tasks.Task

Displays information about an error.

Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.

ShowMessage ( string message, string title ) : System.Threading.Tasks.Task

Displays information to the user. The dialog box will have only one button with the text "OK".

Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.

ShowMessage ( string message, string title, string buttonText, System.Action afterHideCallback ) : System.Threading.Tasks.Task

Displays information to the user. The dialog box will have only one button.

Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.

ShowMessage ( string message, string title, string buttonConfirmText, string buttonCancelText, Action afterHideCallback ) : Task

Displays information to the user. The dialog box will have only one button.

Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.

ShowMessageBox ( string message, string title ) : System.Threading.Tasks.Task

Displays information to the user in a simple dialog box. The dialog box will have only one button with the text "OK". This method should be used for debugging purposes.

Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.

Private Methods

Méthode Description
CreateDialog ( string content, string title, string okText = null, string cancelText = null, Action afterHideCallbackWithResponse = null ) : AlertDialogInfo

Method Details

ShowError() public méthode

Displays information about an error.
Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.
public ShowError ( Exception error, string title, string buttonText, System.Action afterHideCallback ) : System.Threading.Tasks.Task
error System.Exception The exception of which the message must be shown to the user.
title string The title of the dialog box. This may be null.
buttonText string The text shown in the only button /// in the dialog box. If left null, the text "OK" will be used.
afterHideCallback System.Action A callback that should be executed after /// the dialog box is closed by the user.
Résultat System.Threading.Tasks.Task

ShowError() public méthode

Displays information about an error.
Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.
public ShowError ( string message, string title, string buttonText, System.Action afterHideCallback ) : System.Threading.Tasks.Task
message string The message to be shown to the user.
title string The title of the dialog box. This may be null.
buttonText string The text shown in the only button /// in the dialog box. If left null, the text "OK" will be used.
afterHideCallback System.Action A callback that should be executed after /// the dialog box is closed by the user.
Résultat System.Threading.Tasks.Task

ShowMessage() public méthode

Displays information to the user. The dialog box will have only one button with the text "OK".
Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.
public ShowMessage ( string message, string title ) : System.Threading.Tasks.Task
message string The message to be shown to the user.
title string The title of the dialog box. This may be null.
Résultat System.Threading.Tasks.Task

ShowMessage() public méthode

Displays information to the user. The dialog box will have only one button.
Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.
public ShowMessage ( string message, string title, string buttonText, System.Action afterHideCallback ) : System.Threading.Tasks.Task
message string The message to be shown to the user.
title string The title of the dialog box. This may be null.
buttonText string The text shown in the only button /// in the dialog box. If left null, the text "OK" will be used.
afterHideCallback System.Action A callback that should be executed after /// the dialog box is closed by the user.
Résultat System.Threading.Tasks.Task

ShowMessage() public méthode

Displays information to the user. The dialog box will have only one button.
Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.
public ShowMessage ( string message, string title, string buttonConfirmText, string buttonCancelText, Action afterHideCallback ) : Task
message string The message to be shown to the user.
title string The title of the dialog box. This may be null.
buttonConfirmText string The text shown in the "confirm" button /// in the dialog box. If left null, the text "OK" will be used.
buttonCancelText string The text shown in the "cancel" button /// in the dialog box. If left null, the text "Cancel" will be used.
afterHideCallback Action A callback that should be executed after /// the dialog box is closed by the user. The callback method will get a boolean /// parameter indicating if the "confirm" button (true) or the "cancel" button /// (false) was pressed by the user.
Résultat Task

ShowMessageBox() public méthode

Displays information to the user in a simple dialog box. The dialog box will have only one button with the text "OK". This method should be used for debugging purposes.
Displaying dialogs in Android is synchronous. As such, this method will be executed synchronously even though it can be awaited for cross-platform compatibility purposes.
public ShowMessageBox ( string message, string title ) : System.Threading.Tasks.Task
message string The message to be shown to the user.
title string The title of the dialog box. This may be null.
Résultat System.Threading.Tasks.Task