mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
9 years ago
|
//
|
||
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
|
@class Contact;
|
||
|
@class OWSBlockingManager;
|
||
|
|
||
|
typedef void (^BlockActionCompletionBlock)(BOOL isBlocked);
|
||
|
|
||
|
@interface BlockListUIUtils : NSObject
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
|
+ (void)showBlockContactActionSheet:(Contact *)contact
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
|
completionBlock:(BlockActionCompletionBlock)completionBlock;
|
||
|
|
||
|
+ (void)showBlockPhoneNumberActionSheet:(NSString *)phoneNumber
|
||
|
displayName:(NSString *)displayName
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
|
completionBlock:(BlockActionCompletionBlock)completionBlock;
|
||
|
|
||
|
+ (void)showUnblockPhoneNumberActionSheet:(NSString *)phoneNumber
|
||
|
displayName:(NSString *)displayName
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
|
completionBlock:(BlockActionCompletionBlock)completionBlock;
|
||
|
|
||
|
@end
|