Inherits from NSObject
Declared in PSKDeviceProperties.h

Overview

PSKDeviceProperties abstraction layer between doPanic Frameworks and iOS keeps track of all device and os information allows for simulation of different devices on the same hardware

Tasks

Other Methods

Simulator Methods

Class Methods

devicePropertiesForPad1

+ (PSKDeviceProperties *)devicePropertiesForPad1

devicePropertiesForPad1:

+ (PSKDeviceProperties *)devicePropertiesForPad1:(float)theOsVersion

devicePropertiesForPad2WithName:andOsVersion:

+ (PSKDeviceProperties *)devicePropertiesForPad2WithName:(NSString *)theName andOsVersion:(float)theOsVersion

devicePropertiesForPad2_3G

+ (PSKDeviceProperties *)devicePropertiesForPad2_3G

devicePropertiesForPad2_3G:

+ (PSKDeviceProperties *)devicePropertiesForPad2_3G:(float)theOsVersion

devicePropertiesForPad2_CDMA

+ (PSKDeviceProperties *)devicePropertiesForPad2_CDMA

devicePropertiesForPad2_CDMA:

+ (PSKDeviceProperties *)devicePropertiesForPad2_CDMA:(float)theOsVersion

devicePropertiesForPad2_Wifi

+ (PSKDeviceProperties *)devicePropertiesForPad2_Wifi

devicePropertiesForPad2_Wifi:

+ (PSKDeviceProperties *)devicePropertiesForPad2_Wifi:(float)theOsVersion

devicePropertiesForPad2_WifiNew

+ (PSKDeviceProperties *)devicePropertiesForPad2_WifiNew

devicePropertiesForPad2_WifiNew:

+ (PSKDeviceProperties *)devicePropertiesForPad2_WifiNew:(float)theOsVersion

devicePropertiesForPad3WithName:andOsVersion:

+ (PSKDeviceProperties *)devicePropertiesForPad3WithName:(NSString *)theName andOsVersion:(float)theOsVersion

devicePropertiesForPad3_4G

+ (PSKDeviceProperties *)devicePropertiesForPad3_4G

devicePropertiesForPad3_4G:

+ (PSKDeviceProperties *)devicePropertiesForPad3_4G:(float)theOsVersion

devicePropertiesForPad3_Wifi

+ (PSKDeviceProperties *)devicePropertiesForPad3_Wifi

devicePropertiesForPad3_Wifi:

+ (PSKDeviceProperties *)devicePropertiesForPad3_Wifi:(float)theOsVersion

devicePropertiesForPad4WithName:andOsVersion:

+ (PSKDeviceProperties *)devicePropertiesForPad4WithName:(NSString *)theName andOsVersion:(float)theOsVersion

devicePropertiesForPad4_4G

+ (PSKDeviceProperties *)devicePropertiesForPad4_4G

devicePropertiesForPad4_4G:

+ (PSKDeviceProperties *)devicePropertiesForPad4_4G:(float)theOsVersion

devicePropertiesForPad4_Wifi

+ (PSKDeviceProperties *)devicePropertiesForPad4_Wifi

devicePropertiesForPad4_Wifi:

+ (PSKDeviceProperties *)devicePropertiesForPad4_Wifi:(float)theOsVersion

devicePropertiesForPadMini1WithName:andOsVersion:

+ (PSKDeviceProperties *)devicePropertiesForPadMini1WithName:(NSString *)theName andOsVersion:(float)theOsVersion

devicePropertiesForPadMini1_3G

+ (PSKDeviceProperties *)devicePropertiesForPadMini1_3G

devicePropertiesForPadMini1_3G:

+ (PSKDeviceProperties *)devicePropertiesForPadMini1_3G:(float)theOsVersion

devicePropertiesForPadMini1_CDMA

+ (PSKDeviceProperties *)devicePropertiesForPadMini1_CDMA

devicePropertiesForPadMini1_CDMA:

+ (PSKDeviceProperties *)devicePropertiesForPadMini1_CDMA:(float)theOsVersion

devicePropertiesForPadMini1_Wifi

+ (PSKDeviceProperties *)devicePropertiesForPadMini1_Wifi

devicePropertiesForPadMini1_Wifi:

+ (PSKDeviceProperties *)devicePropertiesForPadMini1_Wifi:(float)theOsVersion

devicePropertiesForPhone3G

+ (PSKDeviceProperties *)devicePropertiesForPhone3G

devicePropertiesForPhone3G:

+ (PSKDeviceProperties *)devicePropertiesForPhone3G:(float)theOsVersion

devicePropertiesForPhone3Gs

+ (PSKDeviceProperties *)devicePropertiesForPhone3Gs

devicePropertiesForPhone3Gs:

+ (PSKDeviceProperties *)devicePropertiesForPhone3Gs:(float)theOsVersion

devicePropertiesForPhone4

+ (PSKDeviceProperties *)devicePropertiesForPhone4

devicePropertiesForPhone4:

+ (PSKDeviceProperties *)devicePropertiesForPhone4:(float)theOsVersion

devicePropertiesForPhone4s

+ (PSKDeviceProperties *)devicePropertiesForPhone4s

devicePropertiesForPhone4s:

+ (PSKDeviceProperties *)devicePropertiesForPhone4s:(float)theOsVersion

devicePropertiesForPhone5

+ (PSKDeviceProperties *)devicePropertiesForPhone5

devicePropertiesForPhone5:

+ (PSKDeviceProperties *)devicePropertiesForPhone5:(float)theOsVersion

devicePropertiesForPod4thGeneration

+ (PSKDeviceProperties *)devicePropertiesForPod4thGeneration

devicePropertiesForPod4thGeneration:

+ (PSKDeviceProperties *)devicePropertiesForPod4thGeneration:(float)theOsVersion

devicePropertiesForPod5thGeneration

+ (PSKDeviceProperties *)devicePropertiesForPod5thGeneration

devicePropertiesForPod5thGeneration:

+ (PSKDeviceProperties *)devicePropertiesForPod5thGeneration:(float)theOsVersion

propertiesFromDevice

shortcut method to get an PSKPropertiesObject based on the actual device @see initFromDevice

+ (PSKDeviceProperties *)propertiesFromDevice

Discussion

shortcut method to get an PSKPropertiesObject based on the actual device @see initFromDevice

Declared In

PSKDeviceProperties.h

setSimulateGPSForAllDevices:

+ (void)setSimulateGPSForAllDevices:(BOOL)doSimulateGPSForAllDevices

sharedDeviceProperties

shared device properties instance

+ (PSKDeviceProperties *)sharedDeviceProperties

Discussion

shared device properties instance

Declared In

PSKDeviceProperties.h

simulateGPSForAllDevices

+ (BOOL)simulateGPSForAllDevices

Instance Methods

backFacingCameraFovLandscape

- (float)backFacingCameraFovLandscape

backFacingCameraFovPortrait

- (float)backFacingCameraFovPortrait

backFacingCameraFovs

- (CGSize)backFacingCameraFovs

deviceCameraOffsetFromCenter

- (CGPoint)deviceCameraOffsetFromCenter

deviceName

device generation name defined by Apple @remarks e.g. iPhone5,1 or iPad2,3

- (NSString *)deviceName

Discussion

device generation name defined by Apple @remarks e.g. iPhone5,1 or iPad2,3

Declared In

PSKDeviceProperties.h

deviceType

integer constant identifying the device type and generation internally

- (int)deviceType

Discussion

integer constant identifying the device type and generation internally

Declared In

PSKDeviceProperties.h

displayContentScale

the displayContentScale of this device, 2.0f. for retina displays

- (float)displayContentScale

Discussion

the displayContentScale of this device, 2.0f. for retina displays

Declared In

PSKDeviceProperties.h

gpsAvailabilityStatus

availability of real GPS sensor

- (PSKGPSAvailabilityStatus)gpsAvailabilityStatus

Return Value

PSKGSPAvailabilityStatus

Discussion

availability of real GPS sensor

Declared In

PSKDeviceProperties.h

hasAccelerometer

does device have a accelerometer @remarks YES for almost all devices

- (BOOL)hasAccelerometer

Discussion

does device have a accelerometer @remarks YES for almost all devices

Declared In

PSKDeviceProperties.h

hasBackFacingCamera

YES if the device has a back facing camera

- (BOOL)hasBackFacingCamera

Discussion

YES if the device has a back facing camera

Declared In

PSKDeviceProperties.h

hasCompass

does device have a compass @remarks magnetometer = compass

- (BOOL)hasCompass

Discussion

does device have a compass @remarks magnetometer = compass

Declared In

PSKDeviceProperties.h

hasFrontFacingCamera

YES if the device has a front facing camera

- (BOOL)hasFrontFacingCamera

Discussion

YES if the device has a front facing camera

Declared In

PSKDeviceProperties.h

hasGPSSensor

is a real GPS sensor available on the current device

- (BOOL)hasGPSSensor

Return Value

