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

20 lines
804 B
Objective-C

#import "TGNotificationPreviewView.h"
@class TGMessage;
@class TGConversation;
@interface TGNotificationContentView : UIView
@property (nonatomic, readonly) TGNotificationPreviewView *previewView;
@property (nonatomic, copy) id (^requestMedia)(TGMediaAttachment *attachment, int64_t cid, int32_t mid);
@property (nonatomic, copy) void (^cancelMedia)(id mediaId);
@property (nonatomic, copy) void (^playMedia)(TGMediaAttachment *attachment, int64_t cid, int32_t mid);
@property (nonatomic, copy) bool (^isMediaAvailable)(TGMediaAttachment *attachment);
@property (nonatomic, copy) TGModernViewInlineMediaContext *(^mediaContext)(int64_t cid, int32_t mid);
- (void)configureWithMessage:(TGMessage *)message conversation:(TGConversation *)conversation peers:(NSDictionary *)peers;
- (void)reset;
@end