MessagesCollectionViewFlowLayout
open class MessagesCollectionViewFlowLayout: UICollectionViewFlowLayout
The layout object used by MessagesCollectionView
to determine the size of all
framework provided MessageCollectionViewCell
subclasses.
-
Undocumented
Declaration
Swift
open override class var layoutAttributesClass: AnyClass
-
The
MessagesCollectionView
that owns this layout object.Declaration
Swift
public var messagesCollectionView: MessagesCollectionView
-
The
MessagesDataSource
for the layout’s collection view.Declaration
Swift
public var messagesDataSource: MessagesDataSource
-
The
MessagesLayoutDelegate
for the layout’s collection view.Declaration
Swift
public var messagesLayoutDelegate: MessagesLayoutDelegate
-
Undocumented
Declaration
Swift
public var itemWidth: CGFloat
-
Undocumented
Declaration
Swift
public override init()
-
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
open override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]?
-
Undocumented
Declaration
Swift
open override func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes?
-
Undocumented
Declaration
Swift
open override func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool
-
Undocumented
Declaration
Swift
open override func invalidationContext(forBoundsChange newBounds: CGRect) -> UICollectionViewLayoutInvalidationContext
-
Undocumented
Declaration
Swift
lazy open var textMessageSizeCalculator = TextMessageSizeCalculator(layout: self)
-
Undocumented
Declaration
Swift
lazy open var attributedTextMessageSizeCalculator = TextMessageSizeCalculator(layout: self)
-
Undocumented
Declaration
Swift
lazy open var emojiMessageSizeCalculator = TextMessageSizeCalculator(layout: self)
-
Undocumented
Declaration
Swift
lazy open var photoMessageSizeCalculator = MediaMessageSizeCalculator(layout: self)
-
Undocumented
Declaration
Swift
lazy open var videoMessageSizeCalculator = MediaMessageSizeCalculator(layout: self)
-
Undocumented
Declaration
Swift
lazy open var locationMessageSizeCalculator = LocationMessageSizeCalculator(layout: self)
-
Undocumented
Declaration
Swift
open func cellSizeCalculatorForItem(at indexPath: IndexPath) -> CellSizeCalculator
-
Undocumented
Declaration
Swift
open func sizeForItem(at indexPath: IndexPath) -> CGSize
-
Set
incomingAvatarSize
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageIncomingAvatarSize(_ newSize: CGSize)
-
Set
outgoingAvatarSize
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageOutgoingAvatarSize(_ newSize: CGSize)
-
Set
incomingAvatarPosition
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageIncomingAvatarPosition(_ newPosition: AvatarPosition)
-
Set
outgoingAvatarPosition
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageOutgoingAvatarPosition(_ newPosition: AvatarPosition)
-
Set
incomingMessagePadding
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageIncomingMessagePadding(_ newPadding: UIEdgeInsets)
-
Set
outgoingMessagePadding
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageOutgoingMessagePadding(_ newPadding: UIEdgeInsets)
-
Set
incomingCellTopLabelAlignment
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageIncomingCellTopLabelAlignment(_ newAlignment: LabelAlignment)
-
Set
outgoingCellTopLabelAlignment
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageOutgoingCellTopLabelAlignment(_ newAlignment: LabelAlignment)
-
Set
incomingMessageTopLabelAlignment
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageIncomingMessageTopLabelAlignment(_ newAlignment: LabelAlignment)
-
Set
outgoingMessageTopLabelAlignment
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageOutgoingMessageTopLabelAlignment(_ newAlignment: LabelAlignment)
-
Set
incomingMessageBottomLabelAlignment
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageIncomingMessageBottomLabelAlignment(_ newAlignment: LabelAlignment)
-
Set
outgoingMessageBottomLabelAlignment
of allMessageSizeCalculator
sDeclaration
Swift
public func setMessageOutgoingMessageBottomLabelAlignment(_ newAlignment: LabelAlignment)
-
Get all
MessageSizeCalculator
sDeclaration
Swift
open func messageSizeCalculators() -> [MessageSizeCalculator]