public enum HomeBackend

  1. Object
  2. Enum<HomeBackend>
  3. HomeBackend

ImplementsComparable<HomeBackend>

Which platform service is behind this SmartHome instance.

Provided so an app can explain a limitation, not so it can branch around one. Every real capability question has its own query – SmartHome.getAvailability(), Trait support on a service, TraitSubscription.isPushDelivery(), Commissioner.isSupported() – and code that switches on this enum instead will be wrong the first time a backend gains or loses something. Use it for the sentence you show the user.

Enum constants

HOMEKITApple HomeKit, on iOS, iPadOS, watchOS, tvOS and macOS.
GOOGLE_HOMEThe Google Home APIs on Android: the full structure, room, device and trait graph.
MATTER_COMMISSIONING_ONLYGoogle Play services Matter commissioning on Android, with no accessory graph behind it.
LOCALThe app-private simulated home used by the simulator, the desktop ports and the JavaScript port.
NONENo backend at all – the inert fallback.

Methods

public static HomeBackend[] values()
public static HomeBackend valueOf(String name)

Inherited methods

Enum constant details

HOMEKIT

HOMEKIT
Apple HomeKit, on iOS, iPadOS, watchOS, tvOS and macOS.

GOOGLE_HOME

GOOGLE_HOME
The Google Home APIs on Android: the full structure, room, device and trait graph.

MATTER_COMMISSIONING_ONLY

MATTER_COMMISSIONING_ONLY
Google Play services Matter commissioning on Android, with no accessory graph behind it. Pairs with HomeAvailability.COMMISSIONING_ONLY.

LOCAL

LOCAL
The app-private simulated home used by the simulator, the desktop ports and the JavaScript port.

NONE

NONE
No backend at all – the inert fallback.

Method details

values

public static HomeBackend[] values()

valueOf

public static HomeBackend valueOf(String name)