# Preparations
# Required changes
If you download the sample code, be sure to change the channelKey
value.
You can check the part to be changed through the explanation below and change it.
# vchatcloud object
# vchatcloud class
A VChatCloud instance can be called as a singleton.
VChatCloud.getInstance()
1
# channel method declaration
The channel method is implemented in the vchatCloud instance. Using the channel method, you can enter a chat room and control message events. The code below only covers entering a chat room. For detailed explanations on message sending, announcements, and other events, please refer to the Messages section in the left menu list.
channel = VChatCloud.GetInstance().JoinChannel(options, new JoinChannelCallbackImpl((history, e) =>
{
}));
channel.SetHandler(new MessageHandlerEx(this));
1
2
3
4
5
6
2
3
4
5
6
Parameter values (options)
value identifier Description ChannelKey String Channel Key issued after creating a chat room ClientKey String Unique key for access terminal setting NickName String Nickname of the user entering the chat room UserInfo String User profile information result value
-error
value identifier Description code String error code type String error type message String error message -history
value identifier Description logType String log type roomId String Channel Key issued after creating a chat room clientKey String Unique key for access terminal setting message String message contents mimeType String message type (text: plain text, emoji: emoji) messageType String In case of empty value, general message, notice: "notice" nickName String Nickname of the user entering the chat room date String Transit time grade String User Rating