Skip to content

Component Options

The Zappar embed component can be customized with the options outlined below.

OptionTypeDescription
hostAppDatastringAn arbitrary string set by the application and passed into the embed.
launchDeepLinkstringSets a ZapWorks experience to launch directly into. For more information see the Deep Links article.
showFullScreenbooleanSets whether the component will be started in fullscreen.
suppressAnimationbooleanSets if all animations will be suppressed.
barColorstringSets the bar color with a hex value.
showHistoryButtonbooleanSets whether the History button is shown.
showFavoriteButtonbooleanSets whether the Favorites button is shown.
showPhotoButtonbooleanSets whether the Photo button is shown.
showGifButtonbooleanSets whether the Gif button is shown.
showAgeGatebooleanSets whether the age gate message is shown.
showARWarningbooleanSets whether the AR warning is shown (Android only).
onMessagestringSets a custom variable message.
forceLandscapebooleanSets whether to force the device to display in landscape mode.

The parameters above can be passed with key-value pairs.

Example:

onDeviceReady: function() {
this.receivedEvent('deviceready');
var zapparButton = document.getElementById("zapparbutton");
zapparButton.addEventListener('click', function() {
window.launchZappar(
// launch options can be set/included here
{
// example params :
// onMessage : gotMsg,
// barColor : "#334455"
});
});