Contents

add(_:identifier:)

Adds the given condition for monitoring.

Declaration

func add(_ Condition: any CLCondition, identifier: String)

Parameters

  • Condition:

    The condition to monitor.

  • identifier:

    A string that identifies the monitored condition.

Discussion

The framework encapsulates the condition in an instance of CLMonitor.Record and then associates the record, along with the condition with the given identifier. The initial state is CLRegionState.unknown.

See Also

Adding and removing conditions