-
- All Implemented Interfaces:
-
io.customer.messagingpush.util.DeepLinkUtil
public final class DeepLinkUtilImpl implements DeepLinkUtil
-
-
Constructor Summary
Constructors Constructor Description DeepLinkUtilImpl(Logger logger, MessagingPushModuleConfig moduleConfig)
-
Method Summary
Modifier and Type Method Description IntentcreateDefaultHostAppIntent(Context context, String contentActionLink)Creates default launcher intent for host app. IntentcreateDeepLinkHostAppIntent(Context context, String link)Creates intent from host app activities matching the provided link. IntentcreateDeepLinkExternalIntent(Context context, String link, Boolean startingFromService)Creates intent outside the host app that can open the provided link. -
-
Constructor Detail
-
DeepLinkUtilImpl
DeepLinkUtilImpl(Logger logger, MessagingPushModuleConfig moduleConfig)
-
-
Method Detail
-
createDefaultHostAppIntent
Intent createDefaultHostAppIntent(Context context, String contentActionLink)
Creates default launcher intent for host app.
- Parameters:
context- reference to application contextcontentActionLink- action link to add to extras so it can be opened after launcher activity has been created.
-
createDeepLinkHostAppIntent
Intent createDeepLinkHostAppIntent(Context context, String link)
Creates intent from host app activities matching the provided link.
- Parameters:
context- reference to application contextlink- link to create intent for
-
createDeepLinkExternalIntent
Intent createDeepLinkExternalIntent(Context context, String link, Boolean startingFromService)
Creates intent outside the host app that can open the provided link.
- Parameters:
context- reference to application contextlink- link to create intent forstartingFromService- flag to indicate if the intent is to be started from service so required flags can be added
-
-
-
-