Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onewaytech/ios-sdk
OneWaySDK for iOS
https://github.com/onewaytech/ios-sdk
ads advertising oneway video-ads
Last synced: 5 days ago
JSON representation
OneWaySDK for iOS
- Host: GitHub
- URL: https://github.com/onewaytech/ios-sdk
- Owner: OneWayTech
- License: apache-2.0
- Created: 2017-04-21T04:38:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T02:26:55.000Z (almost 7 years ago)
- Last Synced: 2024-12-08T18:48:12.634Z (27 days ago)
- Topics: ads, advertising, oneway, video-ads
- Language: Objective-C
- Size: 9.15 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Travis](https://img.shields.io/travis/rust-lang/rust.svg)
![Travis](https://img.shields.io/badge/version-v1.2.1-brightgreen.svg)
![Travis](https://img.shields.io/badge/pod-v1.2.1-blue.svg)
![Travis](https://img.shields.io/badge/platform-iOS-lightgrey.svg)
![Travis](https://img.shields.io/hexpm/l/plug.svg)|Version | Update | Date |
| :--- | :--- | :--- |
| 1.3.0 | Optimizing multithreading | 2017.05.03 |
| 1.2.1 | 1.support Bitcode 2.support Xcode 7 3.Modify some parameters| 2017.03.09 |When you read this document, we assume that you already have a basis of iOS app development experience, and to understand the related basic concepts.
## Integration SDK
**1.You must be set parameters ``` –all_load ``` in options “Other linker flags”.**```objective-c
// Or you can use following parameters if there is any conflict
-force_load $(SRCROOT)/OneWaySDK/OneWaySDK.a //According to your SDK path
```**2. Import OneWaySDK.h and Implement OneWaySDKDelegate in AppDelegate.h :**
``` objective-c
#import "OneWaySDK.h"
@interface AppDelegate : UIResponder
```
**3.Add the following methods to implement the required delegates on the view controller class :**``` objective-c
- (void)oneWaySDKReady:(NSString *)placementId;
- (void)oneWaySDKDidError:(OneWaySDKError)error withMessage:(NSString *)message;
- (void)oneWaySDKDidStart:(NSString *)placementId;
- (void)oneWaySDKDidFinish:(NSString *)placementId withFinishState:(OneWaySDKFinishState)state;
```
**4.The following code will initialize SDK :**``` objective-c
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{[OneWaySDK initialize: @"Your PublishId" delegate:self];
//when you create a applications in our platform, you will get a publish ID.return YES;
}
```
**5.The following code will show an ad :**Show default placement :
``` objective-c
if ([OneWaySDK isReady]) {
[OneWaySDK show:self];
//You can set default PlacementID in our developer platform.
}
```