Show Rate Popup

Description

When all conditions from Settings Window are met the rate popup is shown. If not this method does nothing.

Declaration

public static void ShowRatePopup(UnityAction popupClosed = null)

Parameters

NameDescription

popupClosed

Optional Callback called when the Rate Popup was closed.

Example

public class Test : MonoBehaviour
{
    public void ShowRatePopup()
    {
        Gley.RateGame.API.ShowRatePopup(PopupClosed);
    }

    private void PopupClosed()
    {
        Debug.Log("Resume Game");
    }
}

Last updated