| 73 | .execute( |
| 74 | new Runnable() { |
| 75 | public void run() { |
| 76 | switch (action) { |
| 77 | case "startConnection": |
| 78 | startConnection(callbackContext); |
| 79 | break; |
| 80 | case "getProducts": |
| 81 | getProducts(getStringList(args, 0), callbackContext); |
| 82 | break; |
| 83 | case "setPurchaseUpdatedListener": |
| 84 | setPurchaseUpdatedListener(callbackContext); |
| 85 | break; |
| 86 | case "purchase": |
| 87 | purchase(arg1, callbackContext); |
| 88 | break; |
| 89 | case "consume": |
| 90 | consume(arg1, callbackContext); |
| 91 | break; |
| 92 | case "getPurchases": |
| 93 | getPurchases(callbackContext); |
| 94 | break; |
| 95 | case "acknowledgePurchase": |
| 96 | acknowledgePurchase(arg1, callbackContext); |
| 97 | break; |
| 98 | } |
| 99 | } |
| 100 | } |
| 101 | ); |
| 102 | |