Constructor and Description |
---|
UriAction(UriAction originalUriAction)
Constructor to copy an existing
UriAction . |
Modifier and Type | Method and Description |
---|---|
void |
execute(android.content.Context context)
Opens the action's Uri properly based on mUseWebView status and channel.
|
protected android.content.Intent |
getActionViewIntent(android.content.Context context,
android.net.Uri uri,
android.os.Bundle extras) |
Channel |
getChannel() |
android.os.Bundle |
getExtras() |
protected android.content.Intent[] |
getIntentArrayWithConfiguredBackStack(android.content.Context context,
android.os.Bundle extras,
android.content.Intent targetIntent,
BrazeConfigurationProvider configurationProvider)
Gets an
Intent array that has the configured back stack functionality. |
android.net.Uri |
getUri() |
boolean |
getUseWebView() |
protected android.content.Intent |
getWebViewActivityIntent(android.content.Context context,
android.net.Uri uri,
android.os.Bundle extras)
Returns an intent that opens the uri inside of a
BrazeWebViewActivity . |
protected void |
openUriWithActionView(android.content.Context context,
android.net.Uri uri,
android.os.Bundle extras)
Uses an Intent.ACTION_VIEW intent to open the Uri.
|
protected void |
openUriWithActionViewFromPush(android.content.Context context,
android.net.Uri uri,
android.os.Bundle extras)
Uses an
Intent.ACTION_VIEW intent to open the Uri and places the main activity of the
activity on the back stack. |
protected void |
openUriWithWebViewActivity(android.content.Context context,
android.net.Uri uri,
android.os.Bundle extras)
Opens the remote scheme Uri in
BrazeWebViewActivity . |
protected void |
openUriWithWebViewActivityFromPush(android.content.Context context,
android.net.Uri uri,
android.os.Bundle extras)
Opens the remote scheme Uri in
BrazeWebViewActivity while also populating the back stack. |
void |
setUri(android.net.Uri uri) |
void |
setUseWebView(boolean openInWebView) |
public Channel getChannel()
getChannel
in interface IAction
public void execute(android.content.Context context)
public void setUri(android.net.Uri uri)
public void setUseWebView(boolean openInWebView)
public android.net.Uri getUri()
Uri
that represents this UriAction
.public boolean getUseWebView()
UriAction
should openpublic android.os.Bundle getExtras()
protected void openUriWithWebViewActivity(android.content.Context context, android.net.Uri uri, android.os.Bundle extras)
BrazeWebViewActivity
.protected void openUriWithActionView(android.content.Context context, android.net.Uri uri, android.os.Bundle extras)
protected void openUriWithWebViewActivityFromPush(android.content.Context context, android.net.Uri uri, android.os.Bundle extras)
BrazeWebViewActivity
while also populating the back stack.UriAction#getIntentArrayWithConfiguredBackStack(Context, Bundle, Intent)
protected void openUriWithActionViewFromPush(android.content.Context context, android.net.Uri uri, android.os.Bundle extras)
Intent.ACTION_VIEW
intent to open the Uri
and places the main activity of the
activity on the back stack.UriAction#getIntentArrayWithConfiguredBackStack(Context, Bundle, Intent)
protected android.content.Intent getWebViewActivityIntent(android.content.Context context, android.net.Uri uri, android.os.Bundle extras)
BrazeWebViewActivity
.protected android.content.Intent getActionViewIntent(android.content.Context context, android.net.Uri uri, android.os.Bundle extras)
protected android.content.Intent[] getIntentArrayWithConfiguredBackStack(android.content.Context context, android.os.Bundle extras, android.content.Intent targetIntent, BrazeConfigurationProvider configurationProvider)
Intent
array that has the configured back stack functionality.targetIntent
- The ultimate intent to be followed. For example, the main/launcher intent would be the penultimate Intent
.AppboyConfigurationProvider.getIsPushDeepLinkBackStackActivityEnabled()
,
AppboyConfigurationProvider.getPushDeepLinkBackStackActivityClassName()