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.
37 lines
975 B
Objective-C
37 lines
975 B
Objective-C
//
|
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class ContactShareViewModel;
|
|
@class OWSContact;
|
|
@class OWSContactsManager;
|
|
|
|
@protocol OWSContactShareViewDelegate <NSObject>
|
|
|
|
- (void)didTapSendMessageToContactShare:(ContactShareViewModel *)contactShare;
|
|
- (void)didTapSendInviteToContactShare:(ContactShareViewModel *)contactShare;
|
|
- (void)didTapShowAddToContactUIForContactShare:(ContactShareViewModel *)contactShare;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@interface OWSContactShareView : UIView
|
|
|
|
- (instancetype)initWithContactShare:(ContactShareViewModel *)contactShare
|
|
isIncoming:(BOOL)isIncoming
|
|
delegate:(id<OWSContactShareViewDelegate>)delegate;
|
|
|
|
- (void)createContents;
|
|
|
|
+ (CGFloat)bubbleHeightForContactShare:(ContactShareViewModel *)contactShare;
|
|
|
|
// Returns YES IFF the tap was handled.
|
|
- (BOOL)handleTapGesture:(UITapGestureRecognizer *)sender;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|