Skip to main content

changeInputStates

Function Introduction

Note

Change the input state.

Caution

When input is finished, set the focus value to false.

Function Prototype


- (void)changeInputStates:(NSString *)conversationID
focus:(BOOL)focus
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
conversationIDNSStringYesConversation ID
focusBOOLYesWhether currently inputting

Return Result

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager changeInputStates:@""
focus:
onSuccess:^(NSString * _Nullable data) {

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

}];