partial void OnSimulateTyping(UIBarButtonItem sender) { if (CanShowTypingIndicator) { TypingIndicatorView.InsertUsername(RandomUser()); } }
void handleBotClientUserTypingMessageReceived(object sender, string e) { if (!string.IsNullOrEmpty(e)) { TypingIndicatorView.InsertUsername(e); Task.Run(async() => { await Task.Delay(3000); BeginInvokeOnMainThread(() => TypingIndicatorView.RemoveUsername(e)); }); } }