public class

SCBaseResultHandler

extends Object
java.lang.Object
   ↳ com.c2call.sdk.pub.activities.resulthandlers.SCBaseResultHandler
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

ResultHandlers are used to modularize the handling of activity results that are typically caught by the onActivityResult() method within an Activity. These results should be passed with all their parameters to a fitting ResultHandler.

Summary

Public Constructors
SCBaseResultHandler()
Protected Methods
static Activity getContext(Activity activity, Fragment fragment)
static void startActivityForResult(Activity activity, Fragment fragment, Intent intent, int requestCode)
Calls either Activity's onActivityResult() or Fragment's onActivityResult().
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SCBaseResultHandler ()

Protected Methods

protected static Activity getContext (Activity activity, Fragment fragment)

protected static void startActivityForResult (Activity activity, Fragment fragment, Intent intent, int requestCode)

Calls either Activity's onActivityResult() or Fragment's onActivityResult(). For this, fragment has a higher priority than activity if both are not null.

Parameters
activity the Activity that calls onActivityResult(). May be null if the new Activity should be started by a Fragment.
fragment The fragment that calls onActivityResult(). May be null if the new Activity should be started by an Activity.
intent the intent that is passed to onActivityResult()
requestCode the request code that is passed to onActivityResult()