@@ -18,7 +18,7 @@ typedef void (*IosPrepareRequestFn)(const char*);
1818
1919typedef void (*IosSetRequestHeaderFn)(const char *, const char *);
2020
21- typedef void (*IosPresentWebviewFn)(void );
21+ typedef void (*IosPresentWebviewFn)(bool );
2222
2323typedef void (*IosCloseWebviewFn)(void );
2424
@@ -82,6 +82,8 @@ typedef const char *(*GetDeviceCpuFn)(void);
8282
8383typedef const char *(*GetDeviceCodenameFn)(void );
8484
85+ typedef void (*IosWebviewChangeUrlFn)(const char *);
86+
8587
8688
8789
@@ -164,13 +166,13 @@ extern const int32_t OPACITY_ENVIRONMENT_STAGING;
164166
165167extern const int32_t OPACITY_ENVIRONMENT_PRODUCTION;
166168
167- int32_t init (const char *api_key_str,
168- bool dry_run,
169- int32_t backend_environment,
170- bool show_errors_in_webview,
171- char **error_ptr);
169+ int32_t opacity_init (const char *api_key_str,
170+ bool dry_run,
171+ int32_t backend_environment,
172+ bool show_errors_in_webview,
173+ char **error_ptr);
172174
173- int32_t get (const char *name, const char *params, char **res_ptr, char **err_ptr);
175+ int32_t opacity_get (const char *name, const char *params, char **res_ptr, char **err_ptr);
174176
175177void free_string (char *ptr);
176178
@@ -237,7 +239,8 @@ void register_ios_callbacks(IosPrepareRequestFn ios_prepare_request,
237239 GetScreenDensityFn get_screen_density,
238240 GetScreenDpiFn get_screen_dpi,
239241 GetDeviceCpuFn get_device_cpu,
240- GetDeviceCodenameFn get_device_codename);
242+ GetDeviceCodenameFn get_device_codename,
243+ IosWebviewChangeUrlFn ios_webview_change_url);
241244
242245extern void secure_set (const char *key, const char *value);
243246
@@ -247,14 +250,16 @@ extern void android_prepare_request(const char *url);
247250
248251extern void android_set_request_header (const char *key, const char *value);
249252
250- extern void android_present_webview (bool intercept_requests );
253+ extern void android_present_webview (bool should_intercept );
251254
252255extern void android_close_webview (void );
253256
254257extern const char *android_get_browser_cookies_for_current_url (void );
255258
256259extern const char *android_get_browser_cookies_for_domain (const char *domain);
257260
261+ extern void android_webview_change_url (const char *url);
262+
258263#ifdef __cplusplus
259264} // extern "C"
260265#endif // __cplusplus
0 commit comments