com.dopanic.panicsensorkit
Class PSKDeviceProperties

java.lang.Object
  extended by com.dopanic.panicsensorkit.PSKDeviceProperties

public class PSKDeviceProperties
extends java.lang.Object

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


Method Summary
 double[] getBackFacingCameraFieldOfView()
           
 java.lang.String getDeviceName()
           
 float getDisplayContentScale()
           
 PSKGPSAvailabilityStatus getGpsStatus()
           
 java.lang.String getOsVersion()
           
 Point getScreenSize()
           
 boolean hasAccelerometer()
           
 boolean hasBackFacingCamera()
           
 boolean hasCompass()
           
 boolean hasFrontFacingCamera()
           
 boolean hasGpsSensor()
           
 boolean hasGravitySensor()
           
 boolean hasGyroscope()
           
 boolean hasRotationVectorSensor()
           
 boolean isARSupported()
           
 boolean isRadarSupported()
           
 boolean isSlowDevice()
           
 boolean isVisualARSupported()
           
static PSKDeviceProperties sharedDeviceProperties()
          Singleton Instance of the DeviceProperties
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

sharedDeviceProperties

public static PSKDeviceProperties sharedDeviceProperties()
Singleton Instance of the DeviceProperties

Returns:
The Singleton Instance of the DeviceProperties of this Device

getScreenSize

public Point getScreenSize()

getDeviceName

public java.lang.String getDeviceName()

getOsVersion

public java.lang.String getOsVersion()

isSlowDevice

public boolean isSlowDevice()

getDisplayContentScale

public float getDisplayContentScale()

getBackFacingCameraFieldOfView

public double[] getBackFacingCameraFieldOfView()

getGpsStatus

public PSKGPSAvailabilityStatus getGpsStatus()

hasBackFacingCamera

public boolean hasBackFacingCamera()

hasFrontFacingCamera

public boolean hasFrontFacingCamera()

hasCompass

public boolean hasCompass()

hasAccelerometer

public boolean hasAccelerometer()

hasGyroscope

public boolean hasGyroscope()

hasGpsSensor

public boolean hasGpsSensor()

hasGravitySensor

public boolean hasGravitySensor()

hasRotationVectorSensor

public boolean hasRotationVectorSensor()

isARSupported

public boolean isARSupported()

isRadarSupported

public boolean isRadarSupported()

isVisualARSupported

public boolean isVisualARSupported()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object



Copyright © 2014 doPanic GmbH. All rights reserved.