tv.ouya.console.api
Class OuyaPurchaseHelper

java.lang.Object
  extended by tv.ouya.console.api.OuyaPurchaseHelper

public class OuyaPurchaseHelper
extends java.lang.Object

Helper for OUYA purchases.


Constructor Summary
OuyaPurchaseHelper()
           
 
Method Summary
static java.lang.String getSuspendedPurchase(android.content.Context context)
          Get any purchase which has been suspended.
static void suspendPurchase(android.content.Context context, java.lang.String purchasableId)
          Store the details of a purchase so it can be resumed later.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OuyaPurchaseHelper

public OuyaPurchaseHelper()
Method Detail

suspendPurchase

public static final void suspendPurchase(android.content.Context context,
                                         java.lang.String purchasableId)
Store the details of a purchase so it can be resumed later.

Parameters:
context - The context in which we're operating.
purchasableId - The ID of the purchasable object to store.

getSuspendedPurchase

public static java.lang.String getSuspendedPurchase(android.content.Context context)
Get any purchase which has been suspended.

Returns:
The Id of the suspended purchase or null if no purchase has been suspended.


Copyright © 2012 OUYA, Inc. All Rights Reserved.