Latest 0.1.3
Homepage https://github.com/gitforengaging/EngagingChoice
License MIT
Platforms ios 11.0
Dependencies Alamofire, SDWebImage
Frameworks UIKit, AVKit, CoreLocation
Authors

EngagingChoice

CI Status
Version
License
Platform

This library provides a Grid View to show media content and poweredby view to show Engaging Choice icon.

Features

ECGridManager is singletone class and it will use to set Secret key in appDelegate class
Class for ECGridView
Class for ECPoweredByView to show Engaging Choice icon
ECMediaContentManager is singletone class and will use for getting media content and detail

Requirements

  • iOS 11.0 or later
  • Xcode 9.4.1 or later

How To Use

NOTE: You must provide a description and key NSLocationWhenInUseUsageDescription in your app’s Info.plist file.

  1. FIRST STEP
    ECGridManager
    Provide Secret key for configuration

    
    import EngagingChoice

ECGridManager.shared.config(secretKey: "SECRET_KEY")

Replace SECRET_KEY with  publisher secret key and add above line of code in didFinishLaunchingWithOptions in appDelegate class

2. SECOND STEP
ECMediaContent
```swift
import EngagingChoice

ECMediaContentManager.shared.contentList(offset: 0, limit: 10) { (mediaContent) in
// Get response here
}

Offset and limit are optional but you can use these fields for pagination by passing offset and limit in param.

And you need to call below method to get detail of mediaContent and it’s required method to call for media content detail

import EngagingChoice

ECMediaContentManager.shared.contentDetail(contentId: MEDIA_CONTENT_ID) { (conent) in
// Get Media Content detail
}
  1. THIRD STEP
    • ECGridView uses

In storyboard drag UIView in any view and apply ECGridView class and use below functions to show image

import EngagingChoice

cell.coverImageView.setImage(with: URL(string: "http://www.domain.com/path/to/image.jpg"))

OR

cell.gridView.coverImageView.sd_setImage(with: url, placeholderImage: UIImage(name: "http://www.domain.com/path/to/image.jpg"), completed: nil)

OR

cell.gridView.coverImageView.image = UIImage(name: "FILE_NAME")
  1. FOURTH STEP
    • ECPoweredByView uses
      
      import EngagingChoice

let poweredByView = ECPoweredByView(frame: CGRect(x: 0, y: 0, width: 245, height: 23))
self.view.addSubview(poweredByView)

OR

ECPoweredByView can also used from storyboard by draging UIView in UIViewController and give a class ECPoweredByView

## Example

To run the example project, clone the repo, and run `pod install` from the Example directory first.

## Requirements

## Installation

EngagingChoice is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:

```ruby
pod 'EngagingChoice'

Author

EngagingChoice, [email protected]

License

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

Latest podspec

{
    "name": "EngagingChoice",
    "version": "0.1.3",
    "summary": "ENGAGING CHOICE -- THE NEW PERSON-BASED PERFORMANCE PLATFORM FOR MARKETERS, PUBLISHERS AND CONTENT PROVIDERS",
    "swift_version": "4.0",
    "description": "The Engaging Choice Platform is a patented performance and personalization engine built for the App Economy. We donu2019t just show ads. We present offers and give users the power of choice, creating an entirely engaged interaction that benefits user, marketer and publisher.",
    "homepage": "https://github.com/gitforengaging/EngagingChoice",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gitforengaging": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gitforengaging/EngagingChoice.git",
        "tag": "0.1.3"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "EngagingChoice/Classes/**/*",
    "resource_bundles": {
        "EngagingChoice": [
            "EngagingChoice/**/*.{storyboard,xib,xcassets,json,imageset,png,ttf}",
            "EngagingChoice/Resources/**/*.{xcassets,json,imageset,png,ttf}"
        ]
    },
    "frameworks": [
        "UIKit",
        "AVKit",
        "CoreLocation"
    ],
    "dependencies": {
        "Alamofire": [
            "~> 4.7"
        ],
        "SDWebImage": [
            "~> 4.0"
        ]
    }
}

Pin It on Pinterest

Share This