2017-03-15 14:23:21 +01:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2017-03-15 16:00:32 +01:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2017-03-15 14:23:21 +01:00
|
|
|
@class TSAttachmentStream;
|
|
|
|
|
|
|
|
typedef void (^AttachmentStateBlock)(BOOL isAttachmentReady);
|
|
|
|
|
2017-10-10 22:13:54 +02:00
|
|
|
// This entity is used by display download progress for incoming
|
|
|
|
// attachments in conversation view cells.
|
|
|
|
//
|
2017-03-15 14:23:21 +01:00
|
|
|
// During attachment uploads we want to:
|
|
|
|
//
|
|
|
|
// * Dim the media view using a mask layer.
|
|
|
|
// * Show and update a progress bar.
|
|
|
|
// * Disable any media view controls using a callback.
|
|
|
|
@interface AttachmentUploadView : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithAttachment:(TSAttachmentStream *)attachment
|
|
|
|
superview:(UIView *)superview
|
2017-03-15 16:00:32 +01:00
|
|
|
attachmentStateCallback:(AttachmentStateBlock _Nullable)attachmentStateCallback;
|
2017-03-15 14:23:21 +01:00
|
|
|
|
|
|
|
@end
|
2017-03-15 16:00:32 +01:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|