Android Question manager.getowndedproducts latency

Discussion in 'Android Questions' started by tufanv, Jan 27, 2015.

  1. tufanv

    tufanv Expert Licensed User

    Hello,

    When I use manager.getownedproducts on activity create, it takes some time for the inventory to be loaded and ecause of this latency I am having some problems. IS tere an event trggered when getownedproducts load completed ?

    TY
     
  2. DonManfred

    DonManfred Expert Licensed User

    Code:
    Sub manager_OwnedProducts (Success As Boolean, purchases As Map)
       
    Log(Success)
       
    If Success Then
          
    Log(purchases)
          
    For Each p As Purchase In purchases.Values
             
    Log(p.ProductId & ", Purchased? " & (p.PurchaseState = p.STATE_PURCHASED))
          
    Next
       
    End If
    End Sub
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice