public class AppboyNavigator extends java.lang.Object implements IAppboyNavigator
IAppboyNavigator.IntentFlagPurpose
Constructor and Description |
---|
AppboyNavigator() |
Modifier and Type | Method and Description |
---|---|
static void |
executeNewsFeedAction(android.content.Context context,
NewsfeedAction newsfeedAction) |
static void |
executeUriAction(android.content.Context context,
UriAction uriAction) |
static IAppboyNavigator |
getAppboyNavigator()
Gets the current IAppboyNavigator class that defines the actions that should be taken when Braze attempts to
display the news feed or open a URI from an in-app message.
|
int |
getIntentFlags(IAppboyNavigator.IntentFlagPurpose intentFlagPurpose)
Get the flag mask used for
Intent.setFlags(int) based
on the Intent usage. |
void |
gotoNewsFeed(android.content.Context context,
NewsfeedAction newsfeedAction)
This delegate method will be called when Braze wants to display the news feed.
|
void |
gotoUri(android.content.Context context,
UriAction uriAction)
This delegate method will be called when Braze wants to navigate to a particular URI.
|
static void |
setAppboyNavigator(IAppboyNavigator appboyNavigator)
Sets the class that defines the actions that should be taken when Braze attempts to display the news
feed or open a URI from an in-app message.
|
public void gotoNewsFeed(android.content.Context context, NewsfeedAction newsfeedAction)
IAppboyNavigator
gotoNewsFeed
in interface IAppboyNavigator
context
- The current context.newsfeedAction
- The news feed action to execute.public void gotoUri(android.content.Context context, UriAction uriAction)
IAppboyNavigator
AppboyNavigator
.gotoUri
in interface IAppboyNavigator
context
- The current context.uriAction
- The Uri action to execute.public int getIntentFlags(IAppboyNavigator.IntentFlagPurpose intentFlagPurpose)
IAppboyNavigator
Intent.setFlags(int)
based
on the Intent usage.getIntentFlags
in interface IAppboyNavigator
public static void executeNewsFeedAction(android.content.Context context, NewsfeedAction newsfeedAction)
public static void executeUriAction(android.content.Context context, UriAction uriAction)
public static IAppboyNavigator getAppboyNavigator()
public static void setAppboyNavigator(IAppboyNavigator appboyNavigator)
appboyNavigator
- The IAppboyNavigator to use when attempting to display news feed or navigate to
a URI.