DeviceIdentity class
Simple utility for device identity management.
Mirrors iOS DeviceIdentity from RunAnywhere SDK.
Provides persistent UUID that survives app reinstalls.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
persistentUUID
→ Future<
String> -
Get a persistent device UUID that survives app reinstalls.
Uses secure storage for persistence, generates new UUID if none exists.
no setter
Static Methods
-
clearCache(
) → void - Clear cached UUID (for testing).
-
validateUUID(
String uuid) → bool - Validate if a device UUID is properly formatted.