FairEmail/app/src/main/java/com/bugsnag/android/DeviceIdPersistence.kt

15 lines
459 B
Kotlin

package com.bugsnag.android
interface DeviceIdPersistence {
/**
* Loads the device ID from storage.
*
* Device IDs are UUIDs which are persisted on a per-install basis.
*
* This method must be thread-safe and multi-process safe.
*
* Note: requestCreateIfDoesNotExist is only a request; an implementation may still refuse to create a new ID.
*/
fun loadDeviceId(requestCreateIfDoesNotExist: Boolean): String?
}