JubeatPlus 3.9.11
Loading...
Searching...
No Matches
AlertViewManager Class Reference

The process-wide alert manager. More...

#include <AlertViewManager.h>

Inheritance diagram for AlertViewManager:
Collaboration diagram for AlertViewManager:

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.

Detailed Description

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.

Method Documentation

◆ closeAlert

- (void) closeAlert

Dismisses the currently presented alert, if any.

Ghidra address:
0xa8b08
Ghidra address:
0xa8bd8

◆ makeAlert:delegate:tag:title:msg:cancel:btnText:show:

- (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.

Parameters
typeThe alert type; 1 requests a single plain-text input field.
delegateThe delegate notified of button taps and close events; held weakly.
tagAn identifier echoed back to the delegate.
titleThe alert title; an empty title is substituted when nil.
msgThe alert message.
cancelBtnTextThe title of the cancel button (index 0).
otherButtonTitlesThe titles of the remaining buttons, in order.
showWhether to present the alert immediately.
Ghidra address:
0xa956c

◆ makeAlert:delegate:tag:title:msg:cancel:btnText:show:viewController:

- (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.

Parameters
typeThe alert type; 1 requests a single plain-text input field.
delegateThe delegate notified of button taps and close events; held weakly.
tagAn identifier echoed back to the delegate.
titleThe alert title; an empty title is substituted when nil.
msgThe alert message.
cancelBtnTextThe title of the cancel button (index 0).
otherButtonTitlesThe titles of the remaining buttons, in order.
showWhether to present the alert immediately.
viewControllerThe controller to present a UIAlertController from; when nil the application's root view controller is used.
Ghidra address:
0xa8cfc

◆ sharedManager

+ (instancetype) sharedManager

The shared singleton, created once on first access.

Returns
The shared AlertViewManager.
Ghidra address:
0xa89b4
Ghidra address:
0xa89b4
Ghidra address:
0xa89f4

◆ showUpdateAlert

- (void) showUpdateAlert

Presents the localised "App update is required." alert, whose only button opens the App Store.

Ghidra address:
0xa964c

The documentation for this class was generated from the following files: