Class MessagingDelegate

  • All Implemented Interfaces:

    @Deprecated(message = "Please use Zendesk SDK") 
    public class MessagingDelegate
    extends 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.android.messaging.MessagingDelegate

        shouldHandleUrl
      • 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
        Returns:

        true if Messaging should handle the click automatically, false if you wish to handle the click yourself