session-ios/SignalMessaging/ViewControllers/SelectRecipientViewController.h
2018-08-08 15:04:23 -04:00

48 lines
1.1 KiB
Objective-C

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