tv.ouya.console.api
Class CancelIgnoringOuyaResponseListener<T>

java.lang.Object
  extended by tv.ouya.console.api.CancelIgnoringOuyaResponseListener<T>
All Implemented Interfaces:
OuyaResponseListener<T>

public abstract class CancelIgnoringOuyaResponseListener<T>
extends java.lang.Object
implements OuyaResponseListener<T>

Utility base class for listeners that don't expect to receive cancel notifications or which don't have to do anything if the user clicks "Cancel." This class implements an empty onCancel() method so that you don't have to litter your code with onCancel() methods that will never be called.


Constructor Summary
CancelIgnoringOuyaResponseListener()
           
 
Method Summary
 void onCancel()
          Called when the user selects Cancel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tv.ouya.console.api.OuyaResponseListener
onFailure, onSuccess
 

Constructor Detail

CancelIgnoringOuyaResponseListener

public CancelIgnoringOuyaResponseListener()
Method Detail

onCancel

public final void onCancel()
Called when the user selects Cancel. Implemented to do nothing.

Note: onCancel() is final in order to prevent overriding, thereby forcing the use of a different Listener type if an inheriting class needs to do something when the user clicks "Cancel."

Specified by:
onCancel in interface OuyaResponseListener<T>


Copyright © 2012 OUYA, Inc. All Rights Reserved.