IExtensionProvider

interface in UnityEngine.Purchasing

Switch to Manual

Description

提供特定于商店的扩展功能的访问权限。

可通过实例化 IPurchasingModuleIPurchasingBinder,将特定扩展的接口类型与特定商店类型关联。

示例扩展:


using System;
using UnityEngine;
using UnityEngine.Purchasing;

// Extends an implementing store. public interface ISampleExtension : IStoreExtension { // Implemented by associated store. void RestoreTransactions(Action<bool> callback); }

Public Functions

GetExtension获取指定类型的特定于商店的扩展。