HardwareInfo

abstract class HardwareInfo


Information about device hardware.

Summary

Nested types

abstract class HardwareInfo.Builder

Builder for HardwareInfo.

Public functions

java-static HardwareInfo.Builder!
abstract String!

Brand of the device.

Metadata!

Metadata about brand.

java-static HardwareInfo!
abstract String!

The name of the industrial design.

Metadata!

Metadata about device.

abstract String!

Name of the hardware.

Metadata!

Metadata about hardware.

abstract String!

Manufacturer.

Metadata!

Metadata about manufacturer.

abstract String!

The model of the device.

Metadata!

Metadata about model.

abstract String!

The name of the overall product.

Metadata!

Metadata about product.

Boolean

Returns true if brandMetadata is set.

Boolean

Returns true if deviceMetadata is set.

Boolean

Returns true if hardwareMetadata is set.

Boolean

Returns true if manufacturerMetadata is set.

Boolean

Returns true if modelMetadata is set.

Boolean

Returns true if productMetadata is set.

abstract HardwareInfo.Builder!

Public functions

builder

java-static fun builder(): HardwareInfo.Builder!

getBrand

abstract fun getBrand(): String!

Brand of the device. For example, `Google`.

getBrandMetadata

fun getBrandMetadata(): Metadata!

Metadata about brand.

getDefaultInstance

java-static fun getDefaultInstance(): HardwareInfo!

getDevice

abstract fun getDevice(): String!

The name of the industrial design. E.g. angler.

getDeviceMetadata

fun getDeviceMetadata(): Metadata!

Metadata about device.

getHardware

abstract fun getHardware(): String!

Name of the hardware. For example, `Angler`.

getHardwareMetadata

fun getHardwareMetadata(): Metadata!

Metadata about hardware.

getManufacturer

abstract fun getManufacturer(): String!

Manufacturer. For example, `Motorola`.

getManufacturerMetadata

fun getManufacturerMetadata(): Metadata!

Metadata about manufacturer.

getModel

abstract fun getModel(): String!

The model of the device. For example, `Asus Nexus 7`.

getModelMetadata

fun getModelMetadata(): Metadata!

Metadata about model.

getProduct

abstract fun getProduct(): String!

The name of the overall product. E.g. angler.

getProductMetadata

fun getProductMetadata(): Metadata!

Metadata about product.

hasBrandMetadata

fun hasBrandMetadata(): Boolean

Returns true if brandMetadata is set.

hasDeviceMetadata

fun hasDeviceMetadata(): Boolean

Returns true if deviceMetadata is set.

hasHardwareMetadata

fun hasHardwareMetadata(): Boolean

Returns true if hardwareMetadata is set.

hasManufacturerMetadata

fun hasManufacturerMetadata(): Boolean

Returns true if manufacturerMetadata is set.

hasModelMetadata

fun hasModelMetadata(): Boolean

Returns true if modelMetadata is set.

hasProductMetadata

fun hasProductMetadata(): Boolean

Returns true if productMetadata is set.

toBuilder

abstract fun toBuilder(): HardwareInfo.Builder!