Skip to content

Instantly share code, notes, and snippets.

@rohitsat13

rohitsat13/ConstructDataStore.kt Secret

Last active Mar 22, 2021
Embed
What would you like to do?
/* Copyright 2021 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
val Context.dataStore by dataStore("my_file.json", serializer = UserPreferencesSerializer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment