LuxChat  2.0
Instant messenger for iOS
Instance Methods | Class Methods | Properties | List of all members
JSQMessagesMediaPlaceholderView Class Reference

#import <JSQMessagesMediaPlaceholderView.h>

Inheritance diagram for JSQMessagesMediaPlaceholderView:

Instance Methods

(instancetype) - initWithFrame:backgroundColor:activityIndicatorView:
 
(instancetype) - initWithFrame:backgroundColor:imageView:
 

Class Methods

(instancetype) + viewWithActivityIndicator
 
(instancetype) + viewWithAttachmentIcon
 

Properties

UIActivityIndicatorView * activityIndicatorView
 
UIImageView * imageView
 

Detailed Description

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.

Method Documentation

- (instancetype) initWithFrame: (CGRect)  frame
backgroundColor: (UIColor *)  backgroundColor
activityIndicatorView: (UIActivityIndicatorView *)  activityIndicatorView 

Creates a media placeholder view having the given frame, backgroundColor, and activityIndicatorView.

Parameters
frameA rectangle defining the frame of the view. This value must be a non-zero, non-null rectangle.
backgroundColorThe background color of the view. This value must not be nil.
activityIndicatorViewAn 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
frameA rectangle defining the frame of the view. This value must be a non-zero, non-null rectangle.
backgroundColorThe background color of the view. This value must not be nil.
imageViewAn 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

Creates a media placeholder view object with a light gray background and a centered activity indicator.

When initializing a JSQMessagesMediaPlaceholderView with this method, its imageView property will be nil.

Returns
An initialized JSQMessagesMediaPlaceholderView object if successful, nil otherwise.
+ (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.

Property Documentation

- (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: