Send sticker: UI integration: RoomInputToolbar: Let user choose between "Send photo or video" and "Send sticker"

https://github.com/vector-im/riot-ios/issues/1860
This commit is contained in:
manuroe
2018-05-24 11:56:33 +02:00
parent 3edd701ccb
commit ee0c18ae6a
3 changed files with 107 additions and 33 deletions
@@ -18,12 +18,28 @@
#import "MediaPickerViewController.h"
@protocol RoomInputToolbarViewDelegate <MXKRoomInputToolbarViewDelegate>
/**
Tells the delegate that the user wants to display the sticker picker.
@param toolbarView the room input toolbar view.
*/
- (void)roomInputToolbarViewPresentStickerPicker:(MXKRoomInputToolbarView*)toolbarView;
@end
/**
`RoomInputToolbarView` instance is a view used to handle all kinds of available inputs
for a room (message composer, attachments selection...).
*/
@interface RoomInputToolbarView : MXKRoomInputToolbarViewWithHPGrowingText <MediaPickerViewControllerDelegate>
/**
The delegate notified when inputs are ready.
*/
@property (nonatomic) id<RoomInputToolbarViewDelegate> delegate;
@property (weak, nonatomic) IBOutlet UIView *mainToolbarView;
@property (weak, nonatomic) IBOutlet UIView *separatorView;