# Events for iOS/iPadOS
# onServerStatus
Event triggered when a server connects/disconnects or when an error occurs during a connection attempt.
Parameters:
connected
– indicates whether there is a connection to the server (boolean);serverName
– the name of the current server (string);serverPort
– the port number used for connecting to the server (numeric).
# 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 user's TrueConf ID (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
– 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:
fromID
– the user identifier who sent the message (string);fromName
– the name of the user who sent the message (string);text
– message text (string);toID
– 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);state
— new user status (UserPresStatus
).
# onConferencePasswordRequired
Invoked when a PIN code is requested during connection to a conference with a PIN code.
Parameters:
confId
– conference ID (String
)
# setInitViewController
Called before the call interface is launched. Allows you to override the default view controller in the SDK. It takes precedence over the view controller specified during SDK initialization.
Parameters:
aInitViewController
– the view controller to be used (UIViewController
).