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
}
});
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
}