SelectFlowBuilder

@AutomationDsl
class SelectFlowBuilder : AutomationFlowBuilder, StarterNodeDsl, ManualStarterNodeDsl, SequentialDsl


Type-safe builder that builds a SelectFlow node.

Summary

Public constructors

Create a SelectFlow instance.

Public functions

SelectFlow

Build a SelectFlow.

Inherited functions

From com.google.home.automation.AutomationFlowBuilder
open List<Node>
From com.google.home.automation.AutomationFlowContributor
From com.google.home.automation.ManualStarterNodeDsl
From com.google.home.automation.SequentialDsl
From com.google.home.automation.StarterNodeDsl
open TypedExpression<T>
<T : Event> starter(structure: Structure, event: EventFactory<T>)

Create a Starter from a Structure and an Event and add it.

open TypedExpression<T>
<T : Trait> starter(structure: Structure, trait: TraitFactory<T>)

Create a Starter from a Structure and a Trait and add it.

open TypedExpression<T>
<T : Event> starter(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    event: EventFactory<T>
)

Create a Starter from a Device and an Event and add it.

open TypedExpression<T>
<T : Trait> starter(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    trait: TraitFactory<T>
)

Create a Starter from a Device and a Trait and add it.

open TypedExpression<T>
<T : Event> starter(
    structure: Structure,
    event: EventFactory<T>,
    block: ParametersBuilder.() -> Unit
)

Create a Starter from a Structure and an Event and add it.

open TypedExpression<T>
<T : Event> starter(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    event: EventFactory<T>
)

Create a Starter from an UnknownEntity and an Event and add it.

open TypedExpression<T>
<T : Trait> starter(
    unknownEntity: UnknownEntity,
    entityType: TypeFactory<HomeObjectType>,
    trait: TraitFactory<T>
)

Create a Starter from an UnknownEntity and a Trait and add it.

open TypedExpression<T>
<T : Event> starter(
    device: HomeDevice,
    deviceType: DeviceTypeFactory<DeviceType>,
    event: EventFactory<T>,
    block: ParametersBuilder.() -> Unit
)

Create a Starter from a Device and a Trait and add it.

Public constructors

SelectFlowBuilder

SelectFlowBuilder(nodes: List<Node> = emptyList())

Create a SelectFlow instance.

Public functions

build

fun build(): SelectFlow

Build a SelectFlow.

Returns
SelectFlow

A SelectFlow instance.