Splunk MINT SDK for iOS (Legacy)

Splunk MINT SDK for iOS Developer Guide

Acrobat logo Download manual as PDF


Splunk MINT is no longer available for purchase as of January 29, 2021. Customers who have already been paying to ingest and process MINT data in Splunk Enterprise will continue to receive support until December 31, 2021, which is End of Life for all MINT products: App, Web Service (Management Console), SDK and Add-On.
This documentation does not apply to the most recent version of Splunk MINT SDK for iOS (Legacy). For documentation on the most recent version, go to the latest release.
Acrobat logo Download topic as PDF

Track views

In an iOS application, Splunk MINT automatically tracks the views a user accesses. As soon as a user initializes your app, Splunk MINT captures the render time of a view, the current and previous view of a user (relative to an error), and the time a user spends on a view.

To use a different view name than the one that is automatically generated, override the mintViewName string in /mint-ios-sdk/SplunkMint/SplunkMint/ScreenMonitor/UIViewController+Delegates.m. For example:

- (NSString*)mintViewName {
    return @"Custom class name"; 
}

Splunk MINT does not automatically track alert views. To track alert views, configure the log view manually.

Examples

//Objective C

    [[Mint sharedInstance] logViewWithCurrentViewName:@"TestView"];

    [[Mint sharedInstance] logViewWithCurrentViewName:@"TestView" extraDataKey:@"Key" extraDataValue:@"Value"];

    MintLimitedExtraData* extraData = [[MintLimitedExtraData alloc] init];
    [extraData setValue:@"value" forKey:@"key"];
    [[Mint sharedInstance] logViewWithCurrentViewName:@"TestView" extraData:extraData];

//Swift

    Mint.sharedInstance().logViewWithCurrentViewName("TestView")

    Mint.sharedInstance().logViewWithCurrentViewName("TestView", extraDataKey: "Key", extraDataValue: "value")

    let limitedExtraData = MintLimitedExtraData()
    limitedExtraData.setValue("value", forKey: "key")
    Mint.sharedInstance().logViewWithCurrentViewName("TestView", extraData: limitedExtraData)

Last modified on 01 June, 2016
PREVIOUS
Add breadcrumbs to crash reports
  NEXT
Create timers

This documentation applies to the following versions of Splunk MINT SDK for iOS (Legacy): 5.1.x


Was this documentation topic helpful?


You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters