#import <JSQMessagesMediaPlaceholderView.h>
A JSQMessagesMediaPlaceholderView object represents a loading or placeholder view for media message objects whose media attachments are not yet available. When sending or receiving media messages that must be uploaded or downloaded from the network, you may display this view temporarily until the media attachement is available. You should return an instance of this class from the mediaPlaceholderView method in the JSQMessageMediaData protocol.
- See also
- JSQMessageMediaData.
| - (instancetype) initWithFrame: |
|
(CGRect) |
frame |
| backgroundColor: |
|
(UIColor *) |
backgroundColor |
| activityIndicatorView: |
|
(UIActivityIndicatorView *) |
activityIndicatorView |
|
|
| |
Creates a media placeholder view having the given frame, backgroundColor, and activityIndicatorView.
- Parameters
-
| frame | A rectangle defining the frame of the view. This value must be a non-zero, non-null rectangle. |
| backgroundColor | The background color of the view. This value must not be nil. |
| activityIndicatorView | An initialized activity indicator to be added and centered in the view. This value must not be nil. |
- Returns
- An initialized
JSQMessagesMediaPlaceholderView object if successful, nil otherwise.
| - (instancetype) initWithFrame: |
|
(CGRect) |
frame |
| backgroundColor: |
|
(UIColor *) |
backgroundColor |
| imageView: |
|
(UIImageView *) |
imageView |
|
|
| |
Creates a media placeholder view having the given frame, backgroundColor, and imageView.
- Parameters
-
| frame | A rectangle defining the frame of the view. This value must be a non-zero, non-null rectangle. |
| backgroundColor | The background color of the view. This value must not be nil. |
| imageView | An initialized image view to be added and centered in the view. This value must not be nil. |
- Returns
- An initialized
JSQMessagesMediaPlaceholderView object if successful, nil otherwise.
| + (instancetype) viewWithActivityIndicator |
|
|
|
| + (instancetype) viewWithAttachmentIcon |
|
|
|
Creates a media placeholder view object with a light gray background and a centered paperclip attachment icon.
When initializing a JSQMessagesMediaPlaceholderView with this method, its activityIndicatorView property will be nil.
- Returns
- An initialized
JSQMessagesMediaPlaceholderView object if successful, nil otherwise.
| - (UIActivityIndicatorView*) activityIndicatorView |
|
readnonatomicweak |
Returns the activity indicator view for this placeholder view, or nil if it does not exist.
| - (UIImageView*) imageView |
|
readnonatomicweak |
Returns the image view for this placeholder view, or nil if it does not exist.
The documentation for this class was generated from the following files: