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

devicePropertiesForPad1:

devicePropertiesForPad2WithName:andOsVersion:

devicePropertiesForPad2_3G

devicePropertiesForPad2_3G:

devicePropertiesForPad2_CDMA

devicePropertiesForPad2_CDMA:

devicePropertiesForPad2_Wifi

devicePropertiesForPad2_Wifi:

devicePropertiesForPad2_WifiNew

devicePropertiesForPad2_WifiNew:

devicePropertiesForPad3WithName:andOsVersion:

devicePropertiesForPad3_4G

devicePropertiesForPad3_4G:

devicePropertiesForPad3_Wifi

devicePropertiesForPad3_Wifi:

devicePropertiesForPad4WithName:andOsVersion:

devicePropertiesForPad4_4G

devicePropertiesForPad4_4G:

devicePropertiesForPad4_Wifi

devicePropertiesForPad4_Wifi:

devicePropertiesForPadMini1WithName:andOsVersion:

devicePropertiesForPadMini1_3G

devicePropertiesForPadMini1_3G:

devicePropertiesForPadMini1_CDMA

devicePropertiesForPadMini1_CDMA:

devicePropertiesForPadMini1_Wifi

devicePropertiesForPadMini1_Wifi:

devicePropertiesForPhone3G

devicePropertiesForPhone3G:

devicePropertiesForPhone3Gs

devicePropertiesForPhone3Gs:

devicePropertiesForPhone4

devicePropertiesForPhone4:

devicePropertiesForPhone4s

devicePropertiesForPhone4s:

devicePropertiesForPhone5

devicePropertiesForPhone5:

devicePropertiesForPod4thGeneration

devicePropertiesForPod4thGeneration:

devicePropertiesForPod5thGeneration

devicePropertiesForPod5thGeneration:

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:

sharedDeviceProperties

shared device properties instance

+ (PSKDeviceProperties *)sharedDeviceProperties

Discussion

shared device properties instance

Declared In

PSKDeviceProperties.h

simulateGPSForAllDevices

Instance Methods

backFacingCameraFovLandscape

backFacingCameraFovPortrait

backFacingCameraFovs

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

hasOS7

YES if the device runs at least iOS 7

- (BOOL)hasOS7

Discussion

YES if the device runs at least iOS 7

Declared In

PSKDeviceProperties.h

hasOS8

YES if the device runs at least iOS 8

- (BOOL)hasOS8

Discussion

YES if the device runs at least iOS 8

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:

initForPad2WithName:andOsVersion:

initForPad3WithName:andOsVersion:

initForPad4WithName:andOsVersion:

initForPadMini1WithName:andOsVersion:

initForPhone3GWithOS:

initForPhone3GsWithOS:

initForPhone4WithOS:

initForPhone4sWithOS:

initForPhone5WithOS:

initForPod4thGeneration:

initForPod5thGeneration:

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