Republic Project MRAID SDK  1.0
 All Classes Functions Properties
RPOrientationProperties.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 <UIKit/UIKit.h>
14 #import <Foundation/Foundation.h>
15 
16 enum {
17  RPOrientationPropertiesForceOrientationPortrait,
18  RPOrientationPropertiesForceOrientationLandscape,
19  RPOrientationPropertiesForceOrientationNone
20 };
21 typedef NSUInteger RPOrientationPropertiesForceOrientation;
22 
23 @interface RPOrientationProperties : NSObject
24 
25 @property (nonatomic) RPOrientationPropertiesForceOrientation forceOrientation;
26 @property (nonatomic) BOOL allowOrientationChange;
27 
28 - (id)initWithDictionary:(NSDictionary *)properties;
29 - (UIInterfaceOrientation)forcedOrientation;
30 
31 @end