Layar
Part of the Blippar Group

Blog: sequences

Layar SDK Update: Script Sequences with Event Handlers

Chris Cameron April 19, 2016

More good Layar SDK news! We’ve recently released another update to the SDK as we continue to make it as easy as possible to embed your own Augmented Reality (AR) experiences into your own iOS and Android apps.

We’ve always put an emphasis on allowing you to customize your AR experience as much as possible to fit your brand and meet the needs of your users. With the latest update you can now take more control of your AR scenes than ever before. How? Event handlers!

The introduction of event handlers means you can have actions or POI updates triggered by certain events within your scene. This enables you to add more complex functionality to your experiences, including sequencing of videos and dynamic content without the need for an external server.

Here are the new event types you can use to custom-script your AR scene…

onLoad – Triggered when the object has been loaded successfully.
onClick – Triggered when the object has been clicked (similar behaviour as the POI action).
onPlaybackStart – Triggered when the video or audio object playback has started.
onPlaybackFinish – Triggered when the video or audio object playback has finished.

All of these events can trigger new actions, content updates (including adding or removing objects from the scene) or even a custom handler that can be reused for multiple objects and on different events.

This powerful new feature allows AR scenes to be even more engaging and interactive for the user in various ways. If you’re an existing SDK user, check your inbox for links to the latest version and check out the developer documentation page for more details.

If you’re interested in using the SDK, you can try it now for free! Have questions before you start? Let us know, or join our upcoming webinar at the end of the month.

Permalink: www.layar.com/news/blog/599

Email this article
 
We use cookies to improve our services. Don’t worry, they don’t store personal or sensitive information and you can disable them at any time in your browser settings.