Injector Listener

A listener to handle actions from the Injector module.

Declared In

lib/main/modules/InjectorModule.js


Setting up

Synerise.Injector.setListener({
	onOpenUrl: function(url) {
		//mandatory function
	},
	onDeepLink: function(deepLink) {
		//mandatory function
	},
	onHideBanner: function() {
		//optional function
	},
	onPresentBanner: function() {
		//optional function
	}
});

Functions

The following method is called when Synerise handles URL action from campaign activities.

onOpenUrl: function(url) {
	//implementation
}

Parameter Type Description
url string URL address value from the activity

The following method is called when Synerise handles deep link action from campaign activities.

onDeepLink: function(deepLink) {
	//implementation
}

Parameter Type Description
deeplink string Literal text value from the activity

The following method is called after a banner appears.

onPresentBanner: function() {
	//implementation
}


The following method is called when a banner disappears.

onHideBanner: function() {
	//implementation
}

😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.