-
- All Implemented Interfaces:
public class MessagingDelegate
A delegate that can be implemented to customize certain Messaging behaviours.
Every method has a default implementation for convenience and you should override the methods corresponding to the behaviour you want to customize.
-
-
Constructor Summary
Constructors Constructor Description MessagingDelegate()
-
Method Summary
Modifier and Type Method Description Boolean
shouldHandleUrl(String url, UrlSource urlSource)
If Messaging should handle link clicks automatically. -
-
Method Detail
-
shouldHandleUrl
Boolean shouldHandleUrl(String url, UrlSource urlSource)
If Messaging should handle link clicks automatically. This method returns true by default.
This function is invoked when a link in a message is clicked by the user. It will be called with the url that was clicked and if it returns true then Messaging will handle the click automatically.
If you wish to handle the click yourself you should return false, in which case Messaging won't do anything.
-
-
-
-