Skip to content

frenkelor/ADWard-SDK-IOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

ADWard-SDK-IOS

Adward ios sdk (v 1.0b) is a monetization tool for ios game developers.

Installetion

Import Adward SDK to your game :

  1. download our SDK using a direct github link or pull from git repository.
  2. open xCode and click on your root project item.
  3. select your working target and click on 'general' tab.
  4. under 'general' look for 'Linked Frameworks and Libraries' section and click on the "+" button.
  5. click on 'Add other' -> browse for AdwardSDK.framework on your local machine.
  6. import AdwardSDK to your appDelegate.m file. #import <AdwardSDK/AdwardSDK.h>

To initialize Adward SDK please add this code to your application:didFinishLaunchingWithOptions: function

[AdwardSDK startSession:@"YOUR_APP_API_KEY"]; Usage

Register to this observable to get rewards results from Adward :

[[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(receiveCoinsNotification:)
                                                 name:ADW_GOT_POINTS_ADS
                                               object:nil];
                                               
-(void) receiveCoinsNotification:(NSNotification*) notification{
    NSDictionary *dict =notification.object;
    NSInteger points = [[dict objectForKey:@"points"] integerValue];
    NSLog(@"%d",points);
}

Each time a player shares content Adward SDK will call this observable function with the amount of points that the user deserves.

To show Adward content window call:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveCoinsNotification:) name:ADW_GOT_POINTS_ADS object:nil];

Or if you prefer to work with callbacks:

[AdwardSDK showContentWindowWithAnimation:YES andFinishBlock:nil];

To hide Adward window you can call:

[AdwardSDK hideContentWindowWithAnimation:YES andFinishBlock:nil];

AdwardSDK will close automatically after share compilation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published