Class DeepLinkPlusAction
- java.lang.Object
-
- org.prebid.mobile.rendering.utils.url.action.DeepLinkPlusAction
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSCHEME_DEEPLINK_PLUS
-
Constructor Summary
Constructors Constructor Description DeepLinkPlusAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidperformAction(android.content.Context context, UrlHandler urlHandler, android.net.Uri uri)Executes specific action on the given uri.booleanshouldBeTriggeredByUserAction()booleanshouldOverrideUrlLoading(android.net.Uri uri)Determines if the uri can be handled by specific action.
-
-
-
Field Detail
-
SCHEME_DEEPLINK_PLUS
public static final java.lang.String SCHEME_DEEPLINK_PLUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 ActionNotResolvedExceptionDescription 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.
-
-