HYPOverlayPluginViewProvider
@protocol HYPOverlayPluginViewProvider
The HYPOverlayPluginViewProvider protocol defines a mechanism for requesting the view that is overlayed on top of the app when an Overlay plugin becomes active.
-
This gets called when the plugin view should activate in the provided context. Simply add your plugin interation view as a subview to the provided context.
Note: Contexts are changed each plugin activation.
Declaration
Objective-C
- (void)activateOverlayPluginViewWithContext:(id)context;
Swift
func activateOverlayPluginView(withContext context: Any!)
Parameters
context
The provided view the plugin interaction view should be added to.
-
This is called when the plugin deactivates. This provided opportunity to clean up as needed.
Declaration
Objective-C
- (void)deactivateOverlayPluginView;
Swift
func deactivateOverlayPluginView()