Package com.pubmatic.sdk.common.utility
Class POBDeepLinkUtil
-
- All Implemented Interfaces:
public class POBDeepLinkUtilPMDeepLinkUtil is used to manage DeepLinking functionality on the basis of URL scheme
-
-
Constructor Summary
Constructors Constructor Description POBDeepLinkUtil()
-
Method Summary
Modifier and Type Method Description static booleanvalidateAndRedirect(Context context, String url)This method validate URL and redirect to deep link if deep link happen successfully static booleantriggerDeepLink(@NonNull() Context context, @NonNull() String url, boolean isProductPage)This method is used to trigger Deeplink through Intent with action Action_View -
-
Method Detail
-
validateAndRedirect
static boolean validateAndRedirect(Context context, String url)
This method validate URL and redirect to deep link if deep link happen successfully
- Parameters:
context- android system context needed for starting intenturl- URL on which Deep link to be performed- Returns:
returns true in-case of DeepLink success else returns false
-
triggerDeepLink
static boolean triggerDeepLink(@NonNull() Context context, @NonNull() String url, boolean isProductPage)
This method is used to trigger Deeplink through Intent with action Action_View
- Parameters:
context- android application contexturl- on which Deeplink is triggeringisProductPage- boolean to check if deep link is for product page- Returns:
true if Deeplink happens successfully else returns false
-
-
-
-