PFUserInfo

Objective-C

@interface PFUserInfo : NSObject

Swift

class PFUserInfo : NSObject

Contains information about the user that is being tracked for the lifetime of the application.

  • If user has a backend UserID from the application, this can be set to track that ID in PurchaseFly system.

    Declaration

    Objective-C

    @property (readonly) NSString *_Nonnull appUserId;

    Swift

    var appUserId: String { get }
  • We keep record the first time, we have tracked the user.

    Declaration

    Objective-C

    @property (readonly) NSDate *_Nullable firstSeenAt;

    Swift

    var firstSeenAt: Date? { get }
  • We keep record the last time, we have tracked the user.

    Declaration

    Objective-C

    @property (readonly) NSDate *_Nullable lastSeenAt;

    Swift

    var lastSeenAt: Date? { get }
  • We keep record the last time the user has purchased.

    Declaration

    Objective-C

    @property (readonly) NSDate *_Nullable lastPurchasedAt;

    Swift

    var lastPurchasedAt: Date? { get }
  • If the user is sharing purchase.

    Declaration

    Objective-C

    @property (readonly) BOOL isPurchaseShared;

    Swift

    var isPurchaseShared: Bool { get }