mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
f71ec9f7cb
// FREEBIE
45 lines
990 B
Objective-C
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
|