LayarSDK Documentation
LayarSDK.h
Go to the documentation of this file.
1 
242 #import <Foundation/Foundation.h>
243 #import <UIKit/UIKit.h>
247 
248 #define LayarSDKLocalizedString(key, comment) [LayarSDK localizedStringForKey:key andComment:comment]
249 
250 @class CLLocation;
251 
258 typedef void (^LayarSDKURLCompletion)(UIViewController<LayarSDKViewController>* viewController);
259 
266 typedef void (^LayarSDKWebURLCompletion)(UIViewController<UIWebViewDelegate> *viewController);
267 
273 typedef void (^LayarSDKViewControllerForScanningCompletion)(UIViewController<LayarSDKViewController>* viewController);
274 
283 @interface LayarSDK : NSObject
284 
288 + (NSString*)localizedStringForKey:(NSString*)key andComment:(NSString*)comment;
289 
299 + (LayarSDK*)layarSDKWithConsumerKey:(NSString*)consumerKey andConsumerSecret:(NSString*)consumerSecret andDelegate:(id<LayarSDKDelegate>)delegate;
300 
310 - (id)initWithConsumerKey:(NSString*)consumerKey andConsumerSecret:(NSString*)consumerSecret andDelegate:(id<LayarSDKDelegate>)delegate;
311 
322 + (LayarSDK*)layarSDKWithConsumerKey:(NSString*)consumerKey andConsumerSecret:(NSString*)consumerSecret andDelegate:(id<LayarSDKDelegate>)delegate customLocationProvider:(id<LayarSDKLocationProvider>)customLocationProvider;;
323 
334 - (id)initWithConsumerKey:(NSString*)consumerKey andConsumerSecret:(NSString*)consumerSecret andDelegate:(id<LayarSDKDelegate>)delegate customLocationProvider:(id<LayarSDKLocationProvider>)customLocationProvider;
335 
339 @property (nonatomic, weak, readonly) id<LayarSDKDelegate> delegate;
340 
347 @property (nonatomic, strong) CLLocation *fixedLocation;
348 
354 @property (nonatomic, assign) BOOL popOutsEnabled;
355 
365 - (void)webViewControllerForURL:(NSURL*)url withCompletion:(LayarSDKWebURLCompletion)completion;
366 
377 - (void)viewControllerForURL:(NSURL*)url withCompletion:(LayarSDKURLCompletion)completion;
378 
388 - (void)openURL:(NSURL *)url onExistingViewController:(UIViewController<LayarSDKViewController>*)viewController completion:(void(^)(BOOL completed, NSError* error))completion;
395 - (void)viewControllerForScanningWithCompletion:(LayarSDKViewControllerForScanningCompletion)completion;
396 
397 @end
BOOL popOutsEnabled
Use this property to control if 'pop out' functionality is enabled in AR view controllers.
Definition: LayarSDK.h:354
The LayarSDKLocationProvider provides you with several callback methods that you can use to a custom ...
Definition: LayarSDKLocationProvider.h:15
void(^ LayarSDKURLCompletion)(UIViewController< LayarSDKViewController > *viewController)
Completion block for opening a layer/campaign URL.
Definition: LayarSDK.h:258
CLLocation * fixedLocation
Fixed location to use for Geo layers.
Definition: LayarSDK.h:347
void(^ LayarSDKViewControllerForScanningCompletion)(UIViewController< LayarSDKViewController > *viewController)
Completion block for opening a layer/campaign URL.
Definition: LayarSDK.h:273
This file contains protocol declaration for LayarSDKDelegate.
The LayarSDKDelegate provides you with several callback methods to inform you and allow you to overri...
Definition: LayarSDKDelegate.h:60
This is the main class for Layar SDK. You use this class to configure the SDK and to construct requir...
Definition: LayarSDK.h:283
This file contains protocol declaration for LayarSDKViewController.
void(^ LayarSDKWebURLCompletion)(UIViewController< UIWebViewDelegate > *viewController)
Completion block for opening a http/web URL.
Definition: LayarSDK.h:266
This file contains protocol declaration for LayarSDKLocationProvider.
The LayarSDKViewController gives you access to extended functionality of AR view controller, e.g. allows you to launch map view representation of layers or open layer settings screen.
Definition: LayarSDKViewController.h:18