Contents

deviceName

A human-readable name for the device.

Declaration

var deviceName: String { get }

Discussion

Set a String value that meets these criteria:

  • Less than or equal to 250 UTF-16 characters

  • Contains only alphanumeric, whitespace, punctuation, or symbol characters.

  • Isn’t the empty String

The framework alters the value to abide by these rules, if necessary.

The Home app incorporates the device by this name when you adopt the EnergyKit LoadEvents Entitlement.

See Also

Getting device information