MessagesViewController
open class MessagesViewController: UIViewController,
UICollectionViewDelegateFlowLayout, UICollectionViewDataSource
A subclass of UIViewController
with a MessagesCollectionView
object
that is used to display conversation interfaces.
-
The
MessagesCollectionView
managed by the messages view controller object.Declaration
Swift
open var messagesCollectionView = MessagesCollectionView()
-
The
MessageInputBar
used as theinputAccessoryView
in the view controller.Declaration
Swift
open var messageInputBar = MessageInputBar()
-
A Boolean value that determines whether the
MessagesCollectionView
scrolls to the bottom whenever theInputTextView
begins editing.The default value of this property is
false
.Declaration
Swift
open var scrollsToBottomOnKeybordBeginsEditing: Bool = false
-
A Boolean value that determines whether the
MessagesCollectionView
maintains it’s current position when the height of theMessageInputBar
changes.The default value of this property is
false
.Declaration
Swift
open var maintainPositionOnKeyboardFrameChanged: Bool = false
-
Undocumented
Declaration
Swift
open override var canBecomeFirstResponder: Bool
-
Undocumented
Declaration
Swift
open override var inputAccessoryView: UIView?
-
Undocumented
Declaration
Swift
open override var shouldAutorotate: Bool
-
Undocumented
Declaration
Swift
open override func viewDidLoad()
-
Undocumented
Declaration
Swift
open override func viewDidAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
open override func viewWillDisappear(_ animated: Bool)
-
Undocumented
Declaration
Swift
open override func viewDidLayoutSubviews()
-
Undocumented
Declaration
Swift
open func numberOfSections(in collectionView: UICollectionView) -> Int
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForHeaderInSection section: Int) -> CGSize
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForFooterInSection section: Int) -> CGSize
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, shouldShowMenuForItemAt indexPath: IndexPath) -> Bool
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, canPerformAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: Any?) -> Bool
-
Undocumented
Declaration
Swift
open func collectionView(_ collectionView: UICollectionView, performAction action: Selector, forItemAt indexPath: IndexPath, withSender sender: Any?)