question

newuser-84237465-27be-47f3-a370-139f88bab118 avatar image
newuser-84237465-27be-47f3-a370-139f88bab118 asked ·

APL, sendEvent

Hi!

I am working with APL and I need to view a photo and after 5 seconds launch a userevent. 

I've tried this but it doesn't work for me.

{

"type": "APL",

"version": "1.4",

"import": [

{

"name": "alexa-layouts",

"version": "1.2.0"

}

],

"mainTemplate": {

"parameters": [

"payload"

],

"items": [

{

"type": "Image",

"source": "https://example.com/1.jpg",

"scale": "fill",

"width": 300,

"height": 300

}

],

"onMount": {

"type": "SendEvent",

"parameters": ["aaaa"]

"delay": 5000

}

}

}


Any idea?

Thanks in advanced.




apl
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Alexander Martin avatar image
Alexander Martin answered ·

Add a sequencer property to your SendEvent command to work around the fast mode limitations.


https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-commands.html#fast-mode-evaluation

10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.