AnalyticsControllerInterface

public protocol AnalyticsControllerInterface

Analytics methods

  • Update analytics with current screen in view

    Declaration

    Swift

    func updateScreen(currentSreen: String)

    Parameters

    currentSreen

    An identifier for the current screen

  • Update analytics with current screen in view

    Declaration

    Swift

    func updateScreen(currentScreen: String, bundleContent: MNAnalyticsBundle)

    Parameters

    currentSreen

    An identifier for the current screen

    bundleContent

    An 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

    searchBarId

    An identifier for the search bar

    searchString

    Text enetered in the search bar

    selectedString

    Text selected from suggestions

    bundleContent

    An identifier for the data content

  • Add a marketing event for screen

    Declaration

    Swift

    func addMarketingEvent(eventType: MapstedMarketingEventType,
    					   campaignId: String,
    					   interactionType: MapstedMarketingInteractionType)

    Parameters

    eventType

    Type of event (popup, etc)

    campaignId

    An identifier the campaign

    interactionType

    User interactcion type (dismiss, etc)

  • Add a marketing event for screen

    Declaration

    Swift

    func addMapEvent(eventType: MapstedMapAnalyticsActionType, wayPoint: Searchable)

    Parameters

    eventType

    Type of event (popup, etc)

    wayPoint

    A particular waypoint that generated the event

  • Add a analytics email to the SDK

    Declaration

    Swift

    func setAnalyticsEmail(email: String)

    Parameters

    email

    Email for the user which will be used to track the analytics.

  • Add a location service enabled status

    Declaration

    Swift

    func addLocationServicesEvent(enabled: Bool)

    Parameters

    enabled

    It should be true if location service is enabled, else false

  • Add a Permission status

    Declaration

    Swift

    func addPermissionCheckStatus(permissionType: MNPermissionType, allowed: Bool)

    Parameters

    permissionType

    Permission type can be specified here.

    allowed

    It should be true if permission is allowed for given permission type, else false

  • Add a Deeplink url

    Declaration

    Swift

    func addDeeplinkUrl(url: String)

    Parameters

    url

    url which is obtained from deeplink.