session(_:didReceiveUserInfo:)
Tells the delegate that the session successfully received a data directory from its counterpart.
Declaration
optional func session(_ session: WCSession, didReceiveUserInfo userInfo: [String : Any] = [:])Parameters
- session:
The session object of the current process.
- userInfo:
A dictionary of property list values representing the contents of the message. Use the contents of this dictionary to determine what course of action to take.
Discussion
The session object calls this method when it successfully receives a data dictionary from its counterpart. Implement this method to incorporate the data into the app’s content.
The system calls this method on a background thread.