UgiDefaultConfigurationUi Class Reference

Overview


Default implementation of UgiConfigurationDelegate.

May be subclassed by applications.

Instance Methods

(NSObject *_Nonnull) - showOkCancel:message:okButtonTitle:cancelButtonTitle:withCompletion:withCancelCompletion:
 
Show an alert with ok and cancel buttons More...
 
(NSObject *_Nonnull) - showOk:message:okButtonTitle:withCompletion:
 
Show an alert with an ok button More...
 
(void) - hideAlert:
 
Hide an alert More...
 
(void) - updateAlert:withMessage:
 
Update the message in an alert More...
 
(void) - showWaiting:withCancelCompletion:
 
Show "waiting" alert, call completion if cancelled More...
 
(void) - showWaiting:
 
Show "waiting" alert without cancel More...
 
(void) - hideWaiting
 
Hide "waiting" alert
 
(void) - showViewController:
 
Show a view controller More...
 
(void) - hideViewController:
 
Hide a view controller More...
 

Instance Method Documentation

◆ showOkCancel:message:okButtonTitle:cancelButtonTitle:withCompletion:withCancelCompletion:()

- (NSObject * _Nonnull) showOkCancel: (NSString *_Nullable)  title
message: (NSString *_Nullable)  message
okButtonTitle: (NSString *_Nullable)  okButtonTitle
cancelButtonTitle: (NSString *_Nullable)  cancelButtonTitle
withCompletion: (nullable void(^)(void))  completion
withCancelCompletion: (nullable void(^)(void))  cancelCompletion 


Show an alert with ok and cancel buttons

Parameters
titleTitle for the alert
messageText for the body of the alert
okButtonTitleText for the "ok" button, or "" for the defualt, or nil for no ok button
cancelButtonTitleText for the "cancel" button, or "" for the defualt, or nil for no cancel button
completionBlock to execute for "ok"
cancelCompletionBlock to execute for "cancel"
Returns
The alert

◆ showOk:message:okButtonTitle:withCompletion:()

- (NSObject * _Nonnull) showOk: (NSString *_Nullable)  title
message: (NSString *_Nullable)  message
okButtonTitle: (NSString *_Nullable)  okButtonTitle
withCompletion: (nullable void(^)(void))  completion 


Show an alert with an ok button

Parameters
titleTitle for the alert
messageText for the body of the alert
okButtonTitleText for the "ok" button, or "" for the defualt, or nil for no ok button
completionBlock to execute for "ok"
Returns
The alert

◆ hideAlert:()

- (void) hideAlert: (NSObject *_Nonnull)  alert


Hide an alert

Parameters
alertThe alert to hide

◆ updateAlert:withMessage:()

- (void) updateAlert: (NSObject *_Nonnull)  alert
withMessage: (NSString *_Nullable)  message 


Update the message in an alert

Parameters
alertThe alert to update
messageText for the body of the alert

◆ showWaiting:withCancelCompletion:()

- (void) showWaiting: (NSString *_Nonnull)  message
withCancelCompletion: (nullable void(^)(void))  cancelCompletion 


Show "waiting" alert, call completion if cancelled

Parameters
messageText for the body of the alert
cancelCompletionBlock to execute for "cancel" (or nil if cancel is not an option)

◆ showWaiting:()

- (void) showWaiting: (NSString *_Nonnull)  message


Show "waiting" alert without cancel

Parameters
messageText for the body of the alert

◆ showViewController:()

- (void) showViewController: (UIViewController *_Nonnull)  viewController


Show a view controller

Parameters
viewControllerView controller to show

◆ hideViewController:()

- (void) hideViewController: (UIViewController *_Nonnull)  viewController


Hide a view controller

Parameters
viewControllerView controller to hide