public final class RedirectComponent
extends <any>
Modifier and Type | Field and Description |
---|---|
static <any> |
PROVIDER |
Constructor and Description |
---|
RedirectComponent(android.app.Application application,
RedirectConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getReturnUrl(android.content.Context context)
Returns the suggested value to be used as the `returnUrl` value in the payments/ call.
|
protected java.util.List<java.lang.String> |
getSupportedActionTypes() |
protected void |
handleActionInternal(android.app.Activity activity,
Action action) |
void |
handleRedirectResponse(android.net.Uri data)
Call this method when receiving the return URL from the redirect with the result data.
|
static void |
makeRedirect(android.app.Activity activity,
RedirectAction redirectAction)
Make a redirect from the provided Activity to the target of the Redirect object.
|
public RedirectComponent(android.app.Application application, RedirectConfiguration configuration)
public static java.lang.String getReturnUrl(android.content.Context context)
context
- The context provides the package name which constitutes part of the ReturnUrlRedirectUtil.REDIRECT_RESULT_SCHEME
+ App package name.public static void makeRedirect(android.app.Activity activity, RedirectAction redirectAction) throws ComponentException
activity
- The Activity starting the redirect.redirectAction
- The object from the server response defining where to redirect to.ComponentException
protected java.util.List<java.lang.String> getSupportedActionTypes()
protected void handleActionInternal(android.app.Activity activity, Action action) throws ComponentException
ComponentException
public void handleRedirectResponse(android.net.Uri data)
Intent.getData()
and begins with the returnUrl you specified on the payments/ call.data
- The Uri from the response.