Room Event - OnCreate

The event is raised when Create is called. In order to obtain the room ID, you must call GetRoomID when the event is raised.

The event is meant to report on if the room creation operation was a success or not.

Another parameter passed is createdTime. This is the server timestamp that indicates the room creation time.

room.OnCreate += OnRoomCreate;

private void OnRoomCreate(bool success, uint createdTime)
  // If success is false, room creation has failed.
  // bool createdTime is the timestamp to be shared by the members of the room
  // remember the room ID
  roomID = room.GetRoomID();

Last updated