GoogleNetworkDevice

class GoogleNetworkDevice : DeviceType


A device representing a group of router nodes or a mesh network controlled as a single entity rather than as individual devices. The network device may reboot, update its software, and have modes to handle Quality of Service (QoS) controls and parental restrictions. The device can perform operations such as enabling the guest network, and reporting network-specific information such as the current internet throughput rates.

Summary

Nested types

Trait Container for Google Traits.

Public constructors

GoogleNetworkDevice(
    metadata: DeviceType.Metadata,
    traitProvider: TraitProvider,
    eventProvider: HasEvents,
    googleTraits: GoogleNetworkDevice.GoogleTraits
)

Creates the GoogleNetworkDevice class.

Inherited functions

From com.google.home.HasEvents
open Flow<Event>

Gets a flow of all Events available for the object.

open Flow<T>
<T : Event> events(event: EventFactory<T>)

Gets a flow of a specific Event.

open Flow<Event>
<T : Trait> events(trait: TraitFactory<T>)

Gets a flow of all Events by this Trait.

From com.google.home.TraitProvider
open T?
<T : Trait> trait(traitFactory: TraitFactory<T>)

Access a specific trait on the provider given a caller-provided TraitFactory.

open Set<Trait>

Given a similar accessible trait set as the function above, returns a subset of those traits that are present in the associated HomeConfig.factoryRegistry union'ed with those already known to the extended sub-class (e.g specific DeviceType that is aware of the set of TraitFactorys specified in its type definition).

Public constructors

GoogleNetworkDevice

GoogleNetworkDevice(
    metadata: DeviceType.Metadata,
    traitProvider: TraitProvider,
    eventProvider: HasEvents,
    googleTraits: GoogleNetworkDevice.GoogleTraits
)

Creates the GoogleNetworkDevice class.

Public properties

metadata

open val metadataDeviceType.Metadata