STRUCT

RiskAssessmentConfiguration

Contents

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.

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.

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”)