docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetServiceDisconnectAtInitializeListener

    SetServiceDisconnectAtInitializeListener(Action)

    Set an optional listener for failures when connecting to the base Google Play Billing service. This may be called after UnityPurchasing.Initialize.Initialize if a user does not have a Google account added to their Android device.

    This listener can be used to learn that initialization is paused, and the user must add a Google account in order to be able to purchase and to download previous purchases. Adding a valid account will allow the initialization to resume.

    Declaration
    void SetServiceDisconnectAtInitializeListener(Action action)
    Parameters
    Type Name Description
    Action action

    Will be called when UnityPurchasing.Initialize.Initialize is interrupted by a disconnection from the Google Play Billing service.

    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