Contents

GCMouse.DidConnectMessage

A message that posts after a mouse accessory connects to the device.

Declaration

struct DidConnectMessage

Overview

Use the didConnect identifier with NotificationCenter to listen for this message.

let observation = NotificationCenter.default.addObserver(of: GCMouse.self, for: .didConnect) { message in
   let mouse = message.mouse
}

Connections of mouse accessories will be reflected in the mice array of the GCMouse class when the message posts.

Topics

Initializers

Instance Properties