|
|
|
|
|
awSendAndGetInfo (Function) In french: awEnvoieEtRécupèreInfo Sends data from an iOS phone to an Apple Watch (or conversely) while expecting a response. INTERNAL PROCÉDURE GetInfo(b is Buffer) Info(b) END MyBuffer is Buffer = "Text buffer" IF NOT awSendAndGetInfo(MyBuffer, GetInfo) THEN Error(ErrorInfo()) END
Syntax
<Result> = awSendAndGetInfo(<Data> , <WLanguage procedure>)
<Result>: Boolean - True if the sending was successful,
- False otherwise. ErrorInfo returns more details about the error.
<Data>: Buffer Data to send. <WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called when the response is received. This procedure is used to retrieve and process the response. This procedure has the following format:
PROCEDURE <Procedure name>(<Response>) where <Response> is a Buffer variable. Remarks - The receiver receives the data sent via the procedure passed to awProcedureGetAndSendInfo. Then, the receiver must send a response in return value of this procedure.
- The data is immediately sent.
- In the "Watch to Phone" direction: if the iOS application is not started, it will be started automatically in the background to answer the call..
- In the "Phone to Watch" direction: if the Apple Watch application is not started, the call generates an error..
- The messages are delivered in the order in which they have been sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|