1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGModernConversationAudioPreviewInputPanel.h
2016-02-25 01:03:51 +01:00

20 lines
1.0 KiB
Objective-C

#import "TGModernConversationInputPanel.h"
@class TGDataItem;
@class TGLiveUploadActorData;
@class TGModernConversationAssociatedInputPanel;
@class TGAudioWaveform;
@interface TGModernConversationAudioPreviewInputPanel : TGModernConversationInputPanel
@property (nonatomic, copy) void (^playbackDidBegin)();
- (instancetype)initWithDataItem:(TGDataItem *)dataItem duration:(NSTimeInterval)duration liveUploadActorData:(TGLiveUploadActorData *)liveUploadActorData waveform:(TGAudioWaveform *)waveform cancel:(void (^)())cancel send:(void (^)(TGDataItem *, NSTimeInterval, TGLiveUploadActorData *, TGAudioWaveform *))send;
- (void)stop;
- (void)setPrimaryExtendedPanel:(TGModernConversationAssociatedInputPanel *)extendedPanel animated:(bool)animated;
- (void)setPrimaryExtendedPanel:(TGModernConversationAssociatedInputPanel *)extendedPanel animated:(bool)animated skipHeightAnimation:(bool)skipHeightAnimation;
- (void)setSecondaryExtendedPanel:(TGModernConversationAssociatedInputPanel *)extendedPanel animated:(bool)animated;
@end