@@ -25,14 +25,12 @@ class IterableConfig {
25
25
* Note: Don't specify this value unless you are using an older Iterable push integration that
26
26
* has a custom name. To view your existing integrations, navigate to Settings > Mobile Apps.
27
27
*/
28
-
29
28
pushIntegrationName ?: string
30
29
31
30
/**
32
31
* When set to true (which is the default value), IterableSDK will automatically register and deregister
33
32
* notification tokens when you provide email or userId values to the SDK using Iterable.setEmail or Iterable.setUserId.
34
33
*/
35
-
36
34
autoPushRegistration = true
37
35
38
36
/**
@@ -45,19 +43,16 @@ class IterableConfig {
45
43
* Number of seconds to wait when displaying multiple in-app messages in sequence.
46
44
* between each. Defaults to 30 seconds.
47
45
*/
48
-
49
46
inAppDisplayInterval : number = 30.0
50
47
51
48
/**
52
49
* A callback function used to handle deep link URLs and in-app message button and link URLs.
53
50
*/
54
-
55
51
urlHandler ?: ( url : string , context : IterableActionContext ) => boolean
56
52
57
53
/**
58
54
* A function expression used to handle `action://` URLs for in-app buttons and links.
59
55
*/
60
-
61
56
customActionHandler ?: ( action : IterableAction , context : IterableActionContext ) => boolean
62
57
63
58
/**
@@ -75,7 +70,6 @@ class IterableConfig {
75
70
* React Native SDK. Provide an implementation for this method only if your app uses a
76
71
* JWT-enabled API key.
77
72
*/
78
-
79
73
authHandler ?:( ) => Promise < AuthResponse | String | undefined >
80
74
81
75
/**
@@ -89,30 +83,37 @@ class IterableConfig {
89
83
* This is for calls within the React Native layer, and is separate from `logLevel`
90
84
* which affects the Android and iOS native SDKs
91
85
*/
92
-
93
86
logReactNativeSdkCalls : boolean = true
94
87
95
88
/**
96
89
* The number of seconds before the current JWT's expiration that the SDK should call the
97
90
* authHandler to get an updated JWT.
98
91
*/
99
-
100
92
expiringAuthTokenRefreshPeriod : number = 60.0
101
93
102
94
/**
103
95
* Use this array to declare the specific URL protocols that the SDK can expect to see on incoming
104
96
* links from Iterable, so it knows that it can safely handle them as needed. This array helps
105
97
* prevent the SDK from opening links that use unexpected URL protocols.
106
98
*/
107
-
108
99
allowedProtocols : Array < string > = [ ]
109
100
110
101
/**
102
+ * DEPRECATED - please use `useInMemoryStorageForInApps` as a replacement for this config option.
103
+ *
104
+ * NOTE: until this option is removed, it will still function with `useInMemoryStorageForInApps` by
105
+ * doing an OR operation, so if either this or `useInMemoryStorageForInApps` are set to `true`,
106
+ * the native Android SDK layer will use in memory storage for in-apps.
107
+ *
111
108
* This specifies the `useInMemoryStorageForInApps` config option downstream to the Android SDK layer.
112
- * Please read the `IterableConfig` file for specific details on this config option.
113
109
*/
110
+ androidSdkUseInMemoryStorageForInApps : boolean = false
114
111
115
- androidSdkUseInMemoryStorageForInApps : boolean = false
112
+ /**
113
+ * This specifies the `useInMemoryStorageForInApps` config option downstream to the native SDK layers.
114
+ * Please read the respective `IterableConfig` files for specific details on this config option.
115
+ */
116
+ useInMemoryStorageForInApps : boolean = false
116
117
117
118
toDict ( ) : any {
118
119
return {
@@ -126,7 +127,8 @@ class IterableConfig {
126
127
"logLevel" : this . logLevel ,
127
128
"expiringAuthTokenRefreshPeriod" : this . expiringAuthTokenRefreshPeriod ,
128
129
"allowedProtocols" : this . allowedProtocols ,
129
- "androidSdkUseInMemoryStorageForInApps" : this . androidSdkUseInMemoryStorageForInApps
130
+ "androidSdkUseInMemoryStorageForInApps" : this . androidSdkUseInMemoryStorageForInApps ,
131
+ "useInMemoryStorageForInApps" : this . useInMemoryStorageForInApps
130
132
}
131
133
}
132
134
}
0 commit comments