Skip to main content

getConversationIDBySessionType

Feature Introduction

Description

Get the conversation ID based on the session type.

Function Prototype


- (NSString *)getConversationIDBySessionType:(OIMConversationType)sessionType
sourceID:(NSString *)sourceID;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
sessionTypeOIMConversationTypeYesSession type
sourceIDNSStringYesUser ID for individual chat, group ID for group chat

Return Value

NameTypeDescription
conversationIDNSStringSuccessful return

Code Example


NSString *conversationID = [OIMManager.manager getConversationIDBySessionType:OIMConversationTypeC2C sourceID:@""];