Plugin

public protocol Plugin : class

The protocol all plugins should conform to.

  • The plugin name.

    Declaration

    Swift

    var name: String
  • The plugin author.

    Declaration

    Swift

    var author: String
  • The plugin author email.

    Declaration

    Swift

    var email: String
  • initialize(application:) Default implementation

    Called when the plugin is initialized.

    Default Implementation

    Declaration

    Swift

    func initialize(application: MartaApplication)
  • The required API version for the plugin.

    Declaration

    Swift

    var requiredApiVersion: ApiVersion
  • dependencies Default implementation

    The plugin identifiers this plugin is dependent on.

    Default Implementation

    Declaration

    Swift

    var dependencies: [String]
  • components Default implementation

    Additional plugin components.

    Default Implementation

    Declaration

    Swift

    var components: [Any]