ChatTypingEventArgs
Namespace: Wisej.Web.Ext.Syncfusion2
Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)
Describes a typing-state change reported by the Syncfusion chat composer.
- C#
- VB.NET
public class ChatTypingEventArgs : ChatWidgetEventArgs
Public Class ChatTypingEventArgs
Inherits ChatWidgetEventArgs
Constructors
ChatTypingEventArgs(user, message, isTyping, data)
Initializes a new instance of the ChatTypingEventArgs class.
| Name | Type | Description |
|---|---|---|
| user | ChatUser | The user whose typing state changed. |
| message | String | The text currently in the composer. |
| isTyping | Boolean | true when the user started typing; false when the user stopped. |
| data | Object | The raw event data received from the browser, or null. |
The event name is always set to userTyping.
Example:
The following example, placed in a class derived from Chat, raises UserTyping to signal that the current user stopped typing.
this.OnUserTyping(new ChatTypingEventArgs(this.User, "", false, null));
Properties
IsTyping
Boolean: Gets whether the user is typing: true when typing started, false when it stopped.
Message
String: Gets the text in the composer when the typing state changed.
User
ChatUser: Gets the user whose typing state changed, as reported by the widget.