nxus_ios_cocoapod 1.0.20

nxus_ios_cocoapod 1.0.20

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Feb 2018

Maintained by NxusDSP SDK Development.



  • By
  • TechMpire ltd.

Version
License
Platform

Summary

TechMpire nxus platform SDK CocoaPods distribution for iOS developers

Installation

nxus_ios_cocoapod is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "nxus_ios_cocoapod"

SDK initialisation

After you completed the previous step, you are ready to initialise the library and start sending events.
Open AppDelegate.m class and import the library header file:

#import "include/NxusDSP/NxusDSP.h"

Then, initialise it within AppDelegate's didFinishLaunchingWithOptions method:

[NxusDSP initializeLibrary:@"YOUR_API_KEY"];

Sending custom events

You can send custom events by calling the method trackEvent:

[NxusDSP trackEvent:@"event-name"];

If you have any additional parameters you would like to send, pass in an instance of NSMutableDictionary:

NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[params setValue:@"value" forKey:@"key"];
[NxusDSP trackEvent:event params:params];

Logging

To enable logging, call the method debuggingEnabled before library initialisation:

[NxusDSP debuggingEnabled:YES];

Author

TechMpire ltd.

License

nxus_ios_cocoapod is available under the MIT license. See the LICENSE file for more info.