1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-01-31 19:15:41 +08:00
TrollStore/Shared/TSPresentationDelegate.h
2022-10-30 00:45:30 +02:00

10 lines
525 B
Objective-C

#import <UIKit/UIKit.h>
@interface TSPresentationDelegate : NSObject
@property (class) UIViewController* presentationViewController;
@property (class) UIAlertController* activityController;
+ (void)startActivity:(NSString*)activity withCancelHandler:(void (^)(void))cancelHandler;
+ (void)startActivity:(NSString*)activity;
+ (void)stopActivityWithCompletion:(void (^)(void))completion;
+ (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^)(void))completion;
@end