STRUCT
RiskAssessmentConfiguration
Contents
- Methods
init(operatingSystemName:operatingSystemVersion:deviceModelName:applicatonIdentifier:)
 
public struct RiskAssessmentConfiguration: Equatable, Sendable
A configuration object that provides device and app information for risk assessment purposes.
RiskAssessmentConfiguration gathers details about the current device and application bundle,
such as the operating system name and version, device model, and the bundle reference.
This information can be used to enrich risk assessment or telemetry data.
- 
Note: The operating system name and version, and the device model name can be retrieved with
UIDevice: UIDevice.current.systemName and UIDevice.current.systemVersion - 
Important: This configuration is mainly used for BankId risk assessment.
 - 
Properties:
- operatingSystemName: The name of the operating system (e.g., "iOS").
 - operatingSystemVersion: The version of the operating system (e.g., "17.0").
 - deviceModelName: The model name of the current device (e.g., "iPhone 16").
 - applicatonIdentifier: The unique application identifier (bundle ID) for the current application.
 
 
Methods
init(operatingSystemName:operatingSystemVersion:deviceModelName:applicatonIdentifier:)
public init(
    operatingSystemName: String,
    operatingSystemVersion: String,
    deviceModelName: String,
    applicatonIdentifier: String
)
Initializes a new risk assessment configuration with device and application information.
- Parameters:
- operatingSystemName: The operating system name and version (e.g., "iOS").
 - operatingSystemVersion: The version of the operating system (e.g., "17.0").
 - deviceModelName: The device model name (e.g., "Apple iPhone 16").
 - applicatonIdentifier: The bundle identifier for the application (e.g., "com.example.myapp")
 
 
Example:
let config = RiskAssessmentConfiguration(
    operatingSystemName: UIDevice.current.systemName,
    operatingSystemVersion: UIDevice.current.systemVersion,
    deviceModelName: "iPhone 15 Pro",
    applicationIdentifier: Bundle.main.bundleIdentifier!
)
Parameters
| Name | Description | 
|---|---|
| operatingSystemName | The operating system name and version (e.g., “iOS”). | 
| operatingSystemVersion | The version of the operating system (e.g., “17.0”). | 
| deviceModelName | The device model name (e.g., “Apple iPhone 16”). | 
| applicatonIdentifier | The bundle identifier for the application (e.g., “com.example.myapp”) |