Widgets: Make a generic postMessage API in WidgetVC

It will be used for https://docs.google.com/document/d/1uPF7XWY_dXTKVKV7jZQ2KmsI19wn9-kFRgQ1tFQP7wQ/edit#.

The Modular postMessage API becomes a specialisation of it.
This commit is contained in:
manuroe
2018-05-07 14:18:24 +02:00
parent 6a04301926
commit b1d7617d05
6 changed files with 276 additions and 209 deletions
@@ -14,9 +14,7 @@
limitations under the License.
*/
#import "WebViewViewController.h"
#import <MatrixSDK/MatrixSDK.h>
#import "WidgetViewController.h"
FOUNDATION_EXPORT NSString *const kIntegrationManagerMainScreen;
FOUNDATION_EXPORT NSString *const kIntegrationManagerAddIntegrationScreen;
@@ -24,8 +22,10 @@ FOUNDATION_EXPORT NSString *const kIntegrationManagerAddIntegrationScreen;
/**
`IntegrationManagerViewController` displays the Modular integration manager webapp
into a webview.
It reuses the postMessage API pipe defined in `WidgetViewController`.
*/
@interface IntegrationManagerViewController : WebViewViewController
@interface IntegrationManagerViewController : WidgetViewController
/**
Initialise with params for the Modular interface webapp.