FRDeviceCollector

@objc
public class FRDeviceCollector : NSObject

FRDeviceCollector class manages, and collects Device related information with given DeviceCollector objects and returns JSON result of all Device Collectors

  • Singleton instance of FRDeviceCollector

    Declaration

    Swift

    @objc
    public static let shared: FRDeviceCollector
  • An array of DeviceCollector to be collected

    Declaration

    Swift

    @objc
    public var collectors: [DeviceCollector]
  • Private initialization method which initializes default array of DeviceCollector

    Declaration

    Swift

    public override init()
  • Collects Device Information with all given DeviceCollector

    Declaration

    Swift

    @objc
    public func collect(completion: @escaping DeviceCollectorCallback)

    Parameters

    completion

    completion block which returns JSON of all Device Collectors’ results