Package 

Class MessagingDelegate


  • 
    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.

    • Method Summary

      Modifier and Type Method Description
      Boolean shouldHandleUrl(String url, UrlSource urlSource) If Messaging should handle link clicks automatically.
      • Methods inherited from class zendesk.messaging.android.MessagingDelegate

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessagingDelegate

        MessagingDelegate()
    • 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.

        Parameters:
        url - the String representation of the URI that was clicked by the user
        urlSource - where the url was displayed to the user, one of UrlSource