Loading packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java +20 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ public class DataBoostWebServiceFlow { * * This can be called using the JavaScript below: * <script type="text/javascript"> * function getRequestedCapability(duration) { * function getRequestedCapability() { * DataBoostWebServiceFlow.getRequestedCapability(); * } * </script> Loading @@ -57,6 +57,25 @@ public class DataBoostWebServiceFlow { * * This can be called using the JavaScript below: * <script type="text/javascript"> * function notifyPurchaseSuccessful(duration_ms_long = 0) { * DataBoostWebServiceFlow.notifyPurchaseSuccessful(duration_ms_long); * } * </script> * * @param duration The duration for which the premium capability is purchased in milliseconds. * NOTE: The duration parameter is not used. */ @JavascriptInterface public void notifyPurchaseSuccessful(long duration) { mActivity.onPurchaseSuccessful(); } /** * Interface method allowing the carrier website to notify the slice purchase application of * a successful premium capability purchase. * * This can be called using the JavaScript below: * <script type="text/javascript"> * function notifyPurchaseSuccessful() { * DataBoostWebServiceFlow.notifyPurchaseSuccessful(); * } Loading Loading
packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java +20 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ public class DataBoostWebServiceFlow { * * This can be called using the JavaScript below: * <script type="text/javascript"> * function getRequestedCapability(duration) { * function getRequestedCapability() { * DataBoostWebServiceFlow.getRequestedCapability(); * } * </script> Loading @@ -57,6 +57,25 @@ public class DataBoostWebServiceFlow { * * This can be called using the JavaScript below: * <script type="text/javascript"> * function notifyPurchaseSuccessful(duration_ms_long = 0) { * DataBoostWebServiceFlow.notifyPurchaseSuccessful(duration_ms_long); * } * </script> * * @param duration The duration for which the premium capability is purchased in milliseconds. * NOTE: The duration parameter is not used. */ @JavascriptInterface public void notifyPurchaseSuccessful(long duration) { mActivity.onPurchaseSuccessful(); } /** * Interface method allowing the carrier website to notify the slice purchase application of * a successful premium capability purchase. * * This can be called using the JavaScript below: * <script type="text/javascript"> * function notifyPurchaseSuccessful() { * DataBoostWebServiceFlow.notifyPurchaseSuccessful(); * } Loading