Parameter setTeleportConfiguredListener
Description
The setTeleportConfiguredListener method in TeleportConfiguration.Builder allows you to set a listener that will be called at the moment of successful Teleport SDK configuration.
Purpose
This listener triggers when the Teleport SDK has successfully received all necessary settings and is ready for operation. After it is called, segment requests begin to be sent to the Teleport SDK for processing, which means the peer-to-peer network has started functioning.
When is it necessary?
Use this listener if you need to perform any actions in your application only after the Teleport SDK is fully initialized and configured. For example, start video playback or update the UI.
Function Requirements
- The listener takes no parameters and returns no value.
Example Usage
kotlin
TeleportConfiguration.Builder("YOUR_API_KEY")
.setTeleportConfiguredListener {
// Here you can perform actions that depend on the Teleport SDK being ready
println("Teleport SDK successfully configured and ready to work!")
// For example, start video loading or update UI status
}
.build()