init(networkIdentifier:discoveryMethod:)
Initializes a DL-TDOA configuration with a network identifier and discovery method.
Declaration
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 and NIDLTDOAConfiguration.DiscoveryMethod.bluetoothLowEnergy to match the infrastructure in your deployment environment.
let configuration = NIDLTDOAConfiguration(
networkIdentifier: 1,
discoveryMethod: .wifi
)
session.run(configuration)