org.appcelerator.titanium.util
Interface TiActivityResultHandler


public interface TiActivityResultHandler

An interface for receiving Activity results from TiActivitySupport.launchActivityForResult(Intent, int, TiActivityResultHandler).


Method Summary
 void onError(Activity activity, int requestCode, Exception e)
          This method is invoked when an exception occurred launching the activity via TiActivitySupport.launchActivityForResult(Intent, int, TiActivityResultHandler).
 void onResult(Activity activity, int requestCode, int resultCode, Intent data)
          This method is invoked after the launched activity from TiActivitySupport.launchActivityForResult(Intent, int, TiActivityResultHandler) exits.
 

Method Detail

onResult

void onResult(Activity activity,
              int requestCode,
              int resultCode,
              Intent data)
This method is invoked after the launched activity from TiActivitySupport.launchActivityForResult(Intent, int, TiActivityResultHandler) exits.

Parameters:
activity - the launched activity.
requestCode - the returned request code.
resultCode - the returned result code.
data - the intent.

onError

void onError(Activity activity,
             int requestCode,
             Exception e)
This method is invoked when an exception occurred launching the activity via TiActivitySupport.launchActivityForResult(Intent, int, TiActivityResultHandler).

Parameters:
activity - the launched activity.
requestCode - the returned request code.
e - the returned exception


Copyright © 2010-2012 Appcelerator, Inc. Licensed under the Apache License 2.0