Package com.batch.android.core
Class DeeplinkHelper
- java.lang.Object
-
- com.batch.android.core.DeeplinkHelper
-
public class DeeplinkHelper extends java.lang.ObjectSimple helper for deeplinking related methods
-
-
Constructor Summary
Constructors Constructor Description DeeplinkHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static android.content.IntentgetFallbackIntent(android.content.Context context)Get the fallback intent for the current package.static android.content.IntentgetIntent(java.lang.String rawDeeplink, boolean useCustomTabIfPossible, boolean useNewTask)Get the intent to open for a specified deeplink
-
-
-
Method Detail
-
getIntent
@Nullable public static android.content.Intent getIntent(@NonNull java.lang.String rawDeeplink, boolean useCustomTabIfPossible, boolean useNewTask)Get the intent to open for a specified deeplinkCan throw runtime exceptions
- Parameters:
rawDeeplink- Raw deeplink to openuseCustomTabIfPossible- Use a custom tab if supporteduseNewTask- Open in a new task (unsupported on custom tabs)- Returns:
- Intent to attempt to open for the deeplink
-
getFallbackIntent
public static android.content.Intent getFallbackIntent(android.content.Context context)
Get the fallback intent for the current package.- Parameters:
context-- Returns:
-
-