Annotation Interface CustomChatChannel
Runtime annotation used to specify custom chat channels.
- Since:
- 12.20
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe 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
- Since:
- 12.20
-
displayName
String displayName- Returns:
- the displayName of the CustomChatChannel
- Since:
- 12.20
- Default:
""
-
pngIconResourcePath
String pngIconResourcePathThe 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 theMessengerTextMessage
s of thisCustomChatChannel
will use. - Since:
- 12.20
- Default:
TEXT
-
formatElements
CustomChatChannelMessageFormatElement[] formatElementsThe 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,
MessengerTextMessage
s will implicitly include <br> tags instead of new lines and the additionally definedCustomChatChannelMessageFormatElement
s.- Returns:
- an array of
CustomChatChannelMessageFormatElement
that theCustomChatChannel
supports. - Since:
- 12.20
- Default:
{}
-