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

#import <JSQMediaItem.h>

Inheritance diagram for JSQMediaItem:
<JSQMessageMediaData> ESAudioMediaItem ESPhotoMediaItem ESVideoMediaItem JSQESPhotoMediaItem JSQESVideoMediaItem JSQLocationMediaItem

Instance Methods

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

Properties

BOOL appliesMediaViewMaskAsOutgoing
 

Detailed Description

The JSQMediaItem class is an abstract base class for media item model objects that represents a single media attachment for a user message. It provides some default behavior for media items, including a default mediaViewDisplaySize, a default mediaPlaceholderView, and view masking as specified by appliesMediaViewMaskAsOutgoing.

Warning
This class is intended to be subclassed. You should not use it directly.
See also
JSQLocationMediaItem.
JSQESPhotoMediaItem.
JSQESVideoMediaItem.

Method Documentation

- (void) clearCachedMediaViews

Clears any media view or media placeholder view that the item has cached.

- (instancetype) initWithMaskAsOutgoing: (BOOL)  maskAsOutgoing

Initializes and returns a media item with the specified value for maskAsOutgoing.

Parameters
maskAsOutgoingA boolean value indicating whether this media item should apply an outgoing or incoming bubble image mask to its media views.
Returns
An initialized JSQMediaItem object if successful, nil otherwise.

Property Documentation

- (BOOL) appliesMediaViewMaskAsOutgoing
readwritenonatomicassign

A boolean value indicating whether this media item should apply an outgoing or incoming bubble image mask to its media views. Specify YES for an outgoing mask, and NO for an incoming mask. The default value is YES.


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