AnalyticsControllerInterface
public protocol AnalyticsControllerInterface
Analytics methods
-
Update analytics with current screen in view
Declaration
Swift
func updateScreen(currentSreen: String)Parameters
currentSreenAn identifier for the current screen
-
Update analytics with current screen in view
Declaration
Swift
func updateScreen(currentScreen: String, bundleContent: MNAnalyticsBundle)Parameters
currentSreenAn identifier for the current screen
bundleContentAn identifier for the data content
-
Add a search event for screen with content
Declaration
Swift
func addSearchEvent(searchBarId: String, searchString: String, selectedString: String, bundleContent: MNAnalyticsBundle)Parameters
searchBarIdAn identifier for the search bar
searchStringText enetered in the search bar
selectedStringText selected from suggestions
bundleContentAn identifier for the data content
-
Add a marketing event for screen
Declaration
Swift
func addMarketingEvent(eventType: MapstedMarketingEventType, campaignId: String, interactionType: MapstedMarketingInteractionType)Parameters
eventTypeType of event (popup, etc)
campaignIdAn identifier the campaign
interactionTypeUser interactcion type (dismiss, etc)
-
Add a marketing event for screen
Declaration
Swift
func addMapEvent(eventType: MapstedMapAnalyticsActionType, wayPoint: Searchable)Parameters
eventTypeType of event (popup, etc)
wayPointA particular waypoint that generated the event
-
Add a analytics email to the SDK
Declaration
Swift
func setAnalyticsEmail(email: String)Parameters
emailEmail for the user which will be used to track the analytics.
-
Add a location service enabled status
Declaration
Swift
func addLocationServicesEvent(enabled: Bool)Parameters
enabledIt should be
trueif location service is enabled, elsefalse -
Add a Permission status
Declaration
Swift
func addPermissionCheckStatus(permissionType: MNPermissionType, allowed: Bool)Parameters
permissionTypePermission type can be specified here.
allowedIt should be
trueif permission is allowed for given permission type, elsefalse -
Add a Deeplink url
Declaration
Swift
func addDeeplinkUrl(url: String)Parameters
urlurl which is obtained from deeplink.
AnalyticsControllerInterface Protocol Reference