SwiftagramCrypto Documentation

Structure Client.​Device.​Resolution

struct Resolution: Equatable, Codable  

A struct defining some characteristics of a device's screen.

%131 Client.Device.Resolution Client.Device.Resolution Codable Codable Client.Device.Resolution->Codable Equatable Equatable Client.Device.Resolution->Equatable

Member Of

Client.Device

A struct defining all possible information about a (mock) device.

Conforms To

Codable
Equatable

Initializers

init(width:​height:​scale:​dpi:​)

public init(width: Int, height: Int, scale: Int, dpi: Int? = nil)  

Init.

Parameters

width Int

A valid Int.

height Int

A valid Int.

scale Int

A valid Int.

dpi Int?

An optional Int. Defaults to nil.

Properties

width

public let width: Int

The width.

height

public let height: Int

The height.

scale

public let scale: Int

The scale.

dpi

public let dpi: Int? 

The DPI. Defaults to nil. Populated for Android devices alone.