Mobile API Reference  MicroStrategy 2019
MSIAlertView Class Reference

#import <MSIAlertView.h>

Inheritance diagram for MSIAlertView:

Instance Methods

(nullable instancetype) - initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:
 
(NSInteger) - addButtonWithTitle:
 
(nullable NSString *) - buttonTitleAtIndex:
 
(void) - show
 
(void) - dismissWithClickedButtonIndex:animated:
 
(void) - addAction:
 
(UIAlertAction *preferredAction) - NS_AVAILABLE_IOS
 

Class Methods

(void) + dismissAlertsAnimated:completion:
 
(void) + dismissTopAlertAnimated:completion:
 
(nullable UIAlertController *) + popTopAlertControl:
 
(BOOL+ isAlertOnTop
 
(nullable MSIAlertView *) + showAlert:animated:
 

Properties

UIAlertController * alertController
 
id delegate
 
NSString * title
 
NSString * message
 
NSInteger tag
 
id _Nullable retainSelf
 
NSInteger cancelButtonIndex
 
BOOL visible
 
NSArray< UIAlertAction * > * actions
 

Method Documentation

◆ addAction:()

- (void) addAction: (nonnull UIAlertAction *)  action

Provided by category MSIAlertView(UIAlertControllerAPI).

◆ addButtonWithTitle:()

- (NSInteger) addButtonWithTitle: (nullable NSString *)  title

◆ buttonTitleAtIndex:()

- (nullable NSString *) buttonTitleAtIndex: (NSInteger)  buttonIndex

◆ dismissAlertsAnimated:completion:()

+ (void) dismissAlertsAnimated: (BOOL animated
completion: (void(^)(void))  completion 

Provided by category MSIAlertView(publicAPI).

◆ dismissTopAlertAnimated:completion:()

+ (void) dismissTopAlertAnimated: (BOOL animated
completion: (void(^)(void))  completion 

Provided by category MSIAlertView(publicAPI).

◆ dismissWithClickedButtonIndex:animated:()

- (void) dismissWithClickedButtonIndex: (NSInteger)  buttonIndex
animated: (BOOL animated 

◆ initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:()

- (nullable instancetype) initWithTitle: (nullable NSString *)  title
message: (nullable NSString *)  message
delegate: (nullable id/*< MSIAlertViewDelegate > */)  delegate
cancelButtonTitle: (nullable NSString *)  cancelButtonTitle
otherButtonTitles: (nullable NSString *)  otherButtonTitles
,   NS_REQUIRES_NIL_TERMINATION 

◆ isAlertOnTop()

+ (BOOL) isAlertOnTop

Provided by category MSIAlertView(publicAPI).

◆ NS_AVAILABLE_IOS()

- (UIAlertAction* preferredAction) NS_AVAILABLE_IOS (9_0) 

Provided by category MSIAlertView(UIAlertControllerAPI).

◆ popTopAlertControl:()

+ (nullable UIAlertController *) popTopAlertControl: (BOOL animated

Provided by category MSIAlertView(publicAPI).

◆ show()

- (void) show

◆ showAlert:animated:()

+ (nullable MSIAlertView *) showAlert: (nullable UIAlertController *)  alertController
animated: (BOOL animated 

Provided by category MSIAlertView(publicAPI).

Property Documentation

◆ actions

- (NSArray<UIAlertAction *>*) actions
readnonatomicassign

Provided by category MSIAlertView(UIAlertControllerAPI).

◆ alertController

- (UIAlertController*) alertController
readwritenonatomicstrong

◆ cancelButtonIndex

- (NSInteger) cancelButtonIndex
readwritenonatomicassign

◆ delegate

- (id) delegate
readwritenonatomicweak

◆ message

- (NSString*) message
readwritenonatomiccopy

◆ retainSelf

- (id _Nullable) retainSelf
readwritenonatomicassign

◆ tag

- (NSInteger) tag
readwritenonatomicassign

◆ title

- (NSString*) title
readwritenonatomiccopy

◆ visible

- (BOOL) visible
readnonatomicassign