Interface RedirectHandler
-
- All Implemented Interfaces:
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public interface RedirectHandler
-
-
Method Summary
Modifier and Type Method Description abstract JSONObjectparseRedirectResult(Uri data)A redirect may return to the application using the ReturnUrl when properly setup in an Intent Filter. abstract UnitlaunchUriRedirect(Context context, String url)abstract UnitsetOnRedirectListener(Function0<Unit> listener)abstract UnitremoveOnRedirectListener()-
-
Method Detail
-
parseRedirectResult
abstract JSONObject parseRedirectResult(Uri data)
A redirect may return to the application using the ReturnUrl when properly setup in an Intent Filter. Is usually contains result information as parameters on that returnUrl. This method parses those results and returns a JSONObject to be used in the details call.
- Parameters:
data- The returned Uri- Returns:
The parsed value to be passed on the payments/details call, on the details parameter.
-
launchUriRedirect
abstract Unit launchUriRedirect(Context context, String url)
-
setOnRedirectListener
abstract Unit setOnRedirectListener(Function0<Unit> listener)
-
removeOnRedirectListener
abstract Unit removeOnRedirectListener()
-
-
-
-