ios - Best practices for detecting when "user is typing" for chat functionalities? -
I am currently using PubNub to handle real-time aspects of chat and a
PNChannel state when a user is typing or typing is completed. My question relates to the client side how something like isTyping can be measured as there is a time limit between each tap on the screen keyboard, so that I was wondering if there is a "best practice" method that is to measure time interval between the tap of the screen, to understand whether a user is typing or not (for example, a slow typer Versus a sharp turn V) versus when the user has stopped typing in fact? Thank you!
You can see in these
- (zero) textFieldDidBeginEditing : (UITextField *) sender / method fire when you start typing some text in the field of text - (BOOL) textFieldShouldReturn: (UITextField *) textField // method whenever it typed anything in the field of a text- Characters Returns the returns according to - (zero) textFieldDidEndEditing: (UITextField *) Sender // When you type stuff in a text field Hope it helps Land
Comments
Post a Comment