Class FlurryMarketingUtils.FirebaseTokenAgent

java.lang.Object
com.flurry.android.marketing.FlurryMarketingUtils.FirebaseTokenAgent
All Implemented Interfaces:
com.google.android.gms.tasks.OnCompleteListener<String>
Enclosing class:
FlurryMarketingUtils

public static class FlurryMarketingUtils.FirebaseTokenAgent extends Object implements com.google.android.gms.tasks.OnCompleteListener<String>
A Firebase token retrieving helper agent.

 Example:
   new FlurryMarketingUtils.FirebaseTokenAgent().start(new FlurryMarketingUtils.FirebaseTokenAgent.TokenListener() {
  • Constructor Details

    • FirebaseTokenAgent

      public FirebaseTokenAgent()
  • Method Details

    • start

      Start getting Firebase token.
      Parameters:
      listener - listener to receive the token onComplete callback.
    • getToken

      public String getToken()
      Get the Firebase token.
      Returns:
      the Firebase token
    • onComplete

      public void onComplete(@NonNull com.google.android.gms.tasks.Task<String> task)
      Specified by:
      onComplete in interface com.google.android.gms.tasks.OnCompleteListener<String>