You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/classes/IterableConfig.ts
+43-35Lines changed: 43 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -129,15 +129,15 @@ export class IterableConfig {
129
129
* This example searches for URLs that contain product/, followed by more text. Upon finding this sequence of text, the code displays the appropriate screen and returns `true`. When it's not found, the app returns `false`.
130
130
*
131
131
* ```typescript
132
-
* const config = new IterableConfig();
133
-
*
134
-
* config.urlHandler = (url, context) => {
135
-
* if (url.match(/product\/([^\/]+)/i)) {
136
-
* this.navigate(match[1]);
137
-
* return true; // handled
138
-
* }
139
-
* return false; // not handled
140
-
* };
132
+
* const config = new IterableConfig({
133
+
* urlHandler: (url, context) => {
134
+
* if (url.match(/product\/([^\/]+)/i)) {
135
+
* this.navigate(match[1]);
136
+
* return true; // handled
137
+
* }
138
+
* return false; // not handled
139
+
* },
140
+
* });
141
141
*
142
142
* Iterable.initialize('<YOUR_API_KEY>', config);
143
143
* ```
@@ -174,16 +174,18 @@ export class IterableConfig {
174
174
* @example
175
175
* This example responds to the `action://achievedPremierStatus` custom action URL by updating the app's styles and return `true`. Since this is the only custom action handled by the method, it returns `false` for anything else.
0 commit comments