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.
56 lines
2.2 KiB
C
56 lines
2.2 KiB
C
8 years ago
|
//
|
||
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <UIKit/UIKit.h>
|
||
|
|
||
8 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
8 years ago
|
@class Contact;
|
||
8 years ago
|
@class SignalAccount;
|
||
8 years ago
|
@class OWSBlockingManager;
|
||
8 years ago
|
@class OWSContactsManager;
|
||
8 years ago
|
|
||
|
typedef void (^BlockActionCompletionBlock)(BOOL isBlocked);
|
||
|
|
||
|
@interface BlockListUIUtils : NSObject
|
||
|
|
||
|
- (instancetype)init NS_UNAVAILABLE;
|
||
|
|
||
8 years ago
|
#pragma mark - Block
|
||
|
|
||
8 years ago
|
+ (void)showBlockPhoneNumberActionSheet:(NSString *)phoneNumber
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
8 years ago
|
contactsManager:(OWSContactsManager *)contactsManager
|
||
8 years ago
|
completionBlock:(nullable BlockActionCompletionBlock)completionBlock;
|
||
8 years ago
|
|
||
8 years ago
|
+ (void)showBlockSignalAccountActionSheet:(SignalAccount *)signalAccount
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
|
contactsManager:(OWSContactsManager *)contactsManager
|
||
|
completionBlock:(nullable BlockActionCompletionBlock)completionBlock;
|
||
8 years ago
|
|
||
8 years ago
|
#pragma mark - Unblock
|
||
|
|
||
8 years ago
|
+ (void)showUnblockPhoneNumberActionSheet:(NSString *)phoneNumber
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
8 years ago
|
contactsManager:(OWSContactsManager *)contactsManager
|
||
8 years ago
|
completionBlock:(nullable BlockActionCompletionBlock)completionBlock;
|
||
8 years ago
|
|
||
8 years ago
|
+ (void)showUnblockSignalAccountActionSheet:(SignalAccount *)signalAccount
|
||
|
fromViewController:(UIViewController *)fromViewController
|
||
|
blockingManager:(OWSBlockingManager *)blockingManager
|
||
|
contactsManager:(OWSContactsManager *)contactsManager
|
||
|
completionBlock:(nullable BlockActionCompletionBlock)completionBlock;
|
||
8 years ago
|
|
||
8 years ago
|
#pragma mark - UI Utils
|
||
|
|
||
|
+ (NSString *)formatDisplayNameForAlertTitle:(NSString *)displayName;
|
||
|
+ (NSString *)formatDisplayNameForAlertMessage:(NSString *)displayName;
|
||
|
|
||
8 years ago
|
@end
|
||
8 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|