DevicePpi | iOS SDK | 2GIS Documentation
iOS SDK

DevicePpi

Resolution of the device display, in pixels per inch.
Must be positive.

public init(
    value: Float = 0
)
Parameters
value
public init(floatLiteral value: Float)

Creates an instance initialized to the specified floating-point value.

Parameters
value
Float

The value to create.

Properties

PPI of the head unit screen. For example, for a smartphone connected to CarPlay, this is the PPI of the smartphone screen. The value is nil if the current device has an unknown PPI (unsupported device, e.g. from future). In such cases, you need to set the PPI yourself using the entry in Map.devicePpi.

This PPI is used by default in cases where it was not possible to automatically determine from the device model. See `.autodetected'.