PluginsManager
public class PluginsManager : NSObject
extension PluginsManager: FacadeConnectorPluginManagerControlFlow
extension PluginsManager: LoadingStateMachineDataSource
Undocumented
-
Undocumented
Declaration
Swift
public lazy var analytics: AnalyticsManager { get set } -
Undocumented
Declaration
Swift
public lazy var playerDependants: PlayerDependantPluginsManager { get set } -
Undocumented
Declaration
Swift
public lazy var push: PushPluginsManager { get set } -
Undocumented
Declaration
Swift
public lazy var general: GeneralPluginsManager { get set } -
Undocumented
Declaration
Swift
public lazy var crashlogs: CrashlogsPluginsManager { get set } -
Undocumented
Declaration
Swift
public lazy var localNotificationManager: FacadeConnectorLocalNotificationProtocol? { get set } -
Undocumented
Declaration
Swift
var pluginsStateMachine: LoadingStateMachine! -
Undocumented
Declaration
Swift
var pluginLoaderCompletion: ((Bool) -> Void)? -
Undocumented
Declaration
Swift
func intializePlugins(completion: @escaping (_ success: Bool) -> Void) -
Undocumented
Declaration
Swift
func loadPluginsGroup(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Undocumented
Declaration
Swift
func crashLogs(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Undocumented
Declaration
Swift
func prepareAnalyticsPlugins(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Undocumented
Declaration
Swift
func preparePushPlugins(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Undocumented
Declaration
Swift
func prepareGeneralPlugins(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Undocumented
See moreDeclaration
Swift
func updatePluginSessionStorageData(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Undocumented
Declaration
Swift
func hookOnLaunch(_ successHandler: @escaping StateCallBack, _ failHandler: @escaping StateCallBack) -
Declaration
Swift
public func disablePlugin(identifier: String, completion: ((_ success: Bool) -> Void)?) -
Declaration
Swift
public func disableAllPlugins(pluginType: String, completion: ((_ success: Bool) -> Void)?) -
Declaration
Swift
public func enablePlugin(identifier: String, completion: ((_ success: Bool) -> Void)?) -
Declaration
Swift
public func enableAllPlugins(pluginType: String, completion: ((_ success: Bool) -> Void)?) -
Undocumented
Declaration
Swift
func pluginManager(identifier: String) -> PluginManagerControlFlowProtocol? -
Undocumented
Declaration
Swift
func pluginManager(type: ZPPluginType) -> PluginManagerControlFlowProtocol? -
Declaration
Swift
public func getProviderInstance(identifier: String) -> PluginAdapterProtocol? -
Declaration
Swift
public func getProviderInstance(pluginType: String, condition: (Any) -> Any?) -> PluginAdapterProtocol? -
Undocumented
Declaration
Swift
func createLaunchHooksPlugins(completion: @escaping (() -> Void)) -
Undocumented
Declaration
Swift
func retrieveHooksPlugins() -> [AppLoadingHookProtocol]
-
Undocumented
Declaration
Swift
func hookOnLaunch(hooksPlugins: [AppLoadingHookProtocol]?, completion: @escaping (() -> Void)) -
Undocumented
Declaration
Swift
func hookAdapterOnLaunch(adapter: AppLoadingHookProtocol, completion: @escaping (() -> Void))
-
Undocumented
Declaration
Swift
func hookFailedLoading(hooksPlugins: [AppLoadingHookProtocol]?, completion: @escaping (() -> Void)) -
Undocumented
Declaration
Swift
func hookAdapterOnFailedLoading(adapter: AppLoadingHookProtocol, completion: @escaping (() -> Void))
-
Undocumented
Declaration
Swift
func hookOnApplicationReady(displayViewController: UIViewController?, hooksPlugins: [AppLoadingHookProtocol]?, completion: @escaping (() -> Void)) -
Undocumented
Declaration
Swift
func hookAdapterOnApplicationReady(displayViewController: UIViewController?, adapter: AppLoadingHookProtocol, completion: @escaping (() -> Void))
-
Undocumented
Declaration
Swift
func hookAfterAppRootPresentation(hooksPlugins: [AppLoadingHookProtocol]?, completion: @escaping (() -> Void)) -
Undocumented
Declaration
Swift
func hookAdapterAfterAppRootPresentation(adapter: AppLoadingHookProtocol, completion: @escaping (() -> Void))
-
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
typeThe 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
typeThe 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
typeThe 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
typeThe 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
pluginIDSpecific 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
pluginModelThe 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]