【问题标题】:Cannot convert from Plugin.InAppBilling.ItemType to bool无法从 Plugin.InAppBilling.ItemType 转换为 bool
【发布时间】:2021-11-21 11:24:46
【问题描述】:

我使用作者 jamesmontemagno 4.x 版的 InAppBilling 插件。 (最后稳定)

按照代码返回错误:无法从 'Plugin.InAppBilling.ItemType' 转换为 'bool'

由 jamesmontemagno 原创 example Method

var connected = await billing.ConnectAsync(ItemType.InAppPurchase);

【问题讨论】:

    标签: xamarin.forms nuget-package in-app-billing


    【解决方案1】:

    docs 明确说明

    更改:等待 CrossInAppBilling.Current.ConnectAsync(ItemType.InAppPurchase);到 等待 CrossInAppBilling.Current.ConnectAsync();

    【讨论】:

      猜你喜欢
      • 2020-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-08
      相关资源
      最近更新 更多