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
UserPropertiesinstance.Declaration
Swift
public init( userId: String? = nil, installDate: Date? = nil, purchaseSummary: InAppPurchaseSummary? = nil, customProperties: CustomProperties = CustomProperties() )Parameters
userIdAn Id that uniquely identifies a user on your app. This value is optional and not mandatory.
installDateThe date the user installed the app. Optional, defaults to nil.
purchaseSummaryThe user’s in-app purchase summary. Optional, defaults to nil.
customPropertiesA
CustomPropertiesobject with additional properties you can provide. Optional, defaults to an empty CustomProperties object. -
Creates a new
UserPropertiesinstance.Declaration
Swift
public init( userId: String? = nil, customProperties: CustomProperties = CustomProperties() )Parameters
userIdAn Id that uniquely identifies a user on your app. This value is optional and not mandatory.
customPropertiesA
CustomPropertiesobject with additional properties you can provide. Optional, defaults to an empty CustomProperties object.