FRDevice

@objc
public class FRDevice : NSObject

FRDevice represents a device locally managed, and persisted in FRAuth SDK

  • FRDeviceIdentifier object responsible for device’s instance identifier

    Declaration

    Swift

    public fileprivate(set) var identifier: FRDeviceIdentifier { get }
  • Current representation of FRDevice for FRAuth SDK; currentDevice may return nil if SDK was not properly started due to missing configuration file

    Declaration

    Swift

    @objc
    public static var currentDevice: FRDevice? { get }

Public

  • Collects Device Information with all given DeviceCollector

    Declaration

    Swift

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

    Parameters

    completion

    completion block which returns JSON of all Device Collectors’ results