Introduction
TheShortCutFormatter
class extends the CometChatTextFormatter
class to provide a mechanism for handling shortcuts within messages. This guide will walk you through the process of using ShortCutFormatter to implement shortcut extensions in your CometChat application.
Setup
- Create the ShortCutFormatter Class: Define the ShortCutFormatter class by extending the CometChatTextFormatter class.
- Override Search Method: Override the search() method to search for shortcuts based on the entered search text.
Usage
- Initialization: Initialize an instance of
ShortCutFormatter
in your application.
Example
