Class POBDeepLinkUtil

  • All Implemented Interfaces:

    
    public class POBDeepLinkUtil
    
                        

    PMDeepLinkUtil is used to manage DeepLinking functionality on the basis of URL scheme

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean validateAndRedirect(Context context, String url) This method validate URL and redirect to deep link if deep link happen successfully
      static boolean triggerDeepLink(@NonNull() Context context, @NonNull() String url, boolean isProductPage) This method is used to trigger Deeplink through Intent with action Action_View
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • POBDeepLinkUtil

        POBDeepLinkUtil()
    • 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 intent
        url - 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 context
        url - on which Deeplink is triggering
        isProductPage - boolean to check if deep link is for product page
        Returns:

        true if Deeplink happens successfully else returns false