Package-level declarations

Types

Link copied to clipboard

The AndroidIDDeviceIdentifier class provides a way to retrieve the Android ID of the device. This ID is unique to each device and is used as a device identifier.

Link copied to clipboard

The default implementation of DeviceIdentifier that uses the Android KeyStore to generate a persistent device identifier.

Link copied to clipboard

Interface for obtaining a device-specific identifier.

Link copied to clipboard

A delegate that implements DeviceIdentifier and caches the result of the id() function.

Link copied to clipboard
class DeviceIdentifierException(message: String, cause: Throwable? = null) : Exception

Exception thrown when there is an error retrieving a device identifier.

Link copied to clipboard

A compatibility implementation of DeviceIdentifier that provides backward compatibility with legacy device identification methods.

Functions

Link copied to clipboard
inline suspend fun catch(crossinline block: suspend () -> String): String

Inline function to safely execute a device identifier retrieval function and wrap any exceptions in a DeviceIdentifierException.