Skip to content

Commit

Permalink
document weak PurchasesDelegate reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fire-at-will authored Feb 4, 2025
1 parent aaa77cd commit 3d964a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Purchasing/Purchases/Purchases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ public typealias StartPurchaseBlock = (@escaping PurchaseCompletedBlock) -> Void
/// or one of is overloads.
@objc public static var isConfigured: Bool { Self.purchases.value != nil }

/**
* The delegate for ``Purchases`` responsible for handling updating your app's state in response to updated
* customer info or promotional product purchases.
*
* - Warning: The delegate is not retained by ``Purchases``, so your app must retain a reference to the delegate
* to prevent it from being unintentionally deallocated.
*/
@objc public var delegate: PurchasesDelegate? {
get { self.privateDelegate }
set {
Expand Down

0 comments on commit 3d964a9

Please sign in to comment.