Republic Project MRAID SDK  1.0
 All Classes Functions Properties
RPURLKit.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 @protocol RPURLKitDelegate;
14 
18 @interface RPURLKit : NSObject
19 
20 @property (nonatomic, assign) id<RPURLKitDelegate> delegate;
21 @property (nonatomic, strong) NSString *currentId;
22 @property (nonatomic, strong) NSURL *url;
23 
27 - (void)openURL:(NSDictionary *)urlDictionary;
28 
32 - (void)storePicture:(NSDictionary *)urlDictionary;
33 
34 @end
35 
36 
37 @protocol RPURLKitDelegate <NSObject>
38 
39 - (void)urlKit:(RPURLKit *)urlKit didFinishOpeningURL:(BOOL)success;
40 
41 - (void)urlKit:(RPURLKit *)urlKit didFinishStoringPicture:(BOOL)success;
42 
43 - (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo;
44 
45 @end