|
|
|
|
- Properties specific to QuickAction variables
- Functions that use QuickAction variables
QuickAction (Variable type) In french: ActionRapide
The QuickAction type allows you to define all the advanced characteristics of a quick action of an app on Android (app shortcut) or iOS (Quick Action). A quick action is defined, among other things, by an identifier, a label and an action. You can define and change the characteristics of this action using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
action is QuickAction
action.Identifier = "ACTION_ID__SEND_MESSAGE"
action.Caption = "New message"
action.Procedure = ProcSendMessage
QuickActionAdd(action)
Properties Properties specific to QuickAction variables The following properties can be used to handle QuickAction variables: | | | Property name | Type used | Effect |
---|
Icon | Desired type | Path to the icon associated with the action. This property can correspond to: - the image path as a string,
- a variable of type Image,
- a variable of type URI.
This property is optional. If this property is not specified, the application icon will be used. | Caption | Character string | Short description of the action to be performed. This property must be specified. | Identifier | Character string | Identifier of the action to be executed. This property must be specified. | LongCaption | Character string | | Note | Character string | Stores additional data associated with the action. | Order | Integer | Positive integer value used to set the position of the action in the context menu of the application. The lower the value, the higher the action will rank. | Procedure | Procedure | Name of the global WLanguage procedure called when the user taps the icon associated with the action. This procedure has the following format:
PROCEDURE <Procedure name>(<action>) where <action> is a QuickAction variable corresponding to the action selected by the user. Remark: in this case, the Icon property of the QuickAction variable will not be specified.If this property is set to an empty string, the application will be launched as a standard application. If the application is not already running when the action is triggered, it will be launched automatically, the application initialization WLanguage events will be run, and then the procedure will be executed. If no window is open once the procedure is executed, the first window of the application will be automatically opened. If the application is already running, it will move to the foreground and the procedure will be executed. It is not recommended to call Info, Error, or similar functions in this procedure. | SubCaption | Character string | |
Remarks Functions that use QuickAction variables The following functions are used to handle QuickAction variables:
| | | Adds a new quick action to the application. | | Generates a request to pin a quick action. | | Removes a quick action defined for the application. |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|