UserProperties

public struct UserProperties : Equatable

User properties configuration object

  • The current user’s unique identifier

    Declaration

    Swift

    public var userId: String?
  • The date the user installed the app

    Declaration

    Swift

    public var installDate: Date?
  • The total amount of in app purchases done by the user

    Declaration

    Swift

    public var purchaseSummary: InAppPurchaseSummary?
  • The current user’s custom properties

    Declaration

    Swift

    public var customProperties: CustomProperties
  • Creates a new UserProperties instance.

    Declaration

    Swift

    public init(
        userId: String? = nil,
        installDate: Date? = nil,
        purchaseSummary: InAppPurchaseSummary? = nil,
        customProperties: CustomProperties = CustomProperties()
    )

    Parameters

    userId

    An Id that uniquely identifies a user on your app. This value is optional and not mandatory.

    installDate

    The date the user installed the app. Optional, defaults to nil.

    purchaseSummary

    The user’s in-app purchase summary. Optional, defaults to nil.

    customProperties

    A CustomProperties object with additional properties you can provide. Optional, defaults to an empty CustomProperties object.

  • Creates a new UserProperties instance.

    Declaration

    Swift

    public init(
        userId: String? = nil,
        customProperties: CustomProperties = CustomProperties()
    )

    Parameters

    userId

    An Id that uniquely identifies a user on your app. This value is optional and not mandatory.

    customProperties

    A CustomProperties object with additional properties you can provide. Optional, defaults to an empty CustomProperties object.