Server

Use the Device instance to manage the setup code, accessories and controller pairings. You can assign a delegate to be notified of certain events. The Server manages IP connectivity and network discovery advertisements.

Device class

  • Undocumented

    See more

    Declaration

    Swift

    public class Device
  • The HAP Device calls the methods of this delegate to report HAP related events. Implement this protocol in an app-specific object and use the methods to update your app. For example, you might want to show the device’s pairing state, or the value of certain characteristics.

    See more

    Declaration

    Swift

    public protocol DeviceDelegate : AnyObject

Pairing State