Share via


IUIAlertViewDelegate Interface

Definition

A class used to receive notifications from a UIAlertView.

[Foundation.Protocol(Name="UIAlertViewDelegate", WrapperType=typeof(UIKit.UIAlertViewDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Clicked", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView), typeof(System.IntPtr) }, Selector="alertView:clickedButtonAtIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Canceled", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, Selector="alertViewCancel:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresent", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, Selector="willPresentAlertView:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Presented", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, Selector="didPresentAlertView:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillDismiss", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView), typeof(System.IntPtr) }, Selector="alertView:willDismissWithButtonIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Dismissed", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView), typeof(System.IntPtr) }, Selector="alertView:didDismissWithButtonIndex:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldEnableFirstOtherButton", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, ReturnType=typeof(System.Boolean), Selector="alertViewShouldEnableFirstOtherButton:")]
public interface IUIAlertViewDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIAlertViewDelegate", WrapperType=typeof(UIKit.UIAlertViewDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Clicked", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView), typeof(System.IntPtr) }, Selector="alertView:clickedButtonAtIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Canceled", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, Selector="alertViewCancel:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillPresent", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, Selector="willPresentAlertView:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Presented", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, Selector="didPresentAlertView:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillDismiss", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView), typeof(System.IntPtr) }, Selector="alertView:willDismissWithButtonIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="Dismissed", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView), typeof(System.IntPtr) }, Selector="alertView:didDismissWithButtonIndex:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldEnableFirstOtherButton", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIAlertView) }, ReturnType=typeof(System.Boolean), Selector="alertViewShouldEnableFirstOtherButton:")>]
type IUIAlertViewDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A strongly typed implementation of a class that can be used to respond to events raised by the UIAlertView.

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
Canceled(UIAlertView)

Indicates that this UIAlertView is about to be canceled.

Clicked(UIAlertView, IntPtr)

Indicates that the user has clicked a button in this UIAlertView.

Dismissed(UIAlertView, IntPtr)

Indicates that this UIAlertView has been dismissed.

Presented(UIAlertView)

Indicates that this UIAlertView has been presented to the application user.

ShouldEnableFirstOtherButton(UIAlertView)

Whether the first non-cancel button in this UIAlertView should be enabled.

WillDismiss(UIAlertView, IntPtr)

Indicates that this UIAlertView will shortly be dismissed.

WillPresent(UIAlertView)

Indicates that this UIAlertView will shortly be presented to the application user.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
Canceled(IUIAlertViewDelegate, UIAlertView)

Indicates that this UIAlertView is about to be canceled.

Clicked(IUIAlertViewDelegate, UIAlertView, IntPtr)

Indicates that the user has clicked a button in this UIAlertView.

Dismissed(IUIAlertViewDelegate, UIAlertView, IntPtr)

Indicates that this UIAlertView has been dismissed.

Presented(IUIAlertViewDelegate, UIAlertView)

Indicates that this UIAlertView has been presented to the application user.

ShouldEnableFirstOtherButton(IUIAlertViewDelegate, UIAlertView)

Whether the first non-cancel button in this UIAlertView should be enabled.

WillDismiss(IUIAlertViewDelegate, UIAlertView, IntPtr)

Indicates that this UIAlertView will shortly be dismissed.

WillPresent(IUIAlertViewDelegate, UIAlertView)

Indicates that this UIAlertView will shortly be presented to the application user.

Applies to

See also