Class DeepLinkAction

java.lang.Object
org.prebid.mobile.rendering.utils.url.action.DeepLinkAction
All Implemented Interfaces:
UrlAction

public class DeepLinkAction extends Object implements UrlAction
  • Constructor Details

    • DeepLinkAction

      public DeepLinkAction()
  • Method Details

    • shouldOverrideUrlLoading

      public boolean shouldOverrideUrlLoading(android.net.Uri uri)
      Description copied from interface: UrlAction
      Determines if the uri can be handled by specific action. NOTE: In order to make all actions work properly - each action should handle unique URIs.
      Specified by:
      shouldOverrideUrlLoading in interface UrlAction
      Parameters:
      uri - which should be handled.
      Returns:
      true if given action can process such URI. False otherwise.
    • performAction

      public void performAction(android.content.Context context, UrlHandler urlHandler, android.net.Uri uri) throws ActionNotResolvedException
      Description copied from interface: UrlAction
      Executes specific action on the given uri.
      Specified by:
      performAction in interface UrlAction
      Parameters:
      context - activity context.
      urlHandler - holder of action.
      uri - which should be handled.
      Throws:
      ActionNotResolvedException - when action can be performed (shouldOverrideUrlLoading: true) and for some reason it's not handled NOTE: Pass reason error message into ActionNotResolvedException
    • shouldBeTriggeredByUserAction

      public boolean shouldBeTriggeredByUserAction()
      Specified by:
      shouldBeTriggeredByUserAction in interface UrlAction
      Returns:
      true - if this action should be triggered by user in order to proceed. False - if performing this action doesn't require it to be triggered by user interaction.