Contents

retrieveActiveCredentialsForNearbyNetworks(completion:)

Requests all active Thread credentials with active border routers around from the framework.

Declaration

func retrieveActiveCredentialsForNearbyNetworks(completion: @escaping  @Sendable (Set<THCredentials>?, (any Error)?) -> Void)
var activeCredentialsForNearbyNetworks: Set<THCredentials> { get async throws }

Parameters

  • completion:

    The completion handler the framework calls when the credentials become available.

Discussion

When calling this method, you will receive credentials for active border routers around. You receive all credentials agnostic to team ID. Unlike retrieveAllActiveCredentials(_:), this method returns active credentials on the device regardless of who actually stored it.