Class WonderPushAbstractDelegate

java.lang.Object
com.wonderpush.sdk.WonderPushAbstractDelegate
All Implemented Interfaces:
WonderPushDelegate

public abstract class WonderPushAbstractDelegate extends Object implements 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 Details

    • WonderPushAbstractDelegate

      public WonderPushAbstractDelegate()
  • Method Details

    • urlForDeepLink

      public String urlForDeepLink(DeepLinkEvent event)
      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 return event.getUrl() to continue with the default behavior.

      Specified by:
      urlForDeepLink in interface WonderPushDelegate
      Parameters:
      event - The deep-link event information
      Returns:
      The URL the SDK should open, or null if it should stop normal processing.