Inherits from UIViewController
Conforms to PSKSensorDelegate
Declared in PARViewController.h

Overview

PARViewController

Tasks

Properties

arRadarView

the arRadarView of this PARViewController

@property (nonatomic, retain) PARRadarView *arRadarView

Discussion

the arRadarView of this PARViewController

Declared In

PARViewController.h

arView

the arView of this PARViewController

@property (nonatomic, retain) PARView *arView

Discussion

the arView of this PARViewController

Declared In

PARViewController.h

sensorManager

reference to the PSKSensorManager:sharedSensorManager @remarks for convenience

@property (nonatomic, readonly) PSKSensorManager *sensorManager

Discussion

reference to the PSKSensorManager:sharedSensorManager @remarks for convenience

Declared In

PARViewController.h

Class Methods

activeViewController

the currently active PARViewController

+ (PARViewController *)activeViewController

Discussion

the currently active PARViewController

Declared In

PARViewController.h

setActiveViewController:

set the curretly active PARViewController

+ (void)setActiveViewController:(PARViewController *)theViewController

Parameters

theViewController

the active PARViewController

Discussion

set the curretly active PARViewController

Declared In

PARViewController.h

Instance Methods

fadesInCameraPreview

YES if camera feed should fade in and out

- (BOOL)fadesInCameraPreview

Return Value

YES if camera feed should fade in and out

Declared In

PARViewController.h

notificationVisible

YES if notificationView is visible

- (BOOL)notificationVisible

Return Value

YES if notificationView is visible

Declared In

PARViewController.h

orientationOffsetAngle

for internal use only

- (float)orientationOffsetAngle

Discussion

for internal use only

Declared In

PARViewController.h

paused

pause all updates in the PARViewController’s views

- (BOOL)paused

Discussion

pause all updates in the PARViewController’s views

Declared In

PARViewController.h

resetTouchDrag

reset last touch position to 0,0

- (void)resetTouchDrag

Discussion

reset last touch position to 0,0

Declared In

PARViewController.h

rotatesARView

YES if PARView should rotate freely with the device @remarks don’t return YES if your ViewController already supports Landscape orientations

- (BOOL)rotatesARView

Return Value

YES if PARView should rotate freely with the device @remarks don’t return YES if your ViewController already supports Landscape orientations

Declared In

PARViewController.h

setNotification:

show a string in the notification overlay window of the PARViewController

- (void)setNotification:(NSString *)notification

Parameters

notification

NSString used for the notification @remarks while notifications are visible the PARView and PARRadarView are hidden

Discussion

show a string in the notification overlay window of the PARViewController

Declared In

PARViewController.h

setPaused:

pause all updates in the PARViewController’s views

- (void)setPaused:(BOOL)paused

Parameters

paused

YES to pause, NO to unpause

Discussion

pause all updates in the PARViewController’s views

Declared In

PARViewController.h

sizeOfNotification

size for the notification overlay view, default: ipad=256, iphone=128

- (float)sizeOfNotification

Return Value

size for the notification overlay view, default: ipad=256, iphone=128

Declared In

PARViewController.h

startsARAutomatically

YES if PAR functionality should start automatically

- (BOOL)startsARAutomatically

Return Value

YES if PAR functionality should start automatically

Declared In

PARViewController.h

switchFaceDown:

called when deviceOrientation switches to or from FaceDown default behavior: show notification and hide PARView and PARRadarView

- (void)switchFaceDown:(BOOL)inFaceDown

Parameters

inFaceDown

YES if orientation just switched to UIDeviceOrientationFaceDown

Discussion

called when deviceOrientation switches to or from FaceDown default behavior: show notification and hide PARView and PARRadarView

Declared In

PARViewController.h

switchFaceUp:

called when deviceOrientation switches to or from FaceUp default behavior: show radar in full screen mode, go back to thumbnail when no longer in face up override to deactivate default behavior

- (void)switchFaceUp:(BOOL)inFaceUp

Parameters

inFaceUp

YES if orientation just switched to UIDeviceOrientationFaceUp

Discussion

called when deviceOrientation switches to or from FaceUp default behavior: show radar in full screen mode, go back to thumbnail when no longer in face up override to deactivate default behavior

Declared In

PARViewController.h

tapped

has the ar view been tapped @remarks reset to NO after processing

- (BOOL)tapped

Discussion

has the ar view been tapped @remarks reset to NO after processing

Declared In

PARViewController.h

touchDragX

X-distance moved since last touch position

- (float)touchDragX

Discussion

X-distance moved since last touch position

Declared In

PARViewController.h

touchDragY

Y-distance moved since last touch position

- (float)touchDragY

Discussion

Y-distance moved since last touch position

Declared In

PARViewController.h

touchMovedX

X-distance moved since initial touch position

- (float)touchMovedX

Discussion

X-distance moved since initial touch position

Declared In

PARViewController.h

touchMovedY

Y-distance moved since initial touch position

- (float)touchMovedY

Discussion

Y-distance moved since initial touch position

Declared In

PARViewController.h

usesCameraPreview

YES if camera feed should be displayed

- (BOOL)usesCameraPreview

Return Value

YES if camera feed should be displayed

Declared In

PARViewController.h