android-components / mozilla.components.concept.sync / Device


data class Device (source)

Describes a device in the DeviceConstellation.


Name Summary
<init> Device(id: String, displayName: String, deviceType: DeviceType, isCurrentDevice: Boolean, lastAccessTime: Long?, capabilities: List<DeviceCapability>, subscriptionExpired: Boolean, subscription: DevicePushSubscription?)
Describes a device in the DeviceConstellation.


Name Summary
capabilities val capabilities: List<DeviceCapability>
deviceType val deviceType: DeviceType
displayName val displayName: String
id val id: String
isCurrentDevice val isCurrentDevice: Boolean
lastAccessTime val lastAccessTime: Long?
subscription val subscription: DevicePushSubscription?
subscriptionExpired val subscriptionExpired: Boolean

Extension Functions

Name Summary
into fun Device.into(): Device
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.