getStore

Gets a HealthDataStore instance that binds to the Samsung Health.

Return

The HealthDataStore instance to access the data stored in the Samsung Health.

Since

1.0.0

Parameters

context

Application's context


fun getStore(context: Context, coroutineScope: CoroutineScope? = CoroutineScope(Dispatchers.Default + CoroutineName("healthstore"))): HealthDataStore

Creates a HealthDataStore instance that binds to the Samsung Health.

Return

The HealthDataStore instance to access the data stored in the Samsung Health.

Since

1.0.0

Parameters

context

The application's context.

coroutineScope

The optional scope for a co-routine.

Preferences Submitted

You have successfully updated your cookie preferences.