Structure
Client.Device
struct Device: Equatable, Codable, CustomStringConvertible
A struct
defining all possible information about a (mock) device.
Relationships
Member Of
Client
A
struct
defining all possible information used to identify the software and hardware combination of a logged in user.
Nested Types
Client.Device.Resolution
A
struct
defining some characteristics of a device's screen.Client.Device.Hardware
A
struct
defining some device-specific characteristics.Client.Device.Software
A
struct
defining some software-specific characteristics.
Conforms To
Codable
CustomStringConvertible
Equatable
Properties
Methods
android(_:language:model:brand:boot:cpu:manufacturer:resolution:identifier:phoneIdentifier:adIdentifier:)
public static func android(_ version: String,
language: String,
model: String,
brand: String,
boot: String,
cpu: String,
manufacturer: String?,
resolution: Resolution,
identifier: UUID = .init(),
phoneIdentifier: UUID = .init(),
adIdentifier: UUID = .init()) -> Device
Generate a generic/Android device.
Parameters
Name | Type | Description |
---|---|---|
version | String |
A valid |
language | String |
A valid |
model | String |
A valid |
brand | String |
A valid |
boot | String |
A valid |
cpu | String |
A valid |
manufacturer | String? |
An optional |
resolution | Resolution |
A valid |
identifier | UUID |
A valid |
phoneIdentifier | UUID |
A valid |
adIdentifier | UUID |
A valid |
iOS(_:language:model:resolution:identifier:phoneIdentifier:adIdentifier:)
public static func iOS(_ version: String,
language: String,
model: String,
resolution: Resolution,
identifier: UUID = .init(),
phoneIdentifier: UUID = .init(),
adIdentifier: UUID = .init()) -> Device
Generate an iOS device.
Parameters
Name | Type | Description |
---|---|---|
version | String |
A valid |
language | String |
A valid |
model | String |
A valid |
resolution | Resolution |
A valid |
identifier | UUID |
A valid |
phoneIdentifier | UUID |
A valid |
adIdentifier | UUID |
A valid |