PlaybuzzSDK 0.1.4

PlaybuzzSDK 0.1.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Luda Fux.



playbuzz logo

Get Started

The Playbuzz SDK enabled developers easily embed Playbuzz items in native apps.

Prerequisites

Example

To check out the example, download the repo run the sample project.

Instalation

1) Add Playbuzz SDK using CocoaPods

pod 'PlaybuzzSDK'

2) Enable html loads in the plist Enable Allow Arbitrary Loads in App Transport Security Settings in your Info.plist plist

Usage

  1. Add import PlaybuzzSDK to ViewController.swift so the compiler knows that PlaybuzzView is a valid class.
  2. Create PlaybuzzView with appropriate frame
  3. Load PlaybuzzView with embedCode and your company domain
  4. Add PlaybuzzView to your view

ViewController.swift

import UIKit
import PlaybuzzSDK

class ViewController: UIViewController{

    override func viewDidLoad()
    {
        super.viewDidLoad()

        let itemAlias = "shpaltman/10-best-commercials-for-the-olympic-games-rio-2016"
        let companyDomain = "http://www.example.com"

        let playbuzzView = PlaybuzzView.init(frame: self.view.frame)

        playbuzzView.reloadItem(itemAlias,
                                companyDomain: companyDomain,
                                showItemInfo: true)
        self.view.addSubview(playbuzzView)
    }
}

companyDomain - the domain configured for your company

itemAlies - the url suffix of your item

showItemInfo - show or hide item title and description

License

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