Skip to content
Monetizr iOS SDK repository. Mirrored from private development environments
Swift Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Monetizr-SDK
Monetizr-v3-sample-app
.gitignore
LICENSE
Monetizr.podspec
README.md

README.md

Version License Platform

TheMonetizr SDK

Useful links

Dependencies

Installation

Requires iOS 10.0+

CocoaPods

pod 'Monetizr', '~> 3.0'

Manual

Copy "Monetizr-SDK" folder to your project and resolve dependencies

Usage

In applicationDidFinishLaunching(_:) do the initialization with token provided to you

Monetizr.shared.token = String

Optionally you can set languge - might not be availeble, check with Monetizr team

Monetizr.shared.setLanguage(language: "en_EN")

Import "Monetizr" to your project

import Monetizr

To show product or to get product data and show in your custom view

Monetizr.shared.getProductForTag(tag: String, show: Bool) { success, error, product in ()}

Manual usage of Monetizr.shared with custom product views

Open product view

func openProductViewForProduct(product: Product, tag: String)

Checkout variant for product with tag

func checkoutSelectedVariantForProduct(selectedVariant: PurpleNode, tag: String, completionHandler: @escaping (Bool, Error?, Checkout?) -> Void)

Increase impression count for session

func increaseImpressionCount()

Increase click count for session

func increaseClickCountInSession()

Increase checkout count for session

func increaseCheckoutCountInSession()

Get session duration in seconds

func sessionDurationSeconds() -> Int

Get session duration in miliseconds

func sessionDurationMiliseconds() -> Int

Telemetrics - Create a new entry for impressionvisible

func impressionvisibleCreate(tag: String?, fromDate:Date?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for clickreward

func clickrewardCreate(tag: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for design

func designCreate(numberOfTriggers: Int?, funnelTriggerList: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for dismiss

func dismissCreate(tag: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for install

func installCreate(deviceIdentifier: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for update

func updateCreate(deviceIdentifier: String, bundleVersion: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for firstimpression

func firstimpressionCreate(sessionDuration: Int?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for playerbehaviour

func playerbehaviourCreate(deviceIdentifier: String, gameProgress: Int?, sessionDuration: Int?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for purchase

func purchaseCreate(deviceIdentifier: String, triggerTag: String?, productPrice: String?, currency: String?, country: String?, city: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for session end

func sessionEnd(deviceIdentifier: String, startDate: String?, endDate: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for session start

func sessionCreate(deviceIdentifier: String, startDate: String?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for encounter

func encounterCreate(triggerType: String?, completionStatus: Int?, triggerTag: String?, levelName: String?, difficultyLevelName: String?, difficultyEstimation: Int?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for firstimpressionclick

func firstimpressionclickCreate(firstImpressionClick: Int?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for firstimpressioncheckout

func firstimpressioncheckoutCreate(firstImpressionCheckout: Int?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)

Telemetrics - Create a new entry for firstimpressionpurchase

func firstimpressionpurchaseCreate(firstImpressionPurchase: Int?, completionHandler: @escaping (Bool, Error?, Any?) -> Void)
You can’t perform that action at this time.