mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
34 lines
879 B
C
34 lines
879 B
C
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class ContactShareViewModel;
|
||
|
|
||
|
@protocol OWSContactShareButtonsViewDelegate <NSObject>
|
||
|
|
||
|
- (void)didTapSendMessageToContactShare:(ContactShareViewModel *)contactShare;
|
||
|
- (void)didTapSendInviteToContactShare:(ContactShareViewModel *)contactShare;
|
||
|
- (void)didTapShowAddToContactUIForContactShare:(ContactShareViewModel *)contactShare;
|
||
|
|
||
|
@end
|
||
|
|
||
|
#pragma mark -
|
||
|
|
||
|
@interface OWSContactShareButtonsView : UIView
|
||
|
|
||
|
- (instancetype)initWithContactShare:(ContactShareViewModel *)contactShare
|
||
|
delegate:(id<OWSContactShareButtonsViewDelegate>)delegate;
|
||
|
|
||
|
+ (CGFloat)bubbleHeight;
|
||
|
|
||
|
// Returns YES IFF the tap was handled.
|
||
|
- (BOOL)handleTapGesture:(UITapGestureRecognizer *)sender;
|
||
|
|
||
|
+ (BOOL)hasAnyButton:(ContactShareViewModel *)contactShare;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|