Android SDK Version


public class ReferralManager
This class manages referrals for Facebook.
Field Summary
Modifier and TypeFieldDescription
private static volatile ReferralManagerinstance
Method Summary
Modifier and TypeMethodDescription
static ReferralManagergetInstance() Getter for the referral manager.
voidstartReferral(Activity activity) Open the referral dialog.
voidstartReferral(Fragment fragment) Open the referral dialog.
voidstartReferral(Fragment fragment) Open the referral dialog.
voidstartReferral(FragmentWrapper fragment) Open the referral dialog.
voidregisterCallback(CallbackManager callbackManager, FacebookCallback<ReferralResult> callback) Registers a referral callback to the given callback manager.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getInstance

 static ReferralManagergetInstance()
Getter for the referral manager.

startReferral

 void startReferral(Activity activity)
Open the referral dialog.
Parameters:
activity - The activity which is starting the referral process.

startReferral

 void startReferral(Fragment fragment)
Open the referral dialog.
Parameters:
fragment - The android.support.v4.app.Fragment which is starting the referral process.

startReferral

 void startReferral(Fragment fragment)
Open the referral dialog.
Parameters:
fragment - The android.app.Fragment which is starting the referral process.

startReferral

 void startReferral(FragmentWrapper fragment)
Open the referral dialog.
Parameters:
fragment - The fragment which is starting the referral process.

registerCallback

 void registerCallback(CallbackManager callbackManager, FacebookCallback<ReferralResult> callback)
Registers a referral callback to the given callback manager.
Parameters:
callbackManager - The callback manager that will encapsulate the callback.
callback - The referral callback that will be called on referral completion.