-
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class DeviceIdFilePersistence
This class is responsible for persisting and retrieving a device ID to a file.
This class is made multi-process safe through the use of a FileLock, and thread safe through the use of a ReadWriteLock in SynchronizedStreamableStore.
This file mirrors the
DeviceIdFilePersistenceclass inbugsnag-android.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDeviceIdFilePersistence.Companion
-
Constructor Summary
Constructors Constructor Description DeviceIdFilePersistence(File file, Function0<UUID> deviceIdGenerator)
-
Method Summary
Modifier and Type Method Description final StringloadDeviceId(Boolean requestCreateIfDoesNotExist)Loads the device ID from its file system location. -
-
Method Detail
-
loadDeviceId
final String loadDeviceId(Boolean requestCreateIfDoesNotExist)
Loads the device ID from its file system location. If no value is present then a UUID will be generated and persisted.
-
-
-
-