ZPAdapterProtocol

@objc
public protocol ZPAdapterProtocol : NSObjectProtocol

Base Zapp Plugin protocol

  • Dictionary with configuration params that passed from ZPModel

    Declaration

    Swift

    var configurationJSON: NSDictionary? { get }
  • Initialization with configurationJSON

    Declaration

    Swift

    init(configurationJSON: NSDictionary?)

    Parameters

    configurationJSON

    Dictionary with configuration params that passed from ZPModel

  • Undocumented

    Declaration

    Swift

    init()
  • Handle open url scheme by plugin

    Declaration

    Swift

    @objc
    optional func handleUrlScheme(_ params: NSDictionary)

    Parameters

    params

    url scheme params

  • Implement this method if you need to use the plugin model that initiated your plugin. For example if you need extra information out of it - like react plugins sometiimes need the bundle url. Note - NOT all plugin managers are setting the model right now - so if it doesn’t please look on ZPLoginManager and add it to your plugin manager. This method should be called right after the plugin is being initiated.

    Declaration

    Swift

    @objc
    optional func setPluginModel(_ pluginModel: ZPPluginModel)