diff options
-rw-r--r-- | packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java b/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java index 4500a220523d..5dcfd3b0237d 100644 --- a/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java +++ b/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/DataBoostWebServiceFlow.java @@ -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> @@ -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(); * } |