Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DeviceContext = DeviceContext {
- arch :: Text
- batteryLevel :: Maybe Double
- batteryStatus :: Text
- bootTime :: Maybe UTCTime
- brand :: Text
- charging :: Maybe Bool
- cpuDescription :: Text
- deviceType :: Text
- deviceUniqueIdentifier :: Text
- externalFreeStorage :: Maybe Int
- externalStorageSize :: Maybe Int
- family :: Text
- freeMemory :: Maybe Int
- freeStorage :: Maybe Int
- lowMemory :: Maybe Bool
- manufacturer :: Text
- memorySize :: Maybe Int
- model :: Text
- modelId :: Text
- name :: Text
- online :: Maybe Bool
- orientation :: Text
- processorCount :: Maybe Int
- processorFrequency :: Maybe Double
- screenDensity :: Maybe Double
- screenDpi :: Maybe Double
- screenResolution :: Text
- simulator :: Maybe Bool
- storageSize :: Maybe Int
- supportsAccelerometer :: Maybe Bool
- supportsAudio :: Maybe Bool
- supportsGyroscope :: Maybe Bool
- supportsLocationService :: Maybe Bool
- supportsVibration :: Maybe Bool
- timezone :: Text
- usableMemory :: Maybe Int
- empty :: DeviceContext
Documentation
data DeviceContext Source #
DeviceContext | |
|
Instances
ToJSON DeviceContext Source # | |
Defined in Patrol.Type.DeviceContext toJSON :: DeviceContext -> Value # toEncoding :: DeviceContext -> Encoding # toJSONList :: [DeviceContext] -> Value # toEncodingList :: [DeviceContext] -> Encoding # | |
Show DeviceContext Source # | |
Defined in Patrol.Type.DeviceContext showsPrec :: Int -> DeviceContext -> ShowS # show :: DeviceContext -> String # showList :: [DeviceContext] -> ShowS # | |
Eq DeviceContext Source # | |
Defined in Patrol.Type.DeviceContext (==) :: DeviceContext -> DeviceContext -> Bool # (/=) :: DeviceContext -> DeviceContext -> Bool # |