Annotation Interface CustomChatChannel


@Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface CustomChatChannel

Runtime annotation used to specify custom chat channels.

Since:
12.20
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the unique name of the CustomChatChannel.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the display name of the CustomChatChannel.
    The CustomChatChannelMessageFormat which the MessengerTextMessage of this CustomChatChannel uses (TEXT by default).
    The CustomChatChannelMessageFormatElements which the CustomChatChannel supports (none by default).
    The method may return the resource path to the optional PNG icon resource of the CustomChatChannel.
  • Element Details

    • name

      String name
      Returns the unique name of the CustomChatChannel.
      Returns:
      the unique name of the CustomChatChannel
      Since:
      12.20
    • displayName

      String displayName
      Returns the display name of the CustomChatChannel.
      Returns:
      the displayName of the CustomChatChannel
      Since:
      12.20
      Default:
      ""
    • pngIconResourcePath

      String pngIconResourcePath
      The method may return the resource path to the optional PNG icon resource of the CustomChatChannel. The image resource must be a PNG icon and should have the dimension of 30 x 30 pixel. Please specify the resource path relative to your MessengerConnectorPlugin class or absolute to the plugin JAR file of the app. e.g. "/META-INF/resources/images/myicon.png"
      Returns:
      the resource path to the optional PNG icon resource of the CustomChatChannel
      Since:
      12.20
      Default:
      ""
    • format

      The CustomChatChannelMessageFormat which the MessengerTextMessage of this CustomChatChannel uses (TEXT by default).

      Returns:
      the CustomChatChannelMessageFormat which the MessengerTextMessages of this CustomChatChannel will use.
      Since:
      12.20
      Default:
      TEXT
    • formatElements

      The CustomChatChannelMessageFormatElements which the CustomChatChannel supports (none by default). Has no effect, if the format of the CustomChatChannel is TEXT.

      If the HTML format is chosen, MessengerTextMessages will implicitly include <br> tags instead of new lines and the additionally defined CustomChatChannelMessageFormatElements.

      Returns:
      an array of CustomChatChannelMessageFormatElement that the CustomChatChannel supports.
      Since:
      12.20
      Default:
      {}