Contents

addActionSet(_:completionHandler:)

Adds an action set to the trigger.

Declaration

func addActionSet(_ actionSet: HMActionSet, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func addActionSet(_ actionSet: HMActionSet) async throws

Parameters

  • actionSet:

    The new action set.

  • completion:

    The block executed after the request is processed.

    error

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

See Also

Managing Action Sets