|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttv.ouya.console.api.UserManager
public class UserManager
Entry point for the OUYA API. Applications should use the singleton instance.
Calls are asynchronous, so
results are returned via client provided OuyaResponseListener objects.
| Constructor Summary | |
|---|---|
protected |
UserManager(android.content.Context context)
Default constructor. |
| Method Summary | |
|---|---|
boolean |
bindRequestHasBeenMade()
Deprecated. |
static UserManager |
getInstance(android.content.Context context)
Returns the OuyaFacade singleton. |
void |
onServiceConnected(android.content.ComponentName componentName,
android.os.IBinder iBinder)
Called when the service is connected. |
void |
onServiceDisconnected(android.content.ComponentName componentName)
Called when the service is disconnected. |
void |
requestUserAddsAccount(android.app.Activity activity,
OuyaResponseListener<java.lang.Void> listener)
Takes the user to the "Add OUYA account" screen. |
void |
requestUsername(java.lang.String consoleId,
OuyaResponseListener<java.lang.String> usernameListener)
Gets the username associated with a console |
protected static void |
setInstance(UserManager instance)
Deprecated. |
void |
shutdown()
Shuts down the facade. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected UserManager(android.content.Context context)
Protected in order to prevent anyone from accidently creating an OuyaFacade directly.
| Method Detail |
|---|
public static UserManager getInstance(android.content.Context context)
@Deprecated protected static void setInstance(UserManager instance)
public void shutdown()
Note: Call shutdown before the program exits. Otherwise, the internal BroadcastReceiver will be leaked.
public void requestUsername(java.lang.String consoleId,
OuyaResponseListener<java.lang.String> usernameListener)
consoleId - The ID of this consoleusernameListener - The Listener for the username
public void requestUserAddsAccount(android.app.Activity activity,
OuyaResponseListener<java.lang.Void> listener)
activity - The currently active activity@Deprecated public boolean bindRequestHasBeenMade()
public void onServiceConnected(android.content.ComponentName componentName,
android.os.IBinder iBinder)
This is part of Android's ServiceConnection interface, and it is not client consumable.
onServiceConnected in interface android.content.ServiceConnectioncomponentName - The name of the service that has been connected.iBinder - The IBinder object for that service.public void onServiceDisconnected(android.content.ComponentName componentName)
This is part of Android's ServiceConnection interface, and it is not client consumable.
onServiceDisconnected in interface android.content.ServiceConnectioncomponentName - The name of the service that has been disconnected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||