# Events for React Native
# onServerStatus
Event triggered when a server connects/disconnects or when an error occurs during a connection attempt.
Parameters:
connected
– whether there is a connection to the server (Boolean
);serverName
– the name of the current server (string);serverPort
- the port number used to connect to the server (Number
).
# onStateChanged
Event triggered when the user's own status changes. The current status can be obtained through functions that query the current state.
# onLogin
Event triggered upon authentication or authentication error on the server.
Parameters:
loggedIn
- indicates whether the user is authenticated on the server (Boolean
);userID
– the TrueConf ID of the user (String
).
# onLogout
Event triggered upon deauthorization on the server.
# onConferenceStart
Event triggered when the conference starts.
# onConferenceEnd
Event triggered upon conference completion.
# onInvite
Event triggered upon receiving an incoming call.
Parameters:
userID
– the TrueConf ID of the calling user (String
);userName
– the name of the calling user (string).
# onAccept
Event triggered when the called party receives the call.
Parameters:
userID
– TrueConf ID of the called user (String
);userName
– the name of the called user (string).
# onReject
Event triggered when the callee rejects the call.
Parameters:
userID
– TrueConf ID of the called user (String
);userName
– the name of the called user (string).
# onRejectTimeout
The event triggered when the called party does not respond within a specified time.
Parameters:
userID
– TrueConf ID of the called user (String
);userName
– the name of the called user (string).
# onRecordRequest
Event triggered upon receiving a request for video recording.
Parameters:
userID
– the TrueConf ID of the user requesting the video recording (string);userName
– the name of the user requesting the video recording (string).
# onChatMessageReceived
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
).
# onUserStatusUpdate
Event triggered when another user's status changes.
Parameters:
userID
- the identifier of the user whose status has changed (string);status
– new user status (Number
).
# onExtraButtonPressed
Event triggered by clicking an additional custom button created in the addExtraButton
function.