JubeatPlus 3.9.11
Loading...
Searching...
No Matches
AlertViewManager.h
Go to the documentation of this file.
1
6
7#import <Foundation/Foundation.h>
8#import <UIKit/UIKit.h>
9
10NS_ASSUME_NONNULL_BEGIN
11
18@protocol AlertViewManagerDelegate <NSObject>
19@optional
26- (void)alertSelect:(nonnull NSDictionary *)info;
32- (void)alertClose:(nonnull NSDictionary *)info;
33@end
34
41@interface AlertViewManager : NSObject <UIAlertViewDelegate>
42
49+ (instancetype)sharedManager;
50
56- (void)closeAlert;
57
73- (void)makeAlert:(int)type
74 delegate:(nullable id<AlertViewManagerDelegate>)delegate
75 tag:(int)tag
76 title:(nullable NSString *)title
77 msg:(nullable NSString *)msg
78 cancel:(nullable NSString *)cancelBtnText
79 btnText:(nullable NSArray<NSString *> *)otherButtonTitles
80 show:(BOOL)show
81 viewController:(nullable UIViewController *)viewController;
82
96- (void)makeAlert:(int)type
97 delegate:(nullable id<AlertViewManagerDelegate>)delegate
98 tag:(int)tag
99 title:(nullable NSString *)title
100 msg:(nullable NSString *)msg
101 cancel:(nullable NSString *)cancelBtnText
102 btnText:(nullable NSArray<NSString *> *)otherButtonTitles
103 show:(BOOL)show;
104
110- (void)showUpdateAlert;
111
112@end
113
114NS_ASSUME_NONNULL_END
115
116// code: language=Objective-C
117// kate: hl Objective-C;
118// vim: set ft=objc :
The process-wide alert manager.
Definition AlertViewManager.h:41
void showUpdateAlert()
Presents the localised "App update is required." alert, whose only button opens the App Store.
Definition AlertViewManager.m:208
void closeAlert()
Dismisses the currently presented alert, if any.
Definition AlertViewManager.m:78
instancetype sharedManager()
The shared singleton, created once on first access.
Definition AlertViewManager.m:45