Version: 2017.1

IStoreConfiguration

interface in UnityEngine.Purchasing.Extension

切换到手册

描述

商店所有扩展配置的通用接口。

在初始化之前由 IPurchasingModule 在 Unity IAP 配置期间使用。在 IPurchasingModule 配置期间通过 ConfigurationBuilder 绑定到商店。

示例商店配置接口(需要实现),在拥有购买的模块需要配置其商店时进行实例化:

using UnityEngine.Purchasing.Extension;

// Sample store config. Implementation can be used by the user, // and accessed by the owning purchasing module during store // instantiation. public interface ISampleConfiguration : IStoreConfiguration { // Request access to sample debugging backend bool useSampleStoreDebuggingBackend { get; set; } }