C# Класс Ouya.Console.Api.OuyaFacade

Entry point for the OUYA API. Applications should use the singleton instance.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Init ( Android context, string developerUuid ) : void

Initializes the facade. Should only be called once.

RequestGamerInfoAsync ( ) : Task

Requests the current gamer's info.

RequestProductListAsync ( ) : Task>

Returns a list of Product objects that describe the products (including current price) associated with the specified list of Purchasables.

RequestProductListAsync ( IList purchasables ) : Task>

Returns a list of Product objects that describe the products (including current price) associated with the specified list of Purchasables.

RequestPurchaseAsync ( Product product ) : Task

Requests that the specified Purchasable be purchased on behalf of the current user. The IAP client service is responsible for identifying the user and requesting credentials as appropriate, as well as providing all of the UI for the purchase flow. When purchases are successful, a Product object is returned that describes the product that was purchased.

RequestReceiptsAsync ( ) : Task>

Requests the current receipts from the Store. If the Store is not available, the cached receipts from a previous call are returned.

Приватные методы

Метод Описание
Log ( string msg ) : void
RequestGamerUuidAsync ( ) : Task

Описание методов

Init() публичный Метод

Initializes the facade. Should only be called once.
public Init ( Android context, string developerUuid ) : void
context Android An Android Context object. Usually the Activity object.
developerUuid string The developer UUID, which is obtained from the developer portal.
Результат void

RequestGamerInfoAsync() публичный Метод

Requests the current gamer's info.
public RequestGamerInfoAsync ( ) : Task
Результат Task

RequestProductListAsync() публичный Метод

Returns a list of Product objects that describe the products (including current price) associated with the specified list of Purchasables.
public RequestProductListAsync ( ) : Task>
Результат Task>

RequestProductListAsync() публичный Метод

Returns a list of Product objects that describe the products (including current price) associated with the specified list of Purchasables.
public RequestProductListAsync ( IList purchasables ) : Task>
purchasables IList A list of Purchasable objects that identify the products to be returned.
Результат Task>

RequestPurchaseAsync() публичный Метод

Requests that the specified Purchasable be purchased on behalf of the current user. The IAP client service is responsible for identifying the user and requesting credentials as appropriate, as well as providing all of the UI for the purchase flow. When purchases are successful, a Product object is returned that describes the product that was purchased.
public RequestPurchaseAsync ( Product product ) : Task
product Product The Purchasable object that describes the item to be purchased.
Результат Task

RequestReceiptsAsync() публичный Метод

Requests the current receipts from the Store. If the Store is not available, the cached receipts from a previous call are returned.
public RequestReceiptsAsync ( ) : Task>
Результат Task>