session-ios/Signal/src/ViewControllers/ConversationView/Cells/AttachmentUploadView.h
2018-04-02 11:13:11 -04:00

27 lines
709 B
Objective-C

//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
NS_ASSUME_NONNULL_BEGIN
@class TSAttachmentStream;
typedef void (^AttachmentStateBlock)(BOOL isAttachmentReady);
// This entity is used to display upload progress for outgoing
// attachments in conversation view cells.
//
// 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 : UIView
- (instancetype)initWithAttachment:(TSAttachmentStream *)attachment
attachmentStateCallback:(AttachmentStateBlock _Nullable)attachmentStateCallback;
@end
NS_ASSUME_NONNULL_END