iOS Guides | Samples

UIKit.UIAlertViewDelegate Class

A class used to receive notifications from a UIAlertView.

See Also: UIAlertViewDelegate

Syntax

[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("UIAlertViewDelegate", false)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIAlertViewDelegate : NSObject, IUIAlertViewDelegate, IDisposable

Remarks

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

Related content

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.UIAlertViewDelegate are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

Canceled(UIAlertView)
Indicates that this UIAlertView is about to be canceled.
Clicked(UIAlertView, nint)
Indicates that the user has clicked a button in this UIAlertView.
Dismissed(UIAlertView, nint)
Indicates that this UIAlertView has been dismissed.
Presented(UIAlertView)
Indicates that this UIAlertView has been presented to the application user.
ShouldEnableFirstOtherButton(UIAlertView) : Boolean
Whether the first non-cancel button in this UIAlertView should be enabled.
WillDismiss(UIAlertView, nint)
Indicates that this UIAlertView will shortly be dismissed.
WillPresent(UIAlertView)
Indicates that this UIAlertView will shortly be presented to the application user.