use of com.herewhite.sdk.domain.WindowRegisterAppParams in project whiteboard-android by netless-io.
the class WindowRegisterAppActivity method registerEmbedPage.
private void registerEmbedPage() {
String jsString = getAppJsFromAsserts("app/embedPage.iife.js");
String kind = "EmbeddedPage";
String variable = "NetlessAppEmbeddedPage.default";
WindowRegisterAppParams params = new WindowRegisterAppParams(jsString, kind, variable, Collections.emptyMap());
mWhiteSdk.registerApp(params, null);
}
use of com.herewhite.sdk.domain.WindowRegisterAppParams in project whiteboard-android by netless-io.
the class WindowRegisterAppActivity method registerMonaco.
private void registerMonaco() {
// register local script
String jsString = getAppJsFromAsserts("app/monaco.iife.js");
String kind = "Monaco";
String variable = "NetlessAppMonaco.default";
WindowRegisterAppParams params = new WindowRegisterAppParams(jsString, kind, variable, Collections.emptyMap());
mWhiteSdk.registerApp(params, new Promise<Boolean>() {
@Override
public void then(Boolean result) {
logAction();
}
@Override
public void catchEx(SDKError t) {
logAction(t.toString());
}
});
// register remote script
String url = "https://cdn.jsdelivr.net/npm/@netless/app-monaco@0.1.13-beta.0/dist/main.iife.js";
WindowRegisterAppParams paramsRemote = new WindowRegisterAppParams(url, kind, Collections.emptyMap());
// mWhiteSdk.registerApp(params);
}
Aggregations