SKTestSession.TimeRate
The values for rates of time passing in the test environment.
Declaration
enum TimeRateOverview
The time rates that affect subscription renewals in the test environment match those in the sandbox environment with these exceptions:
Only the test environment supports the SKTestSession.TimeRate.monthlyRenewalEveryThirtySeconds time rate.
Only the test environment supports the fixed time rate options: SKTestSession.TimeRate.oneRenewalEveryFifteenMinutes, SKTestSession.TimeRate.oneRenewalEveryFiveMinutes, SKTestSession.TimeRate.oneRenewalEveryMinute, SKTestSession.TimeRate.oneRenewalEveryThirtySeconds, SKTestSession.TimeRate.oneRenewalEveryTenSeconds, and SKTestSession.TimeRate.oneRenewalEveryTwoSeconds.
Only the sandbox environment supports a monthly renewal in 3 minutes.
For more information about time rates in the sandbox environment, see Test in-app purchases.
The time rates also affect the lengths of the billing retry period and the billing grace period in the testing environment. See the individual enumeration cases for the actual time values of the subscription renewal rates, billing retry periods, and billing grace periods.
Topics
Fixed time rates for subscription renewals
SKTestSession.TimeRate.oneRenewalEveryFifteenMinutesSKTestSession.TimeRate.oneRenewalEveryFiveMinutesSKTestSession.TimeRate.oneRenewalEveryMinuteSKTestSession.TimeRate.oneRenewalEveryThirtySecondsSKTestSession.TimeRate.oneRenewalEveryTenSecondsSKTestSession.TimeRate.oneRenewalEveryTwoSeconds
Scaled time rates for subscription renewals
SKTestSession.TimeRate.realTimeSKTestSession.TimeRate.monthlyRenewalEveryHourSKTestSession.TimeRate.monthlyRenewalEveryThirtyMinutesSKTestSession.TimeRate.monthlyRenewalEveryFifteenMinutesSKTestSession.TimeRate.monthlyRenewalEveryFiveMinutesSKTestSession.TimeRate.monthlyRenewalEveryThirtySeconds
Deprecated
SKTestSession.TimeRate.oneHourIsOneDaySKTestSession.TimeRate.thirtyMinutesIsOneDaySKTestSession.TimeRate.fiveMinutesIsOneDaySKTestSession.TimeRate.oneMinuteIsOneDaySKTestSession.TimeRate.thirtySecondsIsOneDaySKTestSession.TimeRate.oneSecondIsOneDay