From 991f82ea89354d1fec642ea6b4538fd26dd07fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3th=20D=C3=A1niel?= Date: Fri, 14 Jun 2024 17:01:12 +0200 Subject: [PATCH] Update android sdk onClientReady hook with ClientReadyState parameter (#450) * Update android sdk onClientReady hook with ClientReadyState parameter * Updates based on review. * Update website/docs/sdk-reference/android.mdx Fix state name Co-authored-by: adams85 <31276480+adams85@users.noreply.github.com> --------- Co-authored-by: adams85 <31276480+adams85@users.noreply.github.com> --- website/docs/sdk-reference/android.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/sdk-reference/android.mdx b/website/docs/sdk-reference/android.mdx index b4c4ff14..c5ce8405 100644 --- a/website/docs/sdk-reference/android.mdx +++ b/website/docs/sdk-reference/android.mdx @@ -421,7 +421,7 @@ client.forceRefresh(); With the following hooks you can subscribe to particular events fired by the SDK: -- `onClientReady()`: This event is sent when the SDK reaches the ready state. If the SDK is configured with lazy load or manual polling it's considered ready right after instantiation. +- `onClientReady(ClientCacheState)`: This event is sent when the SDK reaches the ready state. If the SDK is set up to use lazy loading or manual polling, it's considered ready right after syncing up with the config cache. If it's using auto polling, the ready state is reached when the SDK has a valid config JSON loaded into memory either from cache or from HTTP. If the config couldn't be loaded neither from cache nor from HTTP the `onClientReady` event fires when the auto polling's `maxInitWaitTimeSeconds` is reached. - `onConfigChanged(Map)`: This event is sent when the SDK loads a valid config JSON into memory from cache, and each subsequent time when the loaded config JSON changes via HTTP.