Structures

The following structures are available globally.

  • MediaType is used to tell the type of content a resource is.

    Examples of mediatypes are image/gif, text/css and application/xhtml+xml

    See more

    Declaration

    Swift

    public struct MediaType : Equatable
  • A ClassBasedOnClickListener takes a closure which is performed if a given html class is clicked. The closure will reveice the content of the specified parameter.

    Eg. A ClassBasedOnClickListener with the className quote and parameterName id with the given epub html content <section class="quote" id="12345"> would call the given closure on a click on this section with the String 12345 as parameter.

    See more

    Declaration

    Swift

    public struct ClassBasedOnClickListener
  • Defines a custom Quote image, can be a square UIImage, solid UIColor or CAGradientLayer.

    See more

    Declaration

    Swift

    public struct QuoteImage