mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
067b16903c
// FREEBIE
27 lines
764 B
Objective-C
27 lines
764 B
Objective-C
//
|
|
// Copyright (c) 2017 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
|
|
superview:(UIView *)superview
|
|
attachmentStateCallback:(AttachmentStateBlock _Nullable)attachmentStateCallback;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|