HomeScreenFragment
Fragment that hosts the Home screen, fetching user info, account status, and account balance on resume and rendering MainScreen via Jetpack Compose.
Data fetching is gated on MainViewModel.isBootstrapComplete: on each resume the fragment waits for the first true emission before calling any HomeScreenViewModel method. This prevents the home API calls from racing against the credential bootstrap sequence initiated by io.rekast.sdk.sample.views.MainActivity.onResume. On subsequent resumes where credentials are already cached, bootstrap completes in milliseconds and the calls fire immediately.
Credentials are no longer pushed into the SDK from here — the io.rekast.sdk.network.interfaces.CredentialProvider wired by the app's DI reads them from storage on every request automatically.
Functions
Inflates the Home screen Compose hierarchy, wiring up MainScreen with its ViewModel, NavController, and snackbar state.
Waits for MainViewModel.isBootstrapComplete to become true before triggering any home screen API calls. This block is automatically cancelled on onPause and re-executed on the next onResume, ensuring data is refreshed on every visit without racing against bootstrap.