Skip to content

Commit cc3c1e2

Browse files
authored
Merge pull request #346 from Countly/refreshcall
feat: refresh call to the example
2 parents 248c447 + d789aa8 commit cc3c1e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

example/lib/page_others.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ class OthersPage extends StatelessWidget {
9090
Countly.instance.content.exitContentZone();
9191
}
9292

93+
void refreshContentZone() {
94+
Countly.instance.content.refreshContentZone();
95+
}
96+
9397
@override
9498
Widget build(BuildContext context) {
9599
return Scaffold(
@@ -103,6 +107,7 @@ class OthersPage extends StatelessWidget {
103107
children: [
104108
MyButton(text: 'Enter Content Zone', color: 'olive', onPressed: enterContentZone),
105109
MyButton(text: 'Exit Content Zone', color: 'olive', onPressed: exitContentZone),
110+
MyButton(text: 'Refresh Content Zone', color: 'olive', onPressed: refreshContentZone),
106111
MyButton(text: 'Record Direct Attribution', color: 'olive', onPressed: recordDirectAttribution),
107112
MyButton(text: 'Record Indirect Attribution', color: 'olive', onPressed: recordIndirectAttribution),
108113
MyButton(text: 'Push Notification', color: 'blue', onPressed: askForNotificationPermission),

0 commit comments

Comments
 (0)