PluginsManager

public class PluginsManager : NSObject
extension PluginsManager: FacadeConnectorPluginManagerControlFlow
extension PluginsManager: LoadingStateMachineDataSource

Undocumented

ExecuteOnLaunch

ExecuteOnFailedLoading

ExecuteOnApplicationReady

ExecuteAfterAppRootPresentation

ExecuteOnContinuingUserActivity

  • Undocumented

    Declaration

    Swift

    public func hookOnContinuingUserActivity(userActivity: NSUserActivity,
                                             hooksPlugins: [AppLoadingHookProtocol]?,
                                             completion: @escaping (() -> Void))
  • Undocumented

    Declaration

    Swift

    func hookAdapterOnContinuingUserActivity(userActivity: NSUserActivity,
                                             adapter: AppLoadingHookProtocol,
                                             completion: @escaping (() -> Void))
  • Undocumented

    Declaration

    Swift

    public func hasHooksForContinuingUserActivity() -> Bool
  • Undocumented

    Declaration

    Swift

    func preapareLoadingPluginStates() -> [LoadingState]
  • Undocumented

    Declaration

    Swift

    public func stateMachineFinishedWork(with state: LoadingStateTypes)
  • Find a plugin model of a given type.

    Declaration

    Swift

    public class func pluginModel(_ type: ZPPluginType) -> ZPPluginModel?

    Parameters

    type

    The type of plugin to search. See ZPPluginType.

    Return Value

    The first plugin found with the given type.

  • Find a plugin model of a given type.

    Note

    This version of the function is required to make it usable in Objective-C code.

    Declaration

    Swift

    @objc
    public class func pluginModel(_ type: String) -> ZPPluginModel?

    Parameters

    type

    The type of plugin to search.

    Return Value

    The first plugin found with the given type.

  • Find all plugin models of a given type.

    Declaration

    Swift

    @objc
    public class func pluginModels(_ type: String) -> [ZPPluginModel]?

    Parameters

    type

    The type of plugin to search.

    Return Value

    The first plugin found with the given type.

  • Find all plugin models of a given type.

    Declaration

    Swift

    public class func pluginModels(_ type: ZPPluginType) -> [ZPPluginModel]?

    Parameters

    type

    The type of plugin enum to search.

    Return Value

    The first plugin found with the given type.

  • Retrieve plugin by specific identifier

    Declaration

    Swift

    @objc
    open class func pluginModelById(_ pluginID: String) -> ZPPluginModel?

    Parameters

    pluginID

    Specific plugin id to search

    Return Value

    Plugin model in case plugin exists

  • All availible plugin models

    Declaration

    Swift

    static var allPluginModels: [ZPPluginModel]?
  • Undocumented

    Declaration

    Swift

    class func parseBasePluginsJson() -> [ZPPluginModel]?
  • Undocumented

    Declaration

    Swift

    class func parseLatestPluginsJson() -> [ZPPluginModel]?
  • Undocumented

    Declaration

    Swift

    class func parsePluginsJson(_ rawData: NSArray) -> [ZPPluginModel]?
  • Undocumented

    Declaration

    Swift

    public class func pluginModels() -> [ZPPluginModel]?
  • Plugins data that was retrieved during application launch, latest availible

    Note: Idea that this url will be used to retrieve configuration json only from plugins that was added in prebuild

    Declaration

    Swift

    fileprivate class func latestJSONPluginData() -> NSArray?

    Return Value

    Array of Data

  • Plugins data that was retrieved from ZappTool during prebuild

    Note: Idea that this url will be used to define plugins that was ready on prebuild phase and will not be changed

    Declaration

    Swift

    fileprivate class func pluginsJSONData() -> NSArray?

    Return Value

    Array of Data

  • Undocumented

    Declaration

    Swift

    fileprivate class func pluginsData(from url: URL) -> NSArray?
  • Undocumented

    Declaration

    Swift

    @objc
    public class func adapterClass(_ pluginModel: ZPPluginModel) -> AnyClass?
  • Undocumented

    Declaration

    Swift

    @objc
    public class func bundleForModelClass(_ pluginModel: ZPPluginModel) -> Bundle?
  • Get the adapter class for the plugin.

    Declaration

    Swift

    public class func adapter(pluginModel: ZPPluginModel) -> ZPAdapterProtocol.Type?

    Parameters

    pluginModel

    The plugin model whose class is loaded.

    Return Value

    The adapter class if found by checking the class name (and modules).

  • In case a plugin defines it, it returns the navigation type that we should use when navigation to a new viewController.

    Declaration

    Swift

    public class func navigationType(withScreenName screenName: String?, model: NSDictionary?) -> String?

    Return Value

    the navigation type that we should use when navigation to a new viewController

  • Undocumented

    Declaration

    Swift

    public class func plugin(model: NSDictionary?) -> ZPPluginModel?
  • Undocumented

    Declaration

    Swift

    public class func plugin(withScreenName screenName: String?,
                             model: NSDictionary?) -> ZPPluginModel?
  • Retrive list of all hooks plugins

    Declaration

    Swift

    public class func getHookPlugins() -> [ZPPluginModel]