Skip to content

How to send intent with multiple extras #319

Closed Answered by Waboodoo
jrm200306 asked this question in Q&A
Discussion options

You must be logged in to vote

To achieve this, you can copy-paste the following code snippet into one of the Scripting feature's text areas:

sendIntent({
    type: 'broadcast',
    packageName: 'org.kustom.widget',
    className: 'org.kustom.lib.editor.tasker.EditVarActivity',
    extras: [
        {
            name: 'org.kustom.action.EXT_NAME',
            type: 'string',
            value: 'httpreq',
        },
        {
            name: 'org.kustom.action.VAR_NAME',
            type: 'string',
            value: 'upload',
        },
        {
            name: 'org.kustom.action.VAR_VALUE',
            type: 'int',
            value: 1024,
        },
    ],
});

For more information on the sendIntent function, see

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jrm200306
Comment options

Answer selected by jrm200306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants