C# 클래스 Ouya.Console.Api.OuyaFacade

Entry point for the OUYA API. Applications should use the singleton instance.
파일 보기 프로젝트 열기: KonajuGames/ouya-csharp 1 사용 예제들

공개 메소드들

메소드 설명
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>