AttachmentViewInjector
An object used for injecting attachment views into ChatMessageContentView
. The injector is also
responsible for updating the content of the injected views.
open class AttachmentViewInjector
Initializers
init(_:)
Creates a new instance of the injector.
public required init(_ contentView: ChatMessageContentView)
Parameters
contentView
: The target view used for injecting the views of this injector.
init?(coder:)
@available(*, unavailable)
public required init?(coder: NSCoder)
Properties
fillAllAvailableWidth
Says whether a message content should start filling all available width.
Is true
by default.
open var fillAllAvailableWidth: Bool = true
contentView
The target view used for injecting the views of this injector.
public unowned let contentView: ChatMessageContentView
Methods
contentViewDidPrepareForReuse()
Called after contentView.prepareForReuse
is called.
open func contentViewDidPrepareForReuse()
contentViewDidLayout(options:)
Called after the contentView
finished its layout(options:)
methods.
open func contentViewDidLayout(options: ChatMessageLayoutOptions)
contentViewDidUpdateContent()
Called after contentView.updateContent
is called.
open func contentViewDidUpdateContent()
attachments(payloadType:)
public func attachments<Payload: AttachmentPayload>(
payloadType: Payload.Type
) -> [ChatMessageAttachment<Payload>]