Instance Method

updateName(_:completionHandler:)

Updates the name of the trigger.

Declaration

func updateName(_ name: String, completionHandler completion: @escaping (Error?) -> Void)

Parameters

name

The new name. Must be unique within the home.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

See Also

Managing Triggers

var name: String

The name of the trigger.

var isEnabled: Bool

State of the trigger.

func enable(Bool, completionHandler: (Error?) -> Void)

Changes the enabled state of the trigger.

var lastFireDate: Date?

The last time this trigger fired.

var uniqueIdentifier: UUID

A unique identifier for this trigger.