onJoinRoomDone, onUpdatePropertyDone, etc are functions defined in listeners. They will be called automatically whenever corrsponding api is called. For example, when you call joinRoom() method, your onJoinRoomDone() will be automatically invoked with the result corresponding to the method called. Same happens with other methods.
Please check out our documentation to learn more about all the listeners.