Nenhuma descrição
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

AndroidJavaStore.cs 867B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEngine.Purchasing
  4. {
  5. internal class AndroidJavaStore : INativeStore
  6. {
  7. private readonly AndroidJavaObject m_Store;
  8. protected AndroidJavaObject GetStore()
  9. {
  10. return m_Store;
  11. }
  12. public AndroidJavaStore(AndroidJavaObject store)
  13. {
  14. m_Store = store;
  15. }
  16. public void RetrieveProducts(string json)
  17. {
  18. m_Store.Call("RetrieveProducts", json);
  19. }
  20. public virtual void Purchase(string productJSON, string developerPayload)
  21. {
  22. m_Store.Call("Purchase", productJSON, developerPayload);
  23. }
  24. public virtual void FinishTransaction(string productJSON, string transactionID)
  25. {
  26. m_Store.Call("FinishTransaction", productJSON, transactionID);
  27. }
  28. }
  29. }