@@ -94,38 +94,38 @@ public void call(String message) {
94
94
95
95
#if UNITY_IPHONE && ! UNITY_EDITOR
96
96
[ DllImport ( "__Internal" ) ]
97
- private static extern IntPtr _CWebViewPlugin_Init ( string ua ) ;
97
+ private static extern IntPtr _CImmutableWebViewPlugin_Init ( string ua ) ;
98
98
[ DllImport ( "__Internal" ) ]
99
- private static extern int _CWebViewPlugin_Destroy ( IntPtr instance ) ;
99
+ private static extern int _CImmutableWebViewPlugin_Destroy ( IntPtr instance ) ;
100
100
[ DllImport ( "__Internal" ) ]
101
- private static extern void _CWebViewPlugin_LoadURL (
101
+ private static extern void _CImmutableWebViewPlugin_LoadURL (
102
102
IntPtr instance , string url ) ;
103
103
[ DllImport ( "__Internal" ) ]
104
- private static extern void _CWebViewPlugin_EvaluateJS (
104
+ private static extern void _CImmutableWebViewPlugin_EvaluateJS (
105
105
IntPtr instance , string url ) ;
106
106
[ DllImport ( "__Internal" ) ]
107
- private static extern void _CWebViewPlugin_LaunchAuthURL ( IntPtr instance , string url ) ;
107
+ private static extern void _CImmutableWebViewPlugin_LaunchAuthURL ( IntPtr instance , string url ) ;
108
108
[ DllImport ( "__Internal" ) ]
109
- private static extern void _CWebViewPlugin_SetDelegate ( DelegateMessage callback ) ;
109
+ private static extern void _CImmutableWebViewPlugin_SetDelegate ( DelegateMessage callback ) ;
110
110
[ DllImport ( "__Internal" ) ]
111
- private static extern void _CWebViewPlugin_ClearCache ( IntPtr instance , bool includeDiskFiles ) ;
111
+ private static extern void _CImmutableWebViewPlugin_ClearCache ( IntPtr instance , bool includeDiskFiles ) ;
112
112
[ DllImport ( "__Internal" ) ]
113
- private static extern void _CWebViewPlugin_ClearStorage ( IntPtr instance ) ;
113
+ private static extern void _CImmutableWebViewPlugin_ClearStorage ( IntPtr instance ) ;
114
114
#elif UNITY_STANDALONE_OSX || ( UNITY_ANDROID && UNITY_EDITOR_OSX ) || ( UNITY_IPHONE && UNITY_EDITOR_OSX )
115
115
[ DllImport ( "ImmutableWebView" ) ]
116
- private static extern IntPtr _CWebViewPlugin_Init ( string ua ) ;
116
+ private static extern IntPtr _CImmutableWebViewPlugin_Init ( string ua ) ;
117
117
[ DllImport ( "ImmutableWebView" ) ]
118
- private static extern int _CWebViewPlugin_Destroy ( IntPtr instance ) ;
118
+ private static extern int _CImmutableWebViewPlugin_Destroy ( IntPtr instance ) ;
119
119
[ DllImport ( "ImmutableWebView" ) ]
120
- private static extern void _CWebViewPlugin_LoadURL (
120
+ private static extern void _CImmutableWebViewPlugin_LoadURL (
121
121
IntPtr instance , string url ) ;
122
122
[ DllImport ( "ImmutableWebView" ) ]
123
- private static extern void _CWebViewPlugin_EvaluateJS (
123
+ private static extern void _CImmutableWebViewPlugin_EvaluateJS (
124
124
IntPtr instance , string url ) ;
125
125
[ DllImport ( "ImmutableWebView" ) ]
126
- private static extern void _CWebViewPlugin_LaunchAuthURL ( IntPtr instance , string url , string redirectUri ) ;
126
+ private static extern void _CImmutableWebViewPlugin_LaunchAuthURL ( IntPtr instance , string url , string redirectUri ) ;
127
127
[ DllImport ( "ImmutableWebView" ) ]
128
- private static extern void _CWebViewPlugin_SetDelegate ( DelegateMessage callback ) ;
128
+ private static extern void _CImmutableWebViewPlugin_SetDelegate ( DelegateMessage callback ) ;
129
129
#elif UNITY_WEBGL
130
130
[ DllImport ( "__Internal" ) ]
131
131
private static extern void _gree_unity_webview_init ( ) ;
@@ -238,13 +238,13 @@ public void Init(
238
238
//TODO: UNSUPPORTED
239
239
PassportLogger . Error ( "Webview is not supported on this platform." ) ;
240
240
#elif UNITY_IPHONE || UNITY_STANDALONE_OSX || ( UNITY_ANDROID && UNITY_EDITOR_OSX )
241
- webView = _CWebViewPlugin_Init ( ua ) ;
241
+ webView = _CImmutableWebViewPlugin_Init ( ua ) ;
242
242
Singleton . Instance . onJS = ( ( message ) => CallFromJS ( message ) ) ;
243
243
Singleton . Instance . onError = ( ( id , message ) => CallOnError ( id , message ) ) ;
244
244
Singleton . Instance . onHttpError = ( ( id , message ) => CallOnHttpError ( id , message ) ) ;
245
245
Singleton . Instance . onAuth = ( ( message ) => CallOnAuth ( message ) ) ;
246
246
Singleton . Instance . onLog = ( ( message ) => CallOnLog ( message ) ) ;
247
- _CWebViewPlugin_SetDelegate ( delegateMessageReceived ) ;
247
+ _CImmutableWebViewPlugin_SetDelegate ( delegateMessageReceived ) ;
248
248
#elif UNITY_ANDROID
249
249
webView = new AndroidJavaObject ( "net.gree.unitywebview.CWebViewPluginNoUi" ) ;
250
250
webView . Call ( "Init" , ua ) ;
@@ -269,7 +269,7 @@ public void LoadURL(string url)
269
269
#elif UNITY_STANDALONE_OSX || UNITY_IPHONE || ( UNITY_ANDROID && UNITY_EDITOR_OSX )
270
270
if ( webView == IntPtr . Zero )
271
271
return ;
272
- _CWebViewPlugin_LoadURL ( webView , url ) ;
272
+ _CImmutableWebViewPlugin_LoadURL ( webView , url ) ;
273
273
#elif UNITY_ANDROID
274
274
if ( webView == null )
275
275
return ;
@@ -290,7 +290,7 @@ public void EvaluateJS(string js)
290
290
#elif UNITY_STANDALONE_OSX || UNITY_IPHONE || ( UNITY_ANDROID && UNITY_EDITOR_OSX )
291
291
if ( webView == IntPtr . Zero )
292
292
return ;
293
- _CWebViewPlugin_EvaluateJS ( webView , js ) ;
293
+ _CImmutableWebViewPlugin_EvaluateJS ( webView , js ) ;
294
294
#elif UNITY_ANDROID
295
295
if ( webView == null )
296
296
return ;
@@ -303,11 +303,11 @@ public void LaunchAuthURL(string url, string redirectUri)
303
303
#if UNITY_STANDALONE_OSX || ( UNITY_ANDROID && UNITY_EDITOR_OSX ) || ( UNITY_IPHONE && UNITY_EDITOR_OSX )
304
304
if ( webView == IntPtr . Zero )
305
305
return ;
306
- _CWebViewPlugin_LaunchAuthURL ( webView , url , redirectUri != null ? redirectUri : "" ) ;
306
+ _CImmutableWebViewPlugin_LaunchAuthURL ( webView , url , redirectUri != null ? redirectUri : "" ) ;
307
307
#elif UNITY_IPHONE && ! UNITY_EDITOR_WIN
308
308
if ( webView == IntPtr . Zero )
309
309
return ;
310
- _CWebViewPlugin_LaunchAuthURL ( webView , url ) ;
310
+ _CImmutableWebViewPlugin_LaunchAuthURL ( webView , url ) ;
311
311
#else
312
312
UnityEngine . Application . OpenURL ( url ) ;
313
313
#endif
@@ -365,7 +365,7 @@ public void ClearCache(bool includeDiskFiles)
365
365
#if UNITY_IPHONE && ! UNITY_EDITOR
366
366
if ( webView == IntPtr . Zero )
367
367
return ;
368
- _CWebViewPlugin_ClearCache ( webView , includeDiskFiles ) ;
368
+ _CImmutableWebViewPlugin_ClearCache ( webView , includeDiskFiles ) ;
369
369
#elif UNITY_ANDROID && ! UNITY_EDITOR
370
370
if ( webView == null )
371
371
return ;
@@ -380,7 +380,7 @@ public void ClearStorage()
380
380
#if UNITY_IPHONE && ! UNITY_EDITOR
381
381
if ( webView == IntPtr . Zero )
382
382
return ;
383
- _CWebViewPlugin_ClearStorage ( webView ) ;
383
+ _CImmutableWebViewPlugin_ClearStorage ( webView ) ;
384
384
#elif UNITY_ANDROID && ! UNITY_EDITOR
385
385
if ( webView == null )
386
386
return ;
0 commit comments