Skip to main content

setConversation

Feature Introduction

Description

Set session information.

Note

Related Callback: onConversationChanged

Function Prototype


- (void)setConversation:(NSString *)conversationID
req:(OIMConversationReq *)req
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
conversationIDNSStringYESConversation ID
reqOIMConversationReqYESChanged structure

Return Value

NameTypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackFailure return

Code Example


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

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

}];