Contents

updateRegion(_:completionHandler:)

Changes the region associated with this event.

Declaration

func updateRegion(_ region: CLRegion, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func updateRegion(_ region: CLRegion) async throws

Parameters

  • region:

    New region on which the event is triggered. Must have at least one of Notifyonentry or Notifyonexit set to True.

  • completion:

    The block executed when the region update request has been processed.

    error

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