iOS

Articles

Install the iOS SDK
This documentation guides you through setting up and implementing the iOS SDK. Prerequisites You must have CocoaPods installed to set up this SDK. Refer to CocoaPods Getting Started for more information. Installing the iOS...
SDK Objects
The SDK consists of the following classes. Personalization Class Personalization is the main class. You can use an instance of this to invoke the different methods of SDK. import Foundation import monetate_ios_sdk Create an instance of ...
SDK Methods
The following methods are available to use in the SDK. All methods are part of the personalization class. For parameters that require event names, refer to SDK Events and Action Types for syntax. report Reports an event to Monetate. This al...
SDK Event and Action Types
This article describes how to access event and action types. Events The available events are as follows: RecordImpressions RecordPageEvents RecordRecClicks RecordRecImpressions ContextIpAddress ContextCustomVariables ContextUserAgent ...
SDK Event Details
This articles provides details and descriptions for the event JSON objects. Required attributes are in bold. monetate:context:ipAddress Attribute Description eventType: String Identifies the type of event. Use the name of this event...
iOS Event Code Samples
The following events are available to use. Metadata Event Example import UIKit import monetate_ios_sdk @main class AppDelegate: UIResponder, UIApplicationDelegate { let requestId = "123456" var window: UIWindow? fun...