Class BrowserAction
java.lang.Object
org.prebid.mobile.rendering.utils.url.action.BrowserAction
- All Implemented Interfaces:
UrlAction
-
Constructor Summary
ConstructorsConstructorDescriptionBrowserAction(int broadcastId, OnBrowserActionResultListener onBrowserActionResultListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidperformAction(android.content.Context context, UrlHandler urlHandler, android.net.Uri uri) Executes specific action on the given uri.booleanbooleanshouldOverrideUrlLoading(android.net.Uri uri) Determines if the uri can be handled by specific action.
-
Constructor Details
-
BrowserAction
-
-
Method Details
-
shouldOverrideUrlLoading
public boolean shouldOverrideUrlLoading(android.net.Uri uri) Description copied from interface:UrlActionDetermines 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:
shouldOverrideUrlLoadingin interfaceUrlAction- 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:UrlActionExecutes specific action on the given uri.- Specified by:
performActionin interfaceUrlAction- 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 intoActionNotResolvedException
-
shouldBeTriggeredByUserAction
public boolean shouldBeTriggeredByUserAction()- Specified by:
shouldBeTriggeredByUserActionin interfaceUrlAction- 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.
-