Skip to main content

attachment-view-injector-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>]

Did you find this page helpful?