only returns YES if it is absolutely sure that GPS is available (not only location services using Cell/WiFi positioning

Discussion

is a real GPS sensor available on the current device

Declared In

PSKDeviceProperties.h

hasGyroscope

does device have a gyroscope

- (BOOL)hasGyroscope

Discussion

does device have a gyroscope

Declared In

PSKDeviceProperties.h

hasOS4

YES if the device runs at least iOS 4

- (BOOL)hasOS4

Discussion

YES if the device runs at least iOS 4

Declared In

PSKDeviceProperties.h

hasOS43

YES if the device runs at least iOS 4.3

- (BOOL)hasOS43

Discussion

YES if the device runs at least iOS 4.3

Declared In

PSKDeviceProperties.h

hasOS5

YES if the device runs at least iOS 5

- (BOOL)hasOS5

Discussion

YES if the device runs at least iOS 5

Declared In

PSKDeviceProperties.h

hasOS6

YES if the device runs at least iOS 6

- (BOOL)hasOS6

Discussion

YES if the device runs at least iOS 6

Declared In

PSKDeviceProperties.h

hasRetinaScreen

YES if this device has a retina display (@see displayContentScale)

- (BOOL)hasRetinaScreen

Discussion

YES if this device has a retina display (@see displayContentScale)

Declared In

PSKDeviceProperties.h

init

initializes an EMPTY PSKDeviceProperties object

- (id)init

Discussion

initializes an EMPTY PSKDeviceProperties object

Warning: this is not usable

Declared In

PSKDeviceProperties.h

initForPad1WithOS:

- (id)initForPad1WithOS:(float)theOsVersion

initForPad2WithName:andOsVersion:

- (id)initForPad2WithName:(NSString *)theName andOsVersion:(float)theOsVersion

initForPad3WithName:andOsVersion:

- (id)initForPad3WithName:(NSString *)theName andOsVersion:(float)theOsVersion

initForPad4WithName:andOsVersion:

- (id)initForPad4WithName:(NSString *)theName andOsVersion:(float)theOsVersion

initForPadMini1WithName:andOsVersion:

- (id)initForPadMini1WithName:(NSString *)theName andOsVersion:(float)theOsVersion

initForPhone3GWithOS:

- (id)initForPhone3GWithOS:(float)theOsVersion

initForPhone3GsWithOS:

- (id)initForPhone3GsWithOS:(float)theOsVersion

initForPhone4WithOS:

- (id)initForPhone4WithOS:(float)theOsVersion

initForPhone4sWithOS:

- (id)initForPhone4sWithOS:(float)theOsVersion

initForPhone5WithOS:

- (id)initForPhone5WithOS:(float)theOsVersion

initForPod4thGeneration:

- (id)initForPod4thGeneration:(float)theOsVersion

initForPod5thGeneration:

- (id)initForPod5thGeneration:(float)theOsVersion

initFromDevice

get a PSKDeviceProperties object based on the properties of the actual device and the installed OS

- (id)initFromDevice

Discussion

get a PSKDeviceProperties object based on the properties of the actual device and the installed OS

Declared In

PSKDeviceProperties.h

isPad

YES if the device is an iPad

- (BOOL)isPad

Discussion

YES if the device is an iPad

Declared In

PSKDeviceProperties.h

isPhone

YES if the device is an iPhone

- (BOOL)isPhone

Discussion

YES if the device is an iPhone

Declared In

PSKDeviceProperties.h

isPod

YES if the device is an iPod

- (BOOL)isPod

Discussion

YES if the device is an iPod

Declared In

PSKDeviceProperties.h

isSingleCoreDevice

YES if the device has a single-core CPU

- (BOOL)isSingleCoreDevice

Discussion

YES if the device has a single-core CPU

Declared In

PSKDeviceProperties.h

isSlowDevice

YES if the device has a single-core CPU (Deprecated: use isSingleCoreDevice instead)

- (BOOL)isSlowDevice

Discussion

YES if the device has a single-core CPU

Declared In

PSKDeviceProperties.h

osVersion

the installed OS version @remarks only major and minor revision, e.g. 5.1 or 6.0

- (float)osVersion

Discussion

the installed OS version @remarks only major and minor revision, e.g. 5.1 or 6.0

Declared In

PSKDeviceProperties.h

supportsLocationAR

device supports location-based AR has: - camera - compass - gyro - advanced sensor fusion - iOS 5+

- (BOOL)supportsLocationAR

Return Value

YES if location-based AR is supported

Discussion

device supports location-based AR has: - camera - compass - gyro - advanced sensor fusion - iOS 5+

Declared In

PSKDeviceProperties.h

supportsLocationServices

device supports location services @remarks returns YES for almost all devices as most of them support Wifi/Cell positioning

- (BOOL)supportsLocationServices

Discussion

device supports location services @remarks returns YES for almost all devices as most of them support Wifi/Cell positioning

Declared In

PSKDeviceProperties.h

supportsVisualAR

can device support visual AR features using camera processing

- (BOOL)supportsVisualAR

Return Value

YES if device is fast and has a back facing camera

Discussion

can device support visual AR features using camera processing

Declared In

PSKDeviceProperties.h