void QuerySkuDetails(List <string> skus, string type, Action <List <AndroidJavaObject> > onSkuDetailsResponse)
        {
            AndroidJavaObject skuDetailsParamsBuilder = GetSkuDetailsParamClass().CallStatic <AndroidJavaObject>("newBuilder");

            skuDetailsParamsBuilder = skuDetailsParamsBuilder.Call <AndroidJavaObject>("setSkusList", skus.ToJava());
            skuDetailsParamsBuilder = skuDetailsParamsBuilder.Call <AndroidJavaObject>("setType", type);

            SkuDetailsResponseListener listener = new SkuDetailsResponseListener((billingResult, skuDetails) => ConsolidateOnSkuDetailsReceived(billingResult, skuDetails, onSkuDetailsResponse));

            m_BillingClient.QuerySkuDetailsAsync(skuDetailsParamsBuilder, listener);
        }
示例#2
0
 void QuerySkuDetails(List <string> skus, string type, ISkuDetailsResponseConsolidator consolidator)
 {
     m_BillingClient.QuerySkuDetailsAsync(skus, type, consolidator.Consolidate);
 }