HasCustomAppData

@HomeExperimentalApi
interface HasCustomAppData

Known direct subclasses
Automation

The main representation an automation, composed of various types of Automation nodes, including Starter instances, Condition instances, Action instances, and more.

HomeDevice

A device supporting traits, commands, and subscriptions.

Room

An object that represents a Room in a Structure.

Known indirect subclasses
MutableAutomation

Mutable attributes for an Automation.


Interface for a Key-Value Controller.

Summary

Public functions

suspend Unit

Deletes the value associated with the given key.

suspend String?

Retrieves the value associated with the given key.

suspend Unit
updateValue(key: String, value: String)

Updates the value associated with the given key.

Public functions

deleteValue

suspend fun deleteValue(key: String): Unit

Deletes the value associated with the given key.

Parameters
key: String

The key to delete.

getValue

suspend fun getValue(key: String): String?

Retrieves the value associated with the given key.

Parameters
key: String

The key to retrieve the value for.

Returns
String?

The value as a String, or null if the key does not exist.

updateValue

suspend fun updateValue(key: String, value: String): Unit

Updates the value associated with the given key.

Parameters
key: String

The key to update.

value: String

The new value.