Republic Project MRAID SDK  1.0
 All Classes Functions Properties
RPAdViewController.h
1 //
2 // Copyright 2012 ArcTouch, Inc.
3 // All rights reserved.
4 //
5 // This file, its contents, concepts, methods, behavior, and operation
6 // (collectively the "Software") are protected by trade secret, patent,
7 // and copyright laws. The use of the Software is governed by a license
8 // agreement. Disclosure of the Software to third parties, in any form,
9 // in whole or in part, is expressly prohibited except as authorized by
10 // the license agreement.
11 //
12 
13 #import "RPAdView.h"
14 #import "RPShareKit.h"
15 #import "RPModalKit.h"
16 #import "RPURLKit.h"
17 #import "RPEventKit.h"
18 #import "RPOrientationProperties.h"
19 #import "RPURLViewController.h"
20 
21 
23 
24 enum {
25  RPAdPlacementTypeInline,
26  RPAdPlacementTypeInterstitial
27 };
28 typedef NSUInteger RPAdPlacementType;
29 
34 
35 
39 @property (nonatomic, strong) id<RPAdViewControllerDelegate> delegate;
40 
41 - (id)initWithPlacementType:(RPAdPlacementType)type forController:(UIViewController *)controller;
42 
46 - (void)loadAdFromUrl:(NSURL *)url;
47 
48 @end
49 
50 
54 @protocol RPAdViewControllerDelegate <NSObject>
55 
61 - (void)adViewController:(RPAdViewController *)adViewController didLoadAdWithSize:(CGSize)adSize;
62 
66 - (void)adViewController:(RPAdViewController *)adViewController didLoadAdWithError:(NSError *)error;
67 
72 - (void)adViewControllerDidOpenModal:(RPAdViewController *)adViewController;
73 
74 - (void)adViewControllerDidClose:(RPAdViewController *)adViewController;
75 
76 @end