Android SDK Version
  • java.lang.Object
    • BroadcastReceiver
      • com.facebook.FacebookBroadcastReceiver

public class FacebookBroadcastReceiver
extends BroadcastReceiver
This class implements a simple BroadcastReceiver designed to listen for broadcast notifications from the Facebook app. At present, these notifications consistent of success/failure notifications for photo upload operations that happen in the background.
Applications may subclass this class and register it in their AndroidManifest.xml. The receiver is listening the com.facebook.platform.AppCallResultBroadcast action.
Constructor Summary
Constructor and Description
FacebookBroadcastReceiver() 
Method Summary
Modifier and TypeMethod and Description
protected voidonFailedAppCall(java.lang.String appCallId, java.lang.String action, Bundle extras)
Invoked when the operation failed to complete.
voidonReceive(Context context, Intent intent) 
protected voidonSuccessfulAppCall(java.lang.String appCallId, java.lang.String action, Bundle extras)
Invoked when the operation was completed successfully.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

FacebookBroadcastReceiver

public FacebookBroadcastReceiver()
Method Detail

onReceive

public void onReceive(Context context,
                      Intent intent)

onSuccessfulAppCall

protected void onSuccessfulAppCall(java.lang.String appCallId,
                                   java.lang.String action,
                                   Bundle extras)
Invoked when the operation was completed successfully.
Parameters:
appCallId - The App Call ID.
action - The action performed.
extras - Any extra information.

onFailedAppCall

protected void onFailedAppCall(java.lang.String appCallId,
                               java.lang.String action,
                               Bundle extras)
Invoked when the operation failed to complete.
Parameters:
appCallId - The App Call ID.
action - The action performed.
extras - Any extra information.