Events for .NET

TrueConfAbout 3 min

Events for .NET

OnServerStatusEvent

Event triggered when a server connects/disconnects or an error occurs during a connection attempt.

Parameters:

  • connected – indicates whether there is a connection to the server (bool);

  • serverName – the name of the current server (string);

  • serverPort – port number used for server connection (int).

OnStateChangedEvent

This event is triggered when the user's status changes. You can obtain the current status through the functions that request the current state.

OnLoginEvent

Event triggered during server authorization or authorization error.

Parameters:

  • loggedIn – indicates whether the user is authenticated on the server (bool);

  • userIDTrueConf ID of the user (string).

OnLogoutEvent

Event triggered upon deauthorization on the server.

OnConferenceStartEvent

Event triggered at the start of a conference.

OnConferenceEndEvent

The event triggered when a conference ends.

OnInviteEvent

Event triggered upon receiving an incoming call.

Parameters:

  • userIDTrueConf ID of the calling user (string);

  • userName – the name of the calling user (string).

OnAcceptEvent

An event triggered when the callee receives a call.

Parameters:

  • userIDTrueConf ID of the user being called (string);

  • userName – the name of the called user (string).

OnRejectEvent

Event triggered when the called party declines the call.

Parameters:

  • userIDTrueConf ID of the user being called (string);

  • userName – the name of the called user (string).

OnRejectTimeOutEvent

The event triggered when there is no response from the called party within a specified time frame.

Parameters:

  • userIDTrueConf ID of the user being called (string);

  • userName – the name of the called user (string).

OnRecordRequestEvent

Event triggered upon receiving a video recording request.

Parameters:

  • userID – the TrueConf ID of the user requesting the video recording (string);

  • userName – the username of the person requesting the video recording (string).

OnChatMessageReceivedEvent

Event triggered upon receiving a text message.

Parameters:

  • fromUserID – the identifier of the user who sent the message (string);

  • fromUserName – the name of the user who sent the message (string);

  • message – message text (string);

  • toUserID - the identifier of the user to whom the message was sent (string).

OnUserStatusUpdateEvent

An event triggered when another user's status changes.

Parameters:

  • userID – the identifier of the user whose status has changed (string);

  • status – new user status (TUserPresStatus).