Traits

Undocumented

  • age

    An Int value representing age of user.

    Declaration

    Swift

    public var age : Int? = -1
  • An enum value of GENDER supports values (.MALE,.FEMALE,.OTHER)

    Declaration

    Swift

    public var gender : GENDER?
  • emailID of user

    Declaration

    Swift

    public var email : String?
  • String representing user network

    Declaration

    Swift

    public var network : String?
  • String name of user

    Declaration

    Swift

    public var name : String?
  • String value representing registration Status of user.

    Declaration

    Swift

    public var status : String?
  • id

    String value representing UserID of user.

    Declaration

    Swift

    public var id : String?
  • A [String : String] dictionary representing custom user prfile informations.

    Declaration

    Swift

    public var customTraits : [String : String]?
  • Undocumented

  • Initialize method for Traits

    Declaration

    Swift

    public init(id : String? = nil ,
                    name : String? = nil ,
                    email : String? = nil ,
                    gender : GENDER? = nil ,
                    age : Int? = nil ,
                    status : String? = nil ,
                    phoneNumber : String? = nil,
    //                city : String? = nil ,
    //                country : String? = nil ,
                    network : String? = nil ,
                    customTraits : [String : String]? = nil)

    Parameters

    age

    An Int value representing age of user.

    gender

    An enum value of GENDER supports values (.MALE,.FEMALE,.OTHER)

    country

    String representing user country name

    city

    String representing user city name

    network

    String representing user network

    name

    String name of user

    status

    String value representing registration Status of user.

    id

    String value representing UserID of user.

    customTraits

    A [String : String] dictionary representing custom user prfile informations.