SwiftstructStoreKit

struct StoreKit.Product.SubscriptionPeriod

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 19

  1. funcstatic period(with: StoreKit.Product.SubscriptionPeriod.Unit, value: Int) -> StoreKit.Product.SubscriptionPeriod
  2. varstatic var everySixMonths: StoreKit.Product.SubscriptionPeriod { get }
  3. varstatic var everyThreeDays: StoreKit.Product.SubscriptionPeriod { get }
  4. varstatic var everyThreeMonths: StoreKit.Product.SubscriptionPeriod { get }
  5. varstatic var everyTwoMonths: StoreKit.Product.SubscriptionPeriod { get }
  6. varstatic var everyTwoWeeks: StoreKit.Product.SubscriptionPeriod { get }
  7. varstatic var monthly: StoreKit.Product.SubscriptionPeriod { get }
  8. varstatic var weekly: StoreKit.Product.SubscriptionPeriod { get }
  9. varstatic var yearly: StoreKit.Product.SubscriptionPeriod { get }
  10. fieldlet unit: StoreKit.Product.SubscriptionPeriod.Unit+0x0
  11. fieldlet value: Int+0x8
  12. funcdateRange(referenceDate: Foundation.Date) -> Range<Foundation.Date>
  13. funcformatted<A where A: Foundation.FormatStyle, A.FormatInput == Range<Foundation.Date>>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput
  14. funcformatted<A where A: Foundation.FormatStyle, A.FormatInput == Duration>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput
  15. initinit(from8601String: String) throws -> StoreKit.Product.SubscriptionPeriod
  16. initinit(unit: StoreKit.Product.SubscriptionPeriod.Unit, value: Int) -> StoreKit.Product.SubscriptionPeriod
  17. initinit(StoreKit.BackingValue) -> StoreKit.Product.SubscriptionPeriod?
  18. varvar canonicalRepresentation: StoreKit.Product.SubscriptionPeriod { get }
  19. varvar debugDescription: String { get }
struct StoreKit.Product.SubscriptionPeriod {
    enum Unit {
        struct FormatStyle {
            let locale: Foundation.Locale

            func format(_: StoreKit.Product.SubscriptionPeriod.Unit) -> Swift.String
            func locale(_: Foundation.Locale) -> StoreKit.Product.SubscriptionPeriod.Unit.FormatStyle
        }
        case day
        case week
        case month
        case year

        var calendarComponent: Foundation.Calendar.Component {
            get
        }
        var debugDescription: Swift.String {
            get
        }
        var dynamicCalendarComponent: Foundation.Calendar.Component {
            get
        }
        var localizedDescription: Swift.String {
            get
        }

        func formatted<A>(_: A) -> A.FormatOutput where A: Foundation.FormatStyle, A.FormatInput == StoreKit.Product.SubscriptionPeriod.Unit

        static func < (_: StoreKit.Product.SubscriptionPeriod.Unit, _: StoreKit.Product.SubscriptionPeriod.Unit) -> Swift.Bool
    }
    let unit: StoreKit.Product.SubscriptionPeriod.Unit
    let value: Swift.Int

    init(from8601String: Swift.String) throws
    init(unit: StoreKit.Product.SubscriptionPeriod.Unit, value: Swift.Int)
    init?(_: StoreKit.BackingValue)

    var canonicalRepresentation: StoreKit.Product.SubscriptionPeriod {
        get
    }
    var debugDescription: Swift.String {
        get
    }

    func dateRange(referenceDate: Foundation.Date) -> Swift.Range<Foundation.Date>
    func formatted<A>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput where A: Foundation.FormatStyle, A.FormatInput == Swift.Range<Foundation.Date>
    func formatted<A>(_: A, referenceDate: Foundation.Date) -> A.FormatOutput where A: Foundation.FormatStyle, A.FormatInput == Swift.Duration

    static var everySixMonths: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var everyThreeDays: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var everyThreeMonths: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var everyTwoMonths: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var everyTwoWeeks: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var monthly: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var weekly: StoreKit.Product.SubscriptionPeriod {
        get
    }
    static var yearly: StoreKit.Product.SubscriptionPeriod {
        get
    }

    static func period(with: StoreKit.Product.SubscriptionPeriod.Unit, value: Swift.Int) -> StoreKit.Product.SubscriptionPeriod
}