Skip to content

Commit 2ccaa22

Browse files
committed
- update readme
1 parent 3ed520e commit 2ccaa22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
```
2222

2323

24-
###### USAGE
24+
##### USAGE
2525
call SimpleFirebaseAnalytics.init() method on your Application.onCreate() method
2626
```Java
2727
public class YourApplication extends Application {
@@ -50,6 +50,7 @@ public class YourApplication extends Application {
5050
```
5151

5252
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.
5354

5455
```Java
5556
@FirebaseScreen("main_screen")
@@ -79,3 +80,6 @@ and send firebase event using object.
7980
SimpleFirebaseAnalytics.sendEvent(ClickEvent.create("snackbar", "some extra here"));
8081
```
8182

83+
84+
#### Limitation
85+
- use AppCompatActivity to use Fragment screen logging (FragmentLifeCycle observing supported since API level 26)

0 commit comments

Comments
 (0)