Latest 0.1.4
Homepage https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk
License MIT
Platforms ios 8.0
Authors

playbuzz logo

Version
Support
Swift 3 compatible
Platform iOS
License: MIT

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.

Latest podspec

{
    "name": "PlaybuzzSDK",
    "version": "0.1.4",
    "summary": "Embed your our Playbuzz quiz via PlaybuzzSDK.",
    "homepage": "https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Luda Fux": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LudaFuxPlaybuzz/playbuzz-ios-sdk.git",
        "tag": "0.1.4"
    },
    "social_media_url": "https://www.facebook.com/playbuzz/",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "PlaybuzzSDK/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This