|
JubeatPlus 3.9.11
|
The process-wide alert manager. More...
#include <AlertViewManager.h>


Instance Methods | |
| (void) | - closeAlert |
| Dismisses the currently presented alert, if any. | |
| (void) | - makeAlert:delegate:tag:title:msg:cancel:btnText:show:viewController: |
| Builds and optionally presents an alert. | |
| (void) | - makeAlert:delegate:tag:title:msg:cancel:btnText:show: |
| Builds and optionally presents an alert, presenting from the application's root view controller. | |
| (void) | - showUpdateAlert |
| Presents the localised "App update is required." alert, whose only button opens the App Store. | |
Class Methods | |
| (instancetype) | + sharedManager |
| The shared singleton, created once on first access. | |
The process-wide alert manager.
It presents either a UIAlertController (when the class is available at runtime) or a UIAlertView, exposing a single construction API for both.
| - (void) closeAlert |
Dismisses the currently presented alert, if any.
| - (void) makeAlert: | (int) | type | |
| delegate: | (nullable id< AlertViewManagerDelegate >) | delegate | |
| tag: | (int) | tag | |
| title: | (nullable NSString *) | title | |
| msg: | (nullable NSString *) | msg | |
| cancel: | (nullable NSString *) | cancelBtnText | |
| btnText: | (nullable NSArray< NSString * > *) | otherButtonTitles | |
| show: | (BOOL) | show |
Builds and optionally presents an alert, presenting from the application's root view controller.
| type | The alert type; 1 requests a single plain-text input field. |
| delegate | The delegate notified of button taps and close events; held weakly. |
| tag | An identifier echoed back to the delegate. |
| title | The alert title; an empty title is substituted when nil. |
| msg | The alert message. |
| cancelBtnText | The title of the cancel button (index 0). |
| otherButtonTitles | The titles of the remaining buttons, in order. |
| show | Whether to present the alert immediately. |
| - (void) makeAlert: | (int) | type | |
| delegate: | (nullable id< AlertViewManagerDelegate >) | delegate | |
| tag: | (int) | tag | |
| title: | (nullable NSString *) | title | |
| msg: | (nullable NSString *) | msg | |
| cancel: | (nullable NSString *) | cancelBtnText | |
| btnText: | (nullable NSArray< NSString * > *) | otherButtonTitles | |
| show: | (BOOL) | show | |
| viewController: | (nullable UIViewController *) | viewController |
Builds and optionally presents an alert.
| type | The alert type; 1 requests a single plain-text input field. |
| delegate | The delegate notified of button taps and close events; held weakly. |
| tag | An identifier echoed back to the delegate. |
| title | The alert title; an empty title is substituted when nil. |
| msg | The alert message. |
| cancelBtnText | The title of the cancel button (index 0). |
| otherButtonTitles | The titles of the remaining buttons, in order. |
| show | Whether to present the alert immediately. |
| viewController | The controller to present a UIAlertController from; when nil the application's root view controller is used. |
| + (instancetype) sharedManager |
The shared singleton, created once on first access.
AlertViewManager. | - (void) showUpdateAlert |
Presents the localised "App update is required." alert, whose only button opens the App Store.