Contents

loadAllManagersFromPreferences(completionHandler:)

Asynchronously reads all the relay configurations previously created and saved by the calling app.

Declaration

class func loadAllManagersFromPreferences(completionHandler: @escaping  @Sendable ([NERelayManager], (any Error)?) -> Void)
class func loadAllManagersFromPreferences() async throws -> [NERelayManager]

Parameters

  • completionHandler:

    A block that receives an array of Nerelaymanager objects. If the system failed to read any Nerelay configurations read from the disk, the array is passes to the block is empty. The Nserror passed to this block is nil if the load operation succeeded, non-nil otherwise.