|
|
|
|
QuickActionPin (Function) In french: ActionRapideEpingle Generates a request to pin a quick action. When an action is pinned, an icon is created on the home screen and allows users to perform that action with a single tap. This can be useful for frequently used actions or functionalities that require direct access. Remark: This feature is only available from Android 8 onwards.
arrAction is array of QuickAction = QuickActionList()
FOR EACH action OF arrAction
IF action.Identifier = "ACTION_ID_SEND_MESSAGE" THEN
QuickActionPin(action)
END
END
Syntax
Pinning a quick action using its identifier Hide the details
<Result> = QuickActionPin(<Identifier>)
<Result>: Boolean - if the request was made,
- False otherwise. ErrorInfo returns the details of the error.
Caution: The function will return even if the user refuses the request.
<Identifier>: Character string Identifier of the quick action to be pinned. The quick action must already have been added to the application to be pinned.
Pinning a quick action using a QuickAction variable Hide the details
<Result> = QuickActionPin(<Action>)
<Result>: Boolean - True if the action was added,
- False otherwise. ErrorInfo returns the details of the error.
Caution: The function will return even if the user refuses the request.
<Action>: QuickAction variable QuickAction variable describing the action to be pinned. The quick action must already have been added to the application to be pinned. Remarks - The function opens a dialog box requesting authorization to add a shortcut to the home screen.
- The quick action must already have been added to the application to be pinned.
- This function should be called when the application is in the foreground. It is not recommended to call it in the application initialization events.
Business / UI classification: UI Code Component: wd290android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|