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

#import <JSQMessagesMediaViewBubbleImageMasker.h>

Inheritance diagram for JSQMessagesMediaViewBubbleImageMasker:

Instance Methods

(instancetype) - init
 
(instancetype) - initWithBubbleImageFactory:
 
(void) - applyOutgoingBubbleImageMaskToMediaView:
 
(void) - applyIncomingBubbleImageMaskToMediaView:
 

Class Methods

(void) + applyBubbleImageMaskToMediaView:isOutgoing:
 

Properties

JSQMessagesBubbleImageFactorybubbleImageFactory
 

Detailed Description

An instance of JSQMessagesMediaViewBubbleImageMasker is an object that masks media views for a JSQMessageMediaData object. Given a view, it will mask the view with a bubble image for an outgoing or incoming media view.

See also
JSQMessageMediaData.
JSQMessagesBubbleImageFactory.
JSQMessagesBubbleImage.

Method Documentation

+ (void) applyBubbleImageMaskToMediaView: (UIView *)  mediaView
isOutgoing: (BOOL)  isOutgoing 

A convenience method for applying a bubble image mask to the specified mediaView. This method uses the default instance of JSQMessagesBubbleImageFactory.

Parameters
mediaViewThe media view to mask.
isOutgoingA boolean value specifiying whether or not the mask should be for an outgoing or incoming view. Specify YES for outgoing and NO for incoming.
- (void) applyIncomingBubbleImageMaskToMediaView: (UIView *)  mediaView

Applies an incoming bubble image mask to the specified mediaView.

Parameters
mediaViewThe media view to mask.
- (void) applyOutgoingBubbleImageMaskToMediaView: (UIView *)  mediaView

Applies an outgoing bubble image mask to the specified mediaView.

Parameters
mediaViewThe media view to mask.
- (instancetype) init

Creates and returns a new instance of JSQMessagesMediaViewBubbleImageMasker that uses a default instance of JSQMessagesBubbleImageFactory. The masker uses the JSQMessagesBubbleImage objects returned by the factory to mask media views.

Returns
An initialized JSQMessagesMediaViewBubbleImageMasker object if created successfully, nil otherwise.
See also
JSQMessagesBubbleImageFactory.
JSQMessagesBubbleImage.
- (instancetype) initWithBubbleImageFactory: (JSQMessagesBubbleImageFactory *)  bubbleImageFactory

Creates and returns a new instance of JSQMessagesMediaViewBubbleImageMasker having the specified bubbleImageFactory. The masker uses the JSQMessagesBubbleImage objects returned by the factory to mask media views.

Parameters
bubbleImageFactoryAn initialized JSQMessagesBubbleImageFactory object to use for masking media views. This value must not be nil.
Returns
An initialized JSQMessagesMediaViewBubbleImageMasker object if created successfully, nil otherwise.
See also
JSQMessagesBubbleImageFactory.
JSQMessagesBubbleImage.

Property Documentation

- (JSQMessagesBubbleImageFactory*) bubbleImageFactory
readnonatomicstrong

Returns the bubble image factory that the masker uses to mask media views.


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