Contents

add(_:identifier:assuming:)

Adds the monitoring condition with the identifier and initial state you specify.

Declaration

func add(_ condition: any CLCondition, identifier: String, assuming state: CLMonitor.Event.State)

Parameters

  • condition:

    The condition to monitor.

  • identifier:

    A string that identifies the monitored condition.

  • state:

    The monitoring state to initialize the condition with.

See Also

Adding and removing conditions