-
public interface AttachmentPreviewHandlerRepresents a handler that can show a preview for an attachment of certain type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAttachmentPreviewHandler.Companion
-
Method Summary
Modifier and Type Method Description abstract BooleancanHandle(Attachment attachment)Determines if the current preview handler is responsible for showing preview for the given attachment. abstract UnithandleAttachmentPreview(Attachment attachment)Shows a preview for this attachment using the current preview handler. -
-
Method Detail
-
canHandle
abstract Boolean canHandle(Attachment attachment)
Determines if the current preview handler is responsible for showing preview for the given attachment.
- Parameters:
attachment- The attachment we want to show the preview for.
-
handleAttachmentPreview
abstract Unit handleAttachmentPreview(Attachment attachment)
Shows a preview for this attachment using the current preview handler.
- Parameters:
attachment- The attachment we want to show the preview for.
-
-
-
-