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.
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
8 years ago
|
//
|
||
7 years ago
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
8 years ago
|
//
|
||
|
|
||
7 years ago
|
#import <SignalMessaging/OWSViewController.h>
|
||
8 years ago
|
|
||
8 years ago
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
8 years ago
|
@class SignalAccount;
|
||
8 years ago
|
|
||
|
@protocol SelectRecipientViewControllerDelegate <NSObject>
|
||
|
|
||
|
- (NSString *)phoneNumberSectionTitle;
|
||
|
- (NSString *)phoneNumberButtonText;
|
||
|
- (NSString *)contactsSectionTitle;
|
||
|
|
||
|
- (void)phoneNumberWasSelected:(NSString *)phoneNumber;
|
||
|
|
||
8 years ago
|
- (BOOL)canSignalAccountBeSelected:(SignalAccount *)signalAccount;
|
||
|
|
||
8 years ago
|
- (void)signalAccountWasSelected:(SignalAccount *)signalAccount;
|
||
8 years ago
|
|
||
8 years ago
|
- (nullable NSString *)accessoryMessageForSignalAccount:(SignalAccount *)signalAccount;
|
||
|
|
||
8 years ago
|
- (BOOL)shouldHideLocalNumber;
|
||
|
|
||
|
- (BOOL)shouldHideContacts;
|
||
|
|
||
|
- (BOOL)shouldValidatePhoneNumbers;
|
||
|
|
||
|
@end
|
||
|
|
||
|
#pragma mark -
|
||
|
|
||
|
@class ContactsViewHelper;
|
||
|
|
||
8 years ago
|
@interface SelectRecipientViewController : OWSViewController
|
||
8 years ago
|
|
||
|
@property (nonatomic, weak) id<SelectRecipientViewControllerDelegate> delegate;
|
||
|
|
||
|
@property (nonatomic, readonly) ContactsViewHelper *contactsViewHelper;
|
||
|
|
||
7 years ago
|
@property (nonatomic) BOOL isPresentedInNavigationController;
|
||
|
|
||
8 years ago
|
@end
|
||
8 years ago
|
|
||
|
NS_ASSUME_NONNULL_END
|