Dialog FinishedCall Back

The IDialogFinishedCallBack interface allows the ManagedActivityDialog class to tell the parent activity that the dialog has finished and that the parent activity can call methods on the dialog to retrieve parameters. Usually a ManagedDialogsActivity implements this interface and acts as a parent activity to the ManagedActivityDialog (see Listing 5-32).

Listing 5-32. The IDialogFinishedCallBack Interface public interface IDialogFinishedCallBack {

public static int OK_BUTTON = -1; public static int CANCEL_BUTTON = -2;

public void dialogFinished(ManagedActivityDialog dialog, int buttonId);

0 0

Post a comment