Skip to main content

getInputStates

Function Introduction

Note

Get the current input state of a user.

Function Prototype


- (void)getInputstates:(NSString *)conversationID
userID:(NSString *)userID
onSuccess:(nullable OIMInputStatusChangedCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
conversationIDNSStringYesConversation ID
userIDNSStringYesUser ID

Return Result

NameTypeDescription
onSuccessNSArray< NSNumber *>Success return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager getInputstates:@""
userID:
onSuccess:^(NSArray< NSNumber *> * _Nullable data) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];