isReady
Indicates whether the UrlPredictor native library is ready to be used.
This method is a convenience wrapper around {@link UrlPredictor#isInitialized()}, exposing the initialization state at the application layer.
Initialization is triggered asynchronously in this class' constructor, via:
coroutineScope.launch(dispatcherProvider.io()) {
UrlPredictor.init()
}
Until initialization completes, calls to {@link #classify(String)} will fail if invoked directly on the underlying UrlPredictor instance; therefore, callers may use {@code isReady()} to determine whether classification is safe.
This method does not block and is safe to call from any thread.
Return
{@code true} if the UrlPredictor native library has been loaded and the predictor instance is fully initialized; {@code false} otherwise.
See also
UrlPredictor
#init()