Asks the delegate to respond to a request from a paired watchOS app.
- iOS 8.2+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
Your singleton app object.
A dictionary provided by the watchOS app with the request information. Use the data in this dictionary to process the request from the watchOS app.
A block to execute with the results of the request. This block has no return value and takes the following parameter:
A dictionary containing data to return to the watchOS app. The contents of the dictionary must be serializable to a property list file. The contents of this dictionary are at your discretion and you may specify
If your iOS app and watchOS app coordinate efforts to perform certain tasks, implement this method and use it to respond to requests from the watchOS app. After finishing the request, execute the provided
reply block (if any) to return the results.
Because this method is likely to be called while your app is in the background, call the
begin method at the start of your implementation and the
end method after you have processed the reply and executed the
reply block. Starting a background task ensures that your app is not suspended before it has a chance to send its reply.