|
|
|
|
|
AndroidActivityResultProcedure (Function) In french: AndroidActivityResultProcédure Allows you to specify the procedure to be called to get the result returned by a third-party Activity. Note In a WINDEV Mobile application, it is possible to use external libraries and APIs. In Android, certain libraries and APIs open special windows called "Activities", which perform a specific task: mobile payment, Bluetooth visibility, OAuth connection, etc. AndroidActivityResultProcedure((resultCode, requestCode, Uri, extras)=>{
IF resultCode = -1 _AND_ requestCode = 1024 THEN
FOR EACH ELEMENT valeur, clé OF extras
...
END
END
})
Syntax
AndroidActivityResultProcedure([<WLanguage procedure>])
<WLanguage procedure>: Optional procedure name Name of the WLanguage procedure ("callback") called when the application needs to get the result returned by a third-party activity. For more details on this procedure, see Parameters of the procedure used by AndroidActivityResultProcedure. If this parameter is not specified, the procedure call will be canceled for the current window. Remarks - This function can be used to get the result of an activity started by a call to the startActivityForResult method from an external library.
- AndroidActivityResultProcedure is linked to the life cycle of the window from which it was executed. When the window is closed, the procedure will be automatically canceled. You can also call the function without passing the <Procedure> parameter to force this cancellation.
- An error will occur if the function is called when no window is running.
Business / UI classification: Neutral code Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|