Ale nan kontni an
Kreye
KonekteEnskri gratis

The Interartive SDK

Progress, content slots, completion, ad breaks, realtime sharing.

The runtime adds window.Interartive to every experience. Everything is optional.

// Tell Interartive the experience was completed (unlocks the next in a path, post-roll ads, analytics)
Interartive.complete();

// Progressive experiences: save and load where people are
Interartive.progress.save({ lesson: 4, xp: 120 }, { percent: 40, level: 'Lesson 4' });
Interartive.progress.load(data => { if (data) startAt(data.lesson); });

// Customizable experiences: receive people's own content
Interartive.content(slots => { (slots.artworks || []).forEach(a => hang(a.url, a.name)); });

// A natural break (between levels): Interartive may show one ad, then calls you back
Interartive.adBreak(() => nextLevel());

// Realtime shared: one world for everyone in the session
Interartive.together.on('state', s => render(s));
Interartive.together.setState({ color: 'red' });
Next

Making customizable experiences