Git Product home page Git Product logo

inapp-plugin-prism-ios's Introduction

inapp-plugin-prism-ios

Introduction

Plugin for EMMA in-app communication. This plugin shows a prism with 10 sides as maximum.

You can create your own plugin through native ad engine.

Installation

Version 4.9.0+ of EMMA SDK and Xcode 12+ is required

For integrate this plugin you can download with Swift Package Manager:

  1. Open Xcode and select File > Swift Packages > Add Package Dependency
  2. Add the repo url and select version 4.9.0+ as minimum or master branch

Warning

Version 1.3 depends of EMMA SDK 4.14.0 if your project cannot update force package tag to previous version 1.2

Integration

Import the library in AppDelegate and add plugin class to SDK.

 import EMMAInAppPlugin_Prism
 
 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
      ....
      EMMA.startSession(with: configuration)
      EMMA.addInAppPlugin([EMMAInAppPluginPrism()])
      return true
  }

In a ViewController request the available prism (If there are many prism avaiable only is showed the latest created).

import UIKit

class HomeViewController: UIViewController {
	
    override func viewDidLoad() {
        super.viewDidLoad()
		
	 let nativeAdRequest = EMMANativeAdRequest()
	 nativeAdRequest.templateId = "emma-plugin-prisma"
	 EMMA.inAppMessage(request: nativeAdRequest)
   }
}

inapp-plugin-prism-ios's People

Contributors

adriancarrera31 avatar

Watchers

Jaume Cornadó avatar James Cloos avatar  avatar  avatar enrique avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.