EnlightenPopoverDelegate

@objc
public protocol EnlightenPopoverDelegate : AnyObject

A set of optional methods that Enlighten popover delegates can implement to receive events.

  • Invoked when a Markdown string fails to load, this method optionally returns a replacement.

    Declaration

    Swift

    @objc
    optional func enlightenPopoverFailedToLoad(downError: Error) -> String?

    Parameters

    downError

    The DownErrors error that was thrown.

    Return Value

    Optionally, a replacement Markdown string to use in place of the failed one.

  • Invoked when an Enlighten URL scheme was clicked in the popover.

    Declaration

    Swift

    @available(OSX 10.13, *)
    @objc
    optional func enlightenPopover(didClickEnlighten url: URL)

    Parameters

    url

    The Enlighten URL that was clicked.