TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2018 |
Maintained by NxusDSP SDK Development.
TechMpire nxus platform SDK CocoaPods distribution for iOS developers
nxus_ios_cocoapod is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod "nxus_ios_cocoapod"
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"];
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];
To enable logging, call the method debuggingEnabled before library initialisation:
[NxusDSP debuggingEnabled:YES];
TechMpire ltd.
nxus_ios_cocoapod is available under the MIT license. See the LICENSE file for more info.