Skip to content

Commit 5eb78fe

Browse files
author
Jason Lai
committed
Add joinWebApp for Android plugin
1 parent 108e966 commit 5eb78fe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/android/JSCommandDispatcher.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,13 @@ public void webAppLauncher_launchWebApp(JSCommand command, JSONObject args) thro
547547
device.getWebAppLauncher().launchWebApp(webAppId, command.getWebAppLaunchListener());
548548
}
549549

550+
@CommandMethod
551+
public void webAppLauncher_joinWebApp(JSCommand command, JSONObject args) throws JSONException {
552+
String webAppId = args.getString("webAppId");
553+
554+
device.getWebAppLauncher().joinWebApp(webAppId, command.getWebAppLaunchListener());
555+
}
556+
550557
/* WebAppSession methods */
551558

552559
WebAppSessionWrapper getWebAppSessionWrapper(String objectId) {

0 commit comments

Comments
 (0)