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
MessagesCollectionViewthat owns this layout object.Declaration
Swift
public var messagesCollectionView: MessagesCollectionView -
The
MessagesDataSourcefor the layout’s collection view.Declaration
Swift
public var messagesDataSource: MessagesDataSource -
The
MessagesLayoutDelegatefor 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
incomingAvatarSizeof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageIncomingAvatarSize(_ newSize: CGSize) -
Set
outgoingAvatarSizeof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageOutgoingAvatarSize(_ newSize: CGSize) -
Set
incomingAvatarPositionof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageIncomingAvatarPosition(_ newPosition: AvatarPosition) -
Set
outgoingAvatarPositionof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageOutgoingAvatarPosition(_ newPosition: AvatarPosition) -
Set
incomingMessagePaddingof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageIncomingMessagePadding(_ newPadding: UIEdgeInsets) -
Set
outgoingMessagePaddingof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageOutgoingMessagePadding(_ newPadding: UIEdgeInsets) -
Set
incomingCellTopLabelAlignmentof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageIncomingCellTopLabelAlignment(_ newAlignment: LabelAlignment) -
Set
outgoingCellTopLabelAlignmentof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageOutgoingCellTopLabelAlignment(_ newAlignment: LabelAlignment) -
Set
incomingMessageTopLabelAlignmentof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageIncomingMessageTopLabelAlignment(_ newAlignment: LabelAlignment) -
Set
outgoingMessageTopLabelAlignmentof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageOutgoingMessageTopLabelAlignment(_ newAlignment: LabelAlignment) -
Set
incomingMessageBottomLabelAlignmentof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageIncomingMessageBottomLabelAlignment(_ newAlignment: LabelAlignment) -
Set
outgoingMessageBottomLabelAlignmentof allMessageSizeCalculatorsDeclaration
Swift
public func setMessageOutgoingMessageBottomLabelAlignment(_ newAlignment: LabelAlignment) -
Get all
MessageSizeCalculatorsDeclaration
Swift
open func messageSizeCalculators() -> [MessageSizeCalculator]
MessagesCollectionViewFlowLayout Class Reference