-
- All Implemented Interfaces:
-
io.opentelemetry.android.internal.services.Lifecycle,io.opentelemetry.android.internal.services.Service
public class PreferencesService implements Service
Utility to store and retrieve apps' preferences.
This class is internal and not for public use. Its APIs are unstable and can change at any time.
-
-
Method Summary
Modifier and Type Method Description static PreferencesServicecreate(Context context)voidstore(String key, int value)intretrieveInt(String key, int defaultValue)-
-
Method Detail
-
create
static PreferencesService create(Context context)
-
retrieveInt
int retrieveInt(String key, int defaultValue)
-
-
-
-