HasName

@HomeExperimentalApi
interface HasName


Interface for objects that have a name and can set it. This interface is experimental and might not work expectedly.

Summary

Public functions

suspend Unit

Sets the name of this object.

Public properties

String

The name of this object.

Public functions

setName

@HomeExperimentalApi
suspend fun setName(newName: String): Unit

Sets the name of this object.

Parameters
newName: String

the new name for this object.

Throws
com.google.home.HomeException

if the update failed.

Public properties

name

val nameString

The name of this object.