SDKsiOS
Retrieve typing status
Retrieve the current typing status of a specified member with OpenIM iOS SDK.
[[OIMManager manager] getInputstates:conversationID
userID:memberUserID
onSuccess:^(NSArray<NSNumber *> *platformIDs) {
[self setTyping:platformIDs.count > 0 userID:memberUserID];
}
onFailure:nil];The success callback returns a snapshot of platform IDs on which the user is still typing. The query itself does not trigger a delegate. In a group chat, do not poll every member frequently. Query important members only when opening the page, recovering a connection, or reconciling state; maintain online increments through the delegate described in Report typing status.
Was this page helpful?