IMQAConfig* mpmConfig = [[IMQAConfig alloc] init:@"PROJECT_KEY"];
mpmConfig.dump_interval = 10; // Interval of getting the performance data dump (sec)
mpmConfig.save_interval = 60; // Interval of sending performance data to the collection server (sec)
Swift設定方法
AppDelegate.swift
let mpmConfig =IMQAConfig("<PROJECT_KEY>")mpmConfig.dump_interval =10// Interval of getting the performance data dump (sec)mpmConfig.save_interval =60// Interval of sending performance data to the collection server (sec)
IMQAConfig* mpmConfig = [[IMQAConfig alloc] init:@"PROJECT_KEY"];
mpmConfig.useNetworkCollect = YES; // YES: Collect, NO: Do not collect
mpmConfig.ignoreUrl = @[@"https://url1.com", @"http://url.com"]; // An array of specific URLs to ignore
Swift設定方法
AppDelegate.swift
let mpmConfig =IMQAConfig("<PROJECT_KEY>")mpmConfig.useNetworkCollect =true// true: Collect, false: Do not collectmpmConfig.ignoreUrl = ["https://url1.com", "http://url.com"] // An array of specific URLs to ignore
<!-- IMQA Webview Agent(ver. 1.1.3 earlier) --><scripttype="text/javascript"src="https://imqawebviewagent.blob.core.windows.net/agent/webview-agent-1.1.2.js"crossorigin></script>// If you want to apply it as a min file:<scripttype="text/javascript"src="https://imqawebviewagent.blob.core.windows.net/agent/webview-agent-1.1.2.min.js"crossorigin></script>
let configuration = URLSessionConfiguration.ephemeral // or default
configuration.protocolClasses = IMQAMpm.sharedInstance.imqaURLSessionProtocol()
let session = URLSession.init(configuration: configuration)