session-ios/Signal/src/ViewControllers/SelectRecipientViewController.h
Matthew Chen f71ec9f7cb Respond to CR.
// FREEBIE
2017-05-02 11:16:34 -04:00

45 lines
990 B
Objective-C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import <UIKit/UIKit.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 : UIViewController
@property (nonatomic, weak) id<SelectRecipientViewControllerDelegate> delegate;
@property (nonatomic, readonly) ContactsViewHelper *contactsViewHelper;
@end
NS_ASSUME_NONNULL_END