File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
app/src/main/java/com/narratiive/androidsdkexample/ui Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment
9
9
import androidx.lifecycle.Observer
10
10
import androidx.lifecycle.ViewModelProvider
11
11
import com.narratiive.androidsdkexample.R
12
+ import com.narratiive.narratiivesdk.NarratiiveSDK
12
13
13
14
class DashboardFragment : Fragment () {
14
15
@@ -28,4 +29,9 @@ class DashboardFragment : Fragment() {
28
29
})
29
30
return root
30
31
}
32
+
33
+ override fun onResume () {
34
+ super .onResume()
35
+ NarratiiveSDK .send(" /dashboard" )
36
+ }
31
37
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment
9
9
import androidx.lifecycle.Observer
10
10
import androidx.lifecycle.ViewModelProvider
11
11
import com.narratiive.androidsdkexample.R
12
+ import com.narratiive.narratiivesdk.NarratiiveSDK
12
13
13
14
class HomeFragment : Fragment () {
14
15
@@ -28,4 +29,9 @@ class HomeFragment : Fragment() {
28
29
})
29
30
return root
30
31
}
32
+
33
+ override fun onResume () {
34
+ super .onResume()
35
+ NarratiiveSDK .send(" /home" )
36
+ }
31
37
}
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment
9
9
import androidx.lifecycle.Observer
10
10
import androidx.lifecycle.ViewModelProvider
11
11
import com.narratiive.androidsdkexample.R
12
+ import com.narratiive.narratiivesdk.NarratiiveSDK
12
13
13
14
class NotificationsFragment : Fragment () {
14
15
@@ -28,4 +29,9 @@ class NotificationsFragment : Fragment() {
28
29
})
29
30
return root
30
31
}
32
+
33
+ override fun onResume () {
34
+ super .onResume()
35
+ NarratiiveSDK .send(" /notification" )
36
+ }
31
37
}
You can’t perform that action at this time.
0 commit comments