LayarSDK Documentation
Instance Methods | Properties | List of all members
<LayarSDKViewController> Protocol Reference

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. More...

#import <LayarSDK/LayarSDK.h>

Inherits <NSObject>.

Instance Methods

(void) - showLayerSettings
 Open a screen with layer settings for currently loaded layer. If the settings are not available this method does nothing. More...
 
(void) - startScan
 Start Scanning. Used to start a scan programmatically for example when tap to scan is disabled. More...
 
(void) - showMapView
 Open a map view for currently loaded layer. If the map representation is not available this method does nothing. More...
 
(void) - openScreenshotMode
 Open the screenshot mode so that the user can take a screenshot and share it.
 
(void) - popOutReferenceImageID:
 Pops out content attached to given reference image. If reference image or content is not available does nothing.
 
(void) - exitPopout
 Exits the popout mode and tries to lay the content on top of the reference image again. If its not in a popout mode then does nothing.
 
(void) - popOutAllTrackedTargets
 Popout all tracked content.
 

Properties

BOOL layerSettingsAvailable
 This property is set to YES when layer settings are available for currently loaded layer.
 
BOOL mapViewAvailable
 This property is set to YES when it is possible to open a map view for currently loaded layer.
 
BOOL popOutAvailable
 This property is set to YES when pop-out mode can be entered on this view controller.
 
BOOL tapToScanEnabled
 This property is set to YES by default but you can set it no to disable tap to scan. Please do this before you show the view controller. It wont work if you do it after you have already presented or shown the view controller.
 
BOOL showPreviewImageWhenPoppedOut
 This property is set to YES by default but you can set it no to hide the preview image when popped out.
 
BOOL trackingEnabledWhenPoppedOut
 This property is set to NO by default but you can set it YES to continue tracking when popped out. Useful if you want to implement auto-attach functionality.
 
BOOL fitContentWhenPoppedOut
 By default we fit all the content in the screen when we are popping out. You can change this behaviour by setting this property to NO. Then we will try to fit the reference image only.
 
BOOL perform3DTiltWhenPoppedOut
 By default we tilt the popped out content only if it is 3D. By setting this property to NO you can disable that behavior for 3D Content. However by setting it to YES you can enable this behaviour for 2D and 3D. It should be noted that in case the 3D Mode is not enabled then the 3D Tilt is not done.
 
BOOL enable3DModeWhenPoppedOut
 By default we enable 3D mode on the popped out content, so that the user can tilt it by panning and also zoom with two fingers. You can disable that behaviour on 3D content by setting it to NO. However by setting it to YES you can enable this behaviour for 2D and 3D.
 
BOOL isCurrentlyPoppedOut
 This property specifies if the view controller is in a detached/popped out state.
 
BOOL defaultPopoutUIEnabled
 By default we have a popout UI which tells the user that he can pop out when we lose tracking and when in popout mode we show a close button. Setting this property to NO will disable that behaviour and the user of the SDK can show custom UI.
 
BOOL geoStatusMessagesEnabled
 By default we show a status message for geo layers where we specify the number of points of interest found. Setting this property to NO will hide this message.
 
BOOL geoRadarEnabled
 By default we show a radar view in a geo layer. Setting this property to NO will hide this radar view.
 

Detailed Description

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.

Method Documentation

- (void) showLayerSettings

Open a screen with layer settings for currently loaded layer. If the settings are not available this method does nothing.

See also
layerSettingsAvailable
- (void) showMapView

Open a map view for currently loaded layer. If the map representation is not available this method does nothing.

See also
mapViewAvailable
- (void) startScan

Start Scanning. Used to start a scan programmatically for example when tap to scan is disabled.

See also
layerSettingsAvailable

The documentation for this protocol was generated from the following file: