Class ISN_UIAlertAction
An action that can be taken when the user taps a button in an alert.
Inheritance
Inherited Members
Namespace: SA.iOS.UIKit
Assembly: cs.temp.dll.dll
Syntax
public class ISN_UIAlertAction
Constructors
ISN_UIAlertAction(String, ISN_UIAlertActionStyle, Action)
Create and return an action with the specified title and behavior.
Declaration
public ISN_UIAlertAction(string title, ISN_UIAlertActionStyle style, Action action)
Parameters
Type | Name | Description |
---|---|---|
System.String | title | The text to use for the button title. The value you specify should be localized for the user’s current language. This parameter must not be nil, except in a tvOS app where a nil title may be used with Cancel.. |
ISN_UIAlertActionStyle | style | Additional styling information to apply to the button. Use the style information to convey the type of action that is performed by the button. For a list of possible values, see the constants in ISN_UIAlertActionStyle. |
Action | action | A block to execute when the user selects the action. |
Properties
Enabled
A Boolean value indicating whether the action is currently enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Id
Gets the unique action identifier.
Declaration
public int Id { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Preferred
True if action is proffered.
Declaration
public bool Preferred { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Preffered
Declaration
public bool Preffered { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Style
The style that is applied to the action’s button.
Declaration
public ISN_UIAlertActionStyle Style { get; }
Property Value
Type | Description |
---|---|
ISN_UIAlertActionStyle |
Title
The title of the action’s button.
Declaration
public string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Invoke()
Declaration
public void Invoke()
MakePreferred()
Declaration
public void MakePreferred()
MakePreffered()
Declaration
public void MakePreffered()
SetImage(Texture2D)
Adds an image to the action ui.
Declaration
public void SetImage(Texture2D image)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | image | Action Image. The image has to be readable. |