Avoid timeouts by disabling interaction timer using screen­Lock

Kay Lerch

In APL there's something called an "interaction timer" behind the scenes which tracks the time of inactivity in your rendered APL presentation. If the interaction timer exceeds the time that is set as idleTimeout in your APL document (or otherwise 30 seconds by default) the presentation gets dismissed. However, the interaction time is reset on any user touch interaction. Also, the interaction timer is disabled (meaning it does not advance) for as long as Video component is in playing state, or an APL command is running that has its screenLock property set to true. With all that being said, screenLock property can effectively being used to avoid your APL presentations to be dismissed when users are no longer engaging with it. Use this method with caution. It's not always in the best interest of an Alexa customer if a presentation continues to occupy their screen when it is no longer relevant for them.

DownloadOpen in Editor
0
Views7
0
Likes0
Share
Supported Viewport Profiles
  • Mobile Portrait, Small
  • Mobile Landscape, Medium
  • Mobile Landscape, Large
  • Hub Round
  • Hub Landscape, Small
  • Hub Landscape, Medium
  • Hub Landscape, Large
  • Hub Landscape, Extra Large
  • Hub Portrait, Medium
  • TV Fullscreen
Minimum required APL version2022.1
Comments

Be the first to comment.