Skip to main content

Introduction

The ShortCutFormatter 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

  1. Create the ShortCutFormatter Class: Define the ShortCutFormatter class by extending the CometChatTextFormatter class.
  1. Override Search Method: Override the search() method to search for shortcuts based on the entered search text.

Usage

  1. Initialization: Initialize an instance of ShortCutFormatter in your application.

Example

Image