Address

@objc(FRUserInfoAddress)
public class Address : NSObject, NSSecureCoding

Address class is a representation of a user’s Address data according to OAuth2 and OIDC spec. Address is retrieved using /userinfo endpoint and is part of UserInfo object.

Property

  • Formatted address

    Declaration

    Swift

    @objc
    public var formatted: String?
  • Street address

    Declaration

    Swift

    @objc
    public var streetAddress: String?
  • Locality

    Declaration

    Swift

    @objc
    public var locality: String?
  • Region

    Declaration

    Swift

    @objc
    public var region: String?
  • Postal code

    Declaration

    Swift

    @objc
    public var postalCode: String?
  • Country

    Declaration

    Swift

    @objc
    public var country: String?
  • Raw JSON response of Address information

    Declaration

    Swift

    @objc
    public var address: [String : Any]

Debug

  • Prints debug description of Address object

    Declaration

    Swift

    override public var debugDescription: String { get }

NSSecureCoding

  • Boolean value of whether SecureCoding is supported or not

    Declaration

    Swift

    public class var supportsSecureCoding: Bool { get }
  • Initializes Address object with NSCoder

    Declaration

    Swift

    convenience required public init?(coder aDecoder: NSCoder)

    Parameters

    aDecoder

    NSCoder

  • Encodes Address object with NSCoder

    Declaration

    Swift

    public func encode(with aCoder: NSCoder)

    Parameters

    aCoder

    NSCoder