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

#import <JSQPhotoMediaItem.h>

Inheritance diagram for JSQESPhotoMediaItem:
JSQMediaItem <JSQMessageMediaData> <JSQMessageMediaData>

Instance Methods

(instancetype) - initWithImage:
 
- Instance Methods inherited from JSQMediaItem
(instancetype) - initWithMaskAsOutgoing:
 
(void) - clearCachedMediaViews
 
- Instance Methods inherited from <JSQMessageMediaData>
(UIView *) - mediaView
 
(CGSize) - mediaViewDisplaySize
 
(UIView *) - mediaPlaceholderView
 
(NSUInteger) - mediaHash
 

Properties

UIImage * image
 
- Properties inherited from JSQMediaItem
BOOL appliesMediaViewMaskAsOutgoing
 

Detailed Description

The JSQESPhotoMediaItem class is a concrete JSQMediaItem subclass that implements the JSQMessageMediaData protocol and represents a photo media message. An initialized JSQESPhotoMediaItem object can be passed to a JSQMediaMessage object during its initialization to construct a valid media message object. You may wish to subclass JSQESPhotoMediaItem to provide additional functionality or behavior.

Method Documentation

- (instancetype) initWithImage: (UIImage *)  image

Initializes and returns a photo media item object having the given image.

Parameters
imageThe image for the photo media item. This value may be nil.
Returns
An initialized JSQESPhotoMediaItem if successful, nil otherwise.

If the image must be dowloaded from the network, you may initialize a JSQESPhotoMediaItem object with a nil image. Once the image has been retrieved, you can then set the image property.

Property Documentation

- (UIImage*) image
readwritenonatomiccopy

The image for the photo media item. The default value is nil.


The documentation for this class was generated from the following files: