Show / Hide Table of Contents

Class UM_NativeDialogBuilder

Use to construct the native dialog UI.

Inheritance
System.Object
UM_NativeDialogBuilder
Inherited Members
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.CrossPlatform.UI
Assembly: cs.temp.dll.dll
Syntax
public class UM_NativeDialogBuilder

Constructors

UM_NativeDialogBuilder(String, String)

Create new native dialog builder instance.

Declaration
public UM_NativeDialogBuilder(string title, string message)
Parameters
Type Name Description
System.String title

Alert Title.

System.String message

Alert Message

Properties

DestructiveButton

Gets the destructive button.

Declaration
public UM_NativeDialogBuilder.Button DestructiveButton { get; }
Property Value
Type Description
UM_NativeDialogBuilder.Button

Message

Alert Message.

Declaration
public string Message { get; }
Property Value
Type Description
System.String

NegativeButton

Gets the negative button.

Declaration
public UM_NativeDialogBuilder.Button NegativeButton { get; }
Property Value
Type Description
UM_NativeDialogBuilder.Button

NeutralButton

Gets the neutral button.

Declaration
public UM_NativeDialogBuilder.Button NeutralButton { get; }
Property Value
Type Description
UM_NativeDialogBuilder.Button

PositiveButton

Gets the positive button.

Declaration
public UM_NativeDialogBuilder.Button PositiveButton { get; }
Property Value
Type Description
UM_NativeDialogBuilder.Button

Title

Alert Title.

Declaration
public string Title { get; }
Property Value
Type Description
System.String

Methods

Build()

Build the dialog based on a builder properties

Declaration
public UM_iUIDialog Build()
Returns
Type Description
UM_iUIDialog

SetDestructiveButton(String, Action)

Set button with destructive style, that indicates the action might change or delete data.

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

button text

Action callback

click listener

SetMessage(String)

Set alert Message.

Declaration
public void SetMessage(string message)
Parameters
Type Name Description
System.String message

New alert message.

SetNegativeButton(String, Action)

Set button with negative style, that indicates the action cancels the operation and leaves things unchanged.

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

button text

Action callback

click listener

SetNeutralButton(String, Action)

Set button with default style.

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

button text

Action callback

click listener

SetPositiveButton(String, Action)

Set button with positive style.

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

button text

Action callback

click listener

SetTitle(String)

Set alert Title.

Declaration
public void SetTitle(string title)
Parameters
Type Name Description
System.String title

New alert title.

In This Article
Back to top Generated by DocFX