Interface ITypingIndicatorService
- Namespace
- Signal.Application.Abstractions
- Assembly
- Signal.Application.dll
Shows and hides the "typing…" indicator.
public interface ITypingIndicatorService
Methods
StartTypingAsync(PhoneNumber, Recipient, CancellationToken)
Shows the typing indicator (PUT /v1/typing-indicator/{number}).
Task StartTypingAsync(PhoneNumber account, Recipient recipient, CancellationToken cancellationToken = default)
Parameters
accountPhoneNumberThe typing account.
recipientRecipientThe conversation to show the indicator in.
cancellationTokenCancellationTokenCancels the request.
Returns
- Task
A task that completes when the indicator was sent.
StopTypingAsync(PhoneNumber, Recipient, CancellationToken)
Hides the typing indicator (DELETE /v1/typing-indicator/{number}).
Task StopTypingAsync(PhoneNumber account, Recipient recipient, CancellationToken cancellationToken = default)
Parameters
accountPhoneNumberThe typing account.
recipientRecipientThe conversation to hide the indicator in.
cancellationTokenCancellationTokenCancels the request.
Returns
- Task
A task that completes when the indicator was sent.