Device

class Device @VisibleForTesting(otherwise = 2) constructor(context: Context) : DeviceBuildInfo, DeviceInfo

Represents the physical device, providing a stable unique identifier used for push notification registration.

Constructors

Link copied to clipboard
@VisibleForTesting(otherwise = 2)
constructor(context: Context)

Types

Link copied to clipboard
object Companion : SingletonHolder<Device, Context>

Properties

Link copied to clipboard
Link copied to clipboard
open override val deviceId: String

Unique identifier for this device, persisted across app launches.

Link copied to clipboard
open override val deviceType: String

Device manufacturer and model (e.g., "Samsung Galaxy S24").

Link copied to clipboard
Link copied to clipboard
open override val osName: String

Operating system name (e.g., "Android").

Link copied to clipboard
open override val osVersion: String

Operating system API level as a string.