Package com.wonderpush.sdk
Class WonderPushAbstractDelegate
java.lang.Object
com.wonderpush.sdk.WonderPushAbstractDelegate
- All Implemented Interfaces:
WonderPushDelegate
Default no-op implementation of the
WonderPushDelegate
for easy implementation.
Subclassing this will ensure your code won't break if new methods gets added to the underlying interface.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionurlForDeepLink
(DeepLinkEvent event) Hook called when the SDK is trying to open a deep-link with the appropriate activity or service.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.wonderpush.sdk.WonderPushDelegate
onNotificationOpened, onNotificationReceived, setContext
-
Constructor Details
-
WonderPushAbstractDelegate
public WonderPushAbstractDelegate()
-
-
Method Details
-
urlForDeepLink
Description copied from interface:WonderPushDelegate
Hook called when the SDK is trying to open a deep-link with the appropriate activity or service.Note: This does not fire for silent data notifications.
Return the URL the SDK should proceed with, or
null
if you handled the deep-link yourself. Simply returnevent.getUrl()
to continue with the default behavior.- Specified by:
urlForDeepLink
in interfaceWonderPushDelegate
- Parameters:
event
- The deep-link event information- Returns:
- The URL the SDK should open, or
null
if it should stop normal processing.
-