XStoreProduct

描述应用商店产品。

语法

typedef struct XStoreProduct {  
    const char* storeId;  
    const char* title;  
    const char* description;  
    const char* language;  
    const char* inAppOfferToken;  
    char* linkUri;  
    XStoreProductKind productKind;  
    XStorePrice price;  
    bool hasDigitalDownload;  
    bool isInUserCollection;  
    uint32_t keywordsCount;  
    const char** keywords;  
    uint32_t skusCount;  
    XStoreSku* skus;  
    uint32_t imagesCount;  
    XStoreImage* images;  
    uint32_t videosCount;  
    XStoreVideo* videos;  
} XStoreProduct  

成员

storeId
类型:const char*

产品 ID。

title
类型:const char*

产品的名称。

description
类型:const char*

应用商店产品的描述。

language
类型:const char*

国际标准组织 (ISO) 标识符表示游戏和说明字符串所用的语言。 请参阅 https://msdn.microsoft.com/library/ms693062(v=vs.85).aspx

inAppOfferToken
类型:const char*

游戏定义的优惠代币,您可以用来在内部映射物品。 例如:com.company.product.itemname。

linkUri
类型:char*

产品的 URI。

productKind
类型:XStoreProductKind

指示应用商店产品的类型。

price
类型:XStorePrice

应用商店产品的价格信息。

hasDigitalDownload
类型:bool

指示应用商店产品是否有数字下载。

isInUserCollection
类型:bool

指示产品是否在用户收藏中。

keywordsCount
类型:uint32_t

keywords 中的关键字数。

keywords
类型:const char**

与应用商店产品关联的关键字。

skusCount
类型:uint32_t

skus 中的 SKU 数。

skus
类型:XStoreSku*

与产品关联的 SKU 数组。

imagesCount
类型:uint32_t

images 中的图像数。

images
类型:XStoreImage*

与产品关联的图像。

videosCount
类型:uint32_t

videos 中的视频数。

videos
类型:XStoreVideo*

与产品关联的视频。

备注

Microsoft Store 中的产品以产品SKU可用性对象的层次结构来管理。 产品由 XStoreProduct 对象表示。 每个产品的 SKU 由 XStoreSku 对象表示,每个 SKU 的可用性由 XStoreAvailability 对象表示。

要求

头文件:XStore.h(包含在 XGameRuntime.h 中)

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

XStore