Skip to content

Commit 991f82e

Browse files
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 <[email protected]> --------- Co-authored-by: adams85 <[email protected]>
1 parent da6ac26 commit 991f82e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/sdk-reference/android.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ client.forceRefresh();
421421

422422
With the following hooks you can subscribe to particular events fired by the SDK:
423423

424-
- `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.
424+
- `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.
425425
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.
426426

427427
- `onConfigChanged(Map<String, Setting>)`: 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.

0 commit comments

Comments
 (0)