public static class Webcom.Companion
Modifier and Type | Method and Description |
---|---|
void |
onReady(java.lang.Runnable runnable)
Registers the
runnable callback to be called as soon as the Webcom SDK has completed its initialization. |
void |
waitForReady()
Blocks the calling thread until the Webcom SDK has completed its initialization.
|
@JvmStatic public void onReady(@NotNull java.lang.Runnable runnable)
Registers the runnable
callback to be called as soon as the Webcom SDK has completed its initialization.
No instance of the class Webcom
can be created before the completion of the SDK initialization.
Calling any of its constructors is safe as soon as any of the registered callbacks has been called.
If the initialization is already complete when calling this method, the given callback is called immediately.
runnable
,
class Webcom
,
waitForReady