Skip to content

Commit

Permalink
Add joinWebApp for Android plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Lai committed May 21, 2014
1 parent 108e966 commit 5eb78fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/android/JSCommandDispatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,13 @@ public void webAppLauncher_launchWebApp(JSCommand command, JSONObject args) thro
device.getWebAppLauncher().launchWebApp(webAppId, command.getWebAppLaunchListener());
}

@CommandMethod
public void webAppLauncher_joinWebApp(JSCommand command, JSONObject args) throws JSONException {
String webAppId = args.getString("webAppId");

device.getWebAppLauncher().joinWebApp(webAppId, command.getWebAppLaunchListener());
}

/* WebAppSession methods */

WebAppSessionWrapper getWebAppSessionWrapper(String objectId) {
Expand Down

0 comments on commit 5eb78fe

Please sign in to comment.