mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
f28abbc2a1
// FREEBIE
70 lines
1.4 KiB
Objective-C
70 lines
1.4 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class SignalAttachment;
|
|
|
|
@protocol ConversationInputToolbarDelegate <NSObject>
|
|
|
|
- (void)sendButtonPressed;
|
|
|
|
- (void)attachmentButtonPressed;
|
|
|
|
- (void)voiceMemoGestureDidStart;
|
|
|
|
- (void)voiceMemoGestureDidEnd;
|
|
|
|
- (void)voiceMemoGestureDidCancel;
|
|
|
|
- (void)voiceMemoGestureDidChange:(CGFloat)cancelAlpha;
|
|
|
|
- (void)textViewDidChange;
|
|
|
|
#pragma mark - Attachment Approval
|
|
|
|
- (void)didApproveAttachment:(SignalAttachment *)attachment;
|
|
|
|
@end
|
|
|
|
#pragma mark -
|
|
|
|
@class ConversationInputTextView;
|
|
|
|
@protocol ConversationInputTextViewDelegate;
|
|
|
|
@interface ConversationInputToolbar : UIToolbar
|
|
|
|
@property (nonatomic, weak) id<ConversationInputToolbarDelegate> inputToolbarDelegate;
|
|
|
|
- (void)beginEditingTextMessage;
|
|
- (void)endEditingTextMessage;
|
|
|
|
- (void)setInputTextViewDelegate:(id<ConversationInputTextViewDelegate>)value;
|
|
|
|
- (NSString *)messageText;
|
|
- (void)setMessageText:(NSString *_Nullable)value;
|
|
- (void)clearTextMessage;
|
|
|
|
- (nullable NSString *)textInputPrimaryLanguage;
|
|
|
|
#pragma mark - Voice Memo
|
|
|
|
- (void)showVoiceMemoUI;
|
|
|
|
- (void)hideVoiceMemoUI:(BOOL)animated;
|
|
|
|
- (void)setVoiceMemoUICancelAlpha:(CGFloat)cancelAlpha;
|
|
|
|
- (void)cancelVoiceMemoIfNecessary;
|
|
|
|
#pragma mark - Attachment Approval
|
|
|
|
- (void)showApprovalUIForAttachment:(SignalAttachment *)attachment;
|
|
- (void)viewWillAppear:(BOOL)animated;
|
|
- (void)viewWillDisappear:(BOOL)animated;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|