|
|
|
|
|
tapiGetNumber (Function) In french: telRécupèreNuméro Opens a window that allows sharing the user's phone number(s). Remarks: - To use this function, the phone number sharing option must be enabled on the device. To enable this option, go to the device settings, select "Google .. Autofill .. Phone number sharing". Caution: This series of options may be different depending on the device.
- This function is particularly useful for automatically managing SMS two-factor authentication.
- The SMSDetectOneTimeCode function gets one-time codes received by SMS.
tapiGetNumber(procGetNumber)
INTERNAL PROCEDURE procGetNumber(sNumber is string)
IF sNumber <> "" THEN
ToastDisplay("Selected phone number: " + sNumber)
ELSE
ToastDisplay(ErrorInfo()))
END
END
Syntax
tapiGetNumber(<WLanguage procedure>)
<WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called when a number is selected or if an error occurs. This procedure has the following format:
PROCEDURE <Procedure name>(<Number>) where <Number> is a string containing the selected phone number (or an empty string in case of error). If an error occurs, ErrorInfo can be used to retrieve the error message. Remarks tapiGetNumber must be executed from the main thread, and at least one window from the application must be open when the function is called. A fatal error will be raised if this is not the case. Business / UI classification: Neutral code Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|