-
Notifications
You must be signed in to change notification settings - Fork 0
7. Query User's Subscribed Products
AmirHosseinAghajari edited this page Apr 12, 2023
·
1 revision
You can query the user's purchased products by using GetSubscribedProducts
function in Poolakey
class:
Poolakey.GetSubscribedProducts("Query")
Private Sub Query_QuerySucceed (Query As PoolakeyPurchaseQuery)
For i = 0 To Query.Size - 1
Log(Query.Get(i))
Next
End Sub
Private Sub Query_QueryFailed (Error As PoolakeyException)
Log("Query failed: " & Error)
End Sub
GetSubscribedProducts
runs on a background thread and notifies you about the query result in the main thread, this means that you don't have to handle threading by yourself.