<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NIDLTDOAConfiguration/init(networkIdentifier:discoveryMethod:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "c:objc(cs)NIDLTDOAConfiguration(im)initWithNetworkIdentifier:discoveryMethod:"
  },
  "title" : "init(networkIdentifier:discoveryMethod:)"
}
-->

# init(networkIdentifier:discoveryMethod:)

Initializes a DL-TDOA configuration with a network identifier and discovery method.

```
init(networkIdentifier: Int, discoveryMethod: NIDLTDOAConfiguration.DiscoveryMethod)
```

## Parameters

`networkIdentifier`

An ID that distinguishes among multiple tracked areas if there’s more than one tracked area in the vicinity.

`discoveryMethod`

The technology that the session uses to discover DL-TDOA anchors.

## Discussion

Use this initializer to create a DL-TDOA configuration that specifies a network identifier for a specific tracked area and the method it uses to discover anchors in the tracked area. The network identifier corresponds to the session ID configured in the DL-TDOA anchors. Anchors with the same session ID belong to the same tracked area.

Specify the method your app uses to discover anchors among [`NIDLTDOAConfiguration.DiscoveryMethod.wifi`](/documentation/NearbyInteraction/NIDLTDOAConfiguration/DiscoveryMethod-swift.enum/wifi) and [`NIDLTDOAConfiguration.DiscoveryMethod.bluetoothLowEnergy`](/documentation/NearbyInteraction/NIDLTDOAConfiguration/DiscoveryMethod-swift.enum/bluetoothLowEnergy) to match the infrastructure in your deployment environment.

```swift
let configuration = NIDLTDOAConfiguration(
    networkIdentifier: 1,
    discoveryMethod: .wifi
)
session.run(configuration)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)