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.
		
		
		
		
		
			
		
			
	
	
		
			98 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C
		
	
		
		
			
		
	
	
			98 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C
		
	
| 
								 
											8 years ago
										 
									 | 
							
								//
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								//  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								//
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								NS_ASSUME_NONNULL_BEGIN
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								@class ConversationStyle;
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								@class LKMention;
							 | 
						||
| 
								 | 
							
								@class LKMentionCandidateSelectionView;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								@class OWSLinkPreviewDraft;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@class OWSQuotedReplyModel;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@class SignalAttachment;
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								@class TSThread;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@protocol ConversationInputToolbarDelegate <NSObject>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)sendButtonPressed;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)attachmentButtonPressed;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								#pragma mark - Voice Memo
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								- (void)voiceMemoGestureDidStart;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)voiceMemoGestureDidLock;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)voiceMemoGestureDidComplete;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)voiceMemoGestureDidCancel;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)voiceMemoGestureDidUpdateCancelWithRatioComplete:(CGFloat)cancelAlpha;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								- (void)handleMentionCandidateSelected:(LKMention *)mentionCandidate from:(LKMentionCandidateSelectionView *)mentionCandidateSelectionView;
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@end
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#pragma mark -
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@class ConversationInputTextView;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@protocol ConversationInputTextViewDelegate;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@interface ConversationInputToolbar : UIView
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (instancetype)initWithConversationStyle:(ConversationStyle *)conversationStyle NS_DESIGNATED_INITIALIZER;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
							 | 
						||
| 
								 | 
							
								- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@property (nonatomic, weak) id<ConversationInputToolbarDelegate> inputToolbarDelegate;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)beginEditingTextMessage;
							 | 
						||
| 
								 | 
							
								- (void)endEditingTextMessage;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								- (BOOL)isInputTextViewFirstResponder;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)setInputTextViewDelegate:(id<ConversationInputTextViewDelegate>)value;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (NSString *)messageText;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)setMessageText:(NSString *_Nullable)value animated:(BOOL)isAnimated;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)setPlaceholderText:(NSString *)placeholderText;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)clearTextMessageAnimated:(BOOL)isAnimated;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								- (void)toggleDefaultKeyboard;
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								- (void)setAttachmentButtonHidden:(BOOL)isHidden;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								- (void)updateFontSizes;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)updateLayoutWithSafeAreaInsets:(UIEdgeInsets)safeAreaInsets;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)ensureTextViewHeight;
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								#pragma mark - Voice Memo
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								- (void)lockVoiceMemoUI;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								- (void)showVoiceMemoUI;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)hideVoiceMemoUI:(BOOL)animated;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)setVoiceMemoUICancelAlpha:(CGFloat)cancelAlpha;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								- (void)cancelVoiceMemoIfNecessary;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								#pragma mark -
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@property (nonatomic, nullable) OWSQuotedReplyModel *quotedReply;
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											7 years ago
										 
									 | 
							
								@property (nonatomic, nullable, readonly) OWSLinkPreviewDraft *linkPreviewDraft;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								- (void)hideInputMethod;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								#pragma mark - Mention Candidate Selection View
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								- (void)showMentionCandidateSelectionViewFor:(NSArray<LKMention *> *)mentionCandidates in:(TSThread *)thread;
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								- (void)hideMentionCandidateSelectionView;
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											8 years ago
										 
									 | 
							
								@end
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								NS_ASSUME_NONNULL_END
							 |