Quick Reference for AI Agents & DevelopersThis guide covers: ShortCutFormatter Setup | Search Method Override | Usage with Messages
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.
- TypeScript
- JavaScript
- Override Search Method: Override the search() method to search for shortcuts based on the entered search text.
- TypeScript
- JavaScript
Usage
- Initialization: Initialize an instance of
ShortCutFormatterin your application.
- TypeScript
- JavaScript
Example
- iOS
- Android

