Update your app’s Info.plist file to add Apester AdMob app ID. (contact Apester to get it).
For testing please use this key:
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>
Apester Strip View
A Carousel component for a channel that contains an Apester units of the media publisher. These units were built with Apester Platform, The Carousel component design can be configured and displayed any where.
Follow our guide step by step and setup. Follow our guide step by step and setup:
Implementaion:
1 - declare variable of type APEStripView:
## Swift
private var stripView: APEStripView!
## Objective C
@property (nonatomic, strong) APEStripView *stripView;
2 - initiate a strip style configuration APEStripStyle. configure the strip view style, i.e shape, size, padding, shadow, title header and more….
4 - initiate the strip view instance with the parameter value.
## Swift
self.stripView = APEStripView(configuration: config)
## Objective C
self.stripView = [[APEStripView alloc] initWithConfiguration:config];
5 - The channel strip in a container view
5.1 - display (with a container view controller for navigation porposes).
## Swift
stripView?.display(in: self.containerView, containerViewController: self)
## Objective C
[self.stripView displayIn:self.containerView containerViewController:self];
5.2 - hide the channel strip view.
## Swift
self.stripView.hide()
## Objective C
[self.stripView hide];
6 - Implemet The APEStripViewDelegate to observe the stripView updates when success, failure or height updates.
Apester Unit View
A Unit or playlist component for publisher Apester media. These units were built with Apester Platform.
1 - declare variable of type APEUnitView:
## Swift
private var unitView: APEUnitView!
## Objective C
@property (nonatomic, strong) APEUnitView *unitView;
2 - initiate a unit params APEUnitParams. Set the media id or the channel token for playlist.
## Swift
let unitParams = .unit(mediaId: mediaId)
// OR
let playlistParams = .playlist(tags: tags,
channelToken: channelToken,
context: isContext,
fallback: isFallback)
3 - initiate a unit configuration APEUnitConfiguration. set the unit params and bundle
## Swift
let unitConfig = APEUnitConfiguration(unitParams: unitParams, bundle: Bundle.main)
// OR
let playlistConfig = APEUnitConfiguration(unitParams: playlistParams, bundle: Bundle.main)
Open the new ApesterKit folder, and drag the ApesterKit.xcodeproj into the Project Navigator of your application’s Xcode project.
It should appear nested underneath your application’s blue project icon. Whether it is above or below all the other Xcode groups does not matter.
Select the ApesterKit.xcodeproj in the Project Navigator and verify the deployment target matches that of your application target.
Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the “Targets” heading in the sidebar.
In the tab bar at the top of that window, open the “General” panel.
Click on the + button under the “Embedded Binaries” section.
You will see two different ApesterKit.xcodeproj folders each with two different versions of the ApesterKit.framework nested inside a Products folder.
It does not matter which Products folder you choose from.
Select the ApesterKit.framework.
And that’s it!
The ApesterKit.framework is automagically added as a target dependency, linked framework and embedded framework in a copy files build phase which is all you need to build on the simulator and a device.
Clone the project and Run the ApesterKitDemo App:
1 - clone it `git clone git@github.com:Qmerce/ios-sdk.git`.
2 - run `carthage update`.
3 - select ApesterKitDemo Target.
4 - run the App and enjoy.
License
ApesterKit is released under the MIT license. See LICENSE for details.
ApesterKit
ApesterKit provides a light-weight framework that loads Apester Unit in a webView
#
Requirements
Integration
Update your app’s Info.plist file to add Apester AdMob app ID. (contact Apester to get it).
Apester Strip View
A Carousel component for a channel that contains an Apester units of the media publisher. These units were built with Apester Platform, The Carousel component design can be configured and displayed any where. Follow our guide step by step and setup. Follow our guide step by step and setup:
Implementaion:
1 - declare variable of type
APEStripView
:2 - initiate a strip style configuration
APEStripStyle
. configure the strip view style, i.e shape, size, padding, shadow, title header and more….3 - initiate a strip configuration
APEStripConfiguration
. set the channel token, style and bundle parameters ….4 - initiate the strip view instance with the parameter value.
5 - The channel strip in a container view
5.1 - display (with a container view controller for navigation porposes).
5.2 - hide the channel strip view.
6 - Implemet The
APEStripViewDelegate
to observe the stripView updates when success, failure or height updates.Apester Unit View
A Unit or playlist component for publisher Apester media. These units were built with Apester Platform.
1 - declare variable of type
APEUnitView
:2 - initiate a unit params
APEUnitParams
. Set the media id or the channel token for playlist.3 - initiate a unit configuration
APEUnitConfiguration
. set the unit params and bundleoptional settings:
4 - initiate the unit view instance with the parameter value.
5 - The Unit view in a container view
5.1 - display (with a container view controller for navigation porposes).
5.2 - hide the unit view.
5.3 - reload the unit view.
6 - Implemet The
APEUnitViewDelegate
to observe the stripView updates when success, failure or height updates.APEViewService
A service that provides precaching Apester Units, either
APEStripView
orAPEUnitView
.APEStripView
1 - Preload multiple strip views with
strip configurations
:2 - Unload strip views so it can be Removed from cache with the given
channelTokens
if exists:3 - Get Cached strip view for the given
channelToken
if exists..:APEUnitView
1 - Preload multiple unit views with
unit configurations
:2 - Unload unit views so it can be Removed from cache with the given
unitIds
if exists:3 - Get Cached unit view for the given
unitId
if exists..:Event subscription:
Set event listener using the following api.
Then Implemet The
APEStripViewDelegate
-didReciveEvent
to observe the unitView updates when event invoked.Examples events to subscribed to: (to get more events information contact the Apester team)
Restart story
Handle fullscreen story:
Best practices:
Example:
On start up:
On the hosting activity:
On the ApeUnitViewDelegate:
inisde the view controller resume or pause functions:
#
Installation
Swift Package Manager
The Swift Package Manager automates the distribution of Swift code. To use ApesterKit with SPM, add a dependency to your
Package.swift
file:CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
To integrate ApesterKit into your Xcode project using CocoaPods, specify it in your
Podfile
:Then, run the following command:
Carthage
Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.
You can install Carthage with Homebrew using the following command:
To integrate ApesterKit into your Xcode project using Carthage, specify it in your
Cartfile
:Then, run the following command:
Manually
If you prefer not to use either of the aforementioned dependency managers, you can integrate ApesterKit into your project manually.
Git Submodules
cd
into your top-level project directory, and run the following command “if” your project is not initialized as a git repository:ApesterKit
folder, and drag theApesterKit.xcodeproj
into the Project Navigator of your application’s Xcode project.ApesterKit.xcodeproj
in the Project Navigator and verify the deployment target matches that of your application target.+
button under the “Embedded Binaries” section.ApesterKit.xcodeproj
folders each with two different versions of theApesterKit.framework
nested inside aProducts
folder.Select the
ApesterKit.framework
.And that’s it!
Clone the project and Run the ApesterKitDemo App:
License
ApesterKit is released under the MIT license. See LICENSE for details.