-
- All Implemented Interfaces:
-
com.appstack.attribution.InstallationIdProvider
public final class InstallationIdProviderImpl implements InstallationIdProvider
Generates an installation-scoped UUID on first launch and persists it via StorageProvider. The plain UUID string is returned directly without further hashing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classInstallationIdProviderImpl.Companion
-
Constructor Summary
Constructors Constructor Description InstallationIdProviderImpl(StorageProvider storage)
-
Method Summary
Modifier and Type Method Description StringgetInstallationId()Returns the stable installation ID (UUID). -
-
Constructor Detail
-
InstallationIdProviderImpl
InstallationIdProviderImpl(StorageProvider storage)
-
-
Method Detail
-
getInstallationId
String getInstallationId()
Returns the stable installation ID (UUID). If it does not exist yet, a new UUID is generated and persisted for future calls.
Thread-safe: uses locking to prevent race conditions where multiple threads could generate different UUIDs simultaneously.
-
-
-
-