ArmDisarmCommands

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ArmDisarmCommands

Known direct subclasses
ArmDisarm

API for the ArmDisarm trait.


Summary

Public functions

suspend Unit

Sets the alarm level of the device.

BatchableCommand<Unit>

The batchable version of armDisarm command.

Public functions

armDisarm

suspend fun armDisarm(arm: Boolean, optionalArgs: ArmDisarmTrait.ArmDisarmCommand.OptionalArgs.() -> Unit = {}): Unit

Sets the alarm level of the device.

Parameters
arm: Boolean

Starts the arming or disarming operation.

optionalArgs: ArmDisarmTrait.ArmDisarmCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

armDisarmBatchable

fun armDisarmBatchable(arm: Boolean, optionalArgs: ArmDisarmTrait.ArmDisarmCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>

The batchable version of armDisarm command.

Sets the alarm level of the device.

Parameters
arm: Boolean

Starts the arming or disarming operation.

optionalArgs: ArmDisarmTrait.ArmDisarmCommand.OptionalArgs.() -> Unit = {}

Receiver for the optional arguments of this command

Returns
BatchableCommand<Unit>

BatchableCommand