docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method isExpired

    isExpired()

    Indicates whether this auto-renewable subscription Product is currently unsubscribed or not. Note the store-specific behavior. Note also that the receipt may update and change this subscription expiration status if the user sends their iOS app to the background and then returns it to the foreground. It is therefore recommended to remember subscription expiration state at app-launch, and ignore the fact that a subscription may expire later during this app launch runtime session.

    Declaration
    public Result isExpired()
    Returns
    Type Description
    Result

    Result.True.True Subscription status if the store receipt's expiration date is before the device's current time. Result.False.False otherwise. Non-renewable subscriptions in the Apple store return a Result.Unsupported.Unsupported value.

    See Also
    isSubscribed()
    UtcNow
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023