Package com.flurry.android.marketing
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() {
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Listener to receive the token onComplete callback. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetToken()
Get the Firebase token.void
onComplete
(com.google.android.gms.tasks.Task<String> task) void
Start getting Firebase token.
-
Constructor Details
-
FirebaseTokenAgent
public FirebaseTokenAgent()
-
-
Method Details
-
start
Start getting Firebase token.- Parameters:
listener
- listener to receive the token onComplete callback.
-
getToken
Get the Firebase token.- Returns:
- the Firebase token
-
onComplete
- Specified by:
onComplete
in interfacecom.google.android.gms.tasks.OnCompleteListener<String>
-