com.google.zxing.client.android
Class FinishListener

java.lang.Object
  extended by com.google.zxing.client.android.FinishListener
All Implemented Interfaces:
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, java.lang.Runnable

public final class FinishListener
extends java.lang.Object
implements android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnCancelListener, java.lang.Runnable

Simple listener used to exit the app in a few cases.

Author:
Sean Owen

Constructor Summary
FinishListener(android.app.Activity activityToFinish)
           
 
Method Summary
 void onCancel(android.content.DialogInterface dialogInterface)
           
 void onClick(android.content.DialogInterface dialogInterface, int i)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FinishListener

public FinishListener(android.app.Activity activityToFinish)
Method Detail

onCancel

public void onCancel(android.content.DialogInterface dialogInterface)
Specified by:
onCancel in interface android.content.DialogInterface.OnCancelListener

onClick

public void onClick(android.content.DialogInterface dialogInterface,
                    int i)
Specified by:
onClick in interface android.content.DialogInterface.OnClickListener

run

public void run()
Specified by:
run in interface java.lang.Runnable