File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ dependencies {
21
21
```
22
22
23
23
24
- ###### USAGE
24
+ ##### USAGE
25
25
call SimpleFirebaseAnalytics.init() method on your Application.onCreate() method
26
26
``` Java
27
27
public class YourApplication extends Application {
@@ -50,6 +50,7 @@ public class YourApplication extends Application {
50
50
```
51
51
52
52
just define @FirebaseScreen annotation to Activity , Fragment class instead of call FirebaseAnalytics.setCurrentScreen()
53
+ then automatically call screen event when Activity, Fragment is created or resume.
53
54
54
55
```Java
55
56
@FirebaseScreen("main_screen")
@@ -79,3 +80,6 @@ and send firebase event using object.
79
80
SimpleFirebaseAnalytics.sendEvent (ClickEvent .create ("snackbar ", "some extra here "));
80
81
```
81
82
83
+
84
+ #### Limitation
85
+ - use AppCompatActivity to use Fragment screen logging (FragmentLifeCycle observing supported since API level 26 )
You can’t perform that action at this time.
0 commit comments