TelephonyCollector

public class TelephonyCollector : DeviceCollector, @unchecked Sendable

Collector for cellular network and carrier information.

This collector gathers information about the device’s cellular capabilities including carrier name and network country information from available cellular service providers.

  • Declaration

    Swift

    public typealias DataType = TelephonyInfo
  • key

    Unique identifier for telephony information data

    Declaration

    Swift

    public let key: String
  • collect() Asynchronous

    Collects cellular network and carrier information

    Declaration

    Swift

    public func collect() async -> TelephonyInfo?

    Return Value

    TelephonyInfo containing carrier and network details

  • Initializes a new instance

    Declaration

    Swift

    public init()