setWatchOSConnectionStateListener

Initialises a connection with an Apple Watch

func setWatchOSConnectionStateListener(listener: @escaping (ConnectionState) -> Void)
  • listener: @escaping (ConnectionState) -> Void -> A listener function that is called depending on the state of the watch connection