Class ReferralReceiver


  • public class ReferralReceiver
    extends android.content.BroadcastReceiver
    This receiver listens when the app is installed. If there's a referral code bundled in the app link, whether from an invitation link or Facebook's app invite, the code will be saved in the app's shared preferences. It can be accessed in ReferralUtils.getCode() Register this listener in the app's manifest.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.content.BroadcastReceiver

        android.content.BroadcastReceiver.PendingResult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onReceive​(android.content.Context context, android.content.Intent intent)  
      • Methods inherited from class android.content.BroadcastReceiver

        abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReferralReceiver

        public ReferralReceiver()
    • Method Detail

      • onReceive

        public void onReceive​(android.content.Context context,
                              android.content.Intent intent)
        Specified by:
        onReceive in class android.content.BroadcastReceiver