Exemple #1
0
 public static void OpenURL(string URL, DisplayOptions displayOptions)
 {
             #if UNITY_IOS && !UNITY_EDITOR
     iOSInAppBrowser.OpenURL(URL, displayOptions);
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.OpenURL(URL, displayOptions);
             #endif
 }
Exemple #2
0
 public static void ClearCache()
 {
             #if UNITY_IOS && !UNITY_EDITOR
     iOSInAppBrowser.ClearCache();
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.ClearCache();
             #endif
 }
Exemple #3
0
 public static void GoForward()
 {
             #if UNITY_IOS && !UNITY_EDITOR
     iOSInAppBrowser.GoForward();
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.GoForward();
             #endif
 }
Exemple #4
0
 public static void ExecuteJS(string JSCommand)
 {
             #if UNITY_IOS && !UNITY_EDITOR
     iOSInAppBrowser.ExecuteJS(JSCommand);
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.ExecuteJS(JSCommand);
             #endif
 }
Exemple #5
0
 public static void LoadHTML(string HTML, DisplayOptions options)
 {
             #if UNITY_IOS && !UNITY_EDITOR
     iOSInAppBrowser.LoadHTML(HTML, options);
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.LoadHTML(HTML, options);
             #endif
 }
Exemple #6
0
 public static bool IsInAppBrowserOpened()
 {
             #if UNITY_IOS && !UNITY_EDITOR
     return(iOSInAppBrowser.IsInAppBrowserOpened());
             #elif UNITY_ANDROID && !UNITY_EDITOR
     return(AndroidInAppBrowser.IsInAppBrowserOpened());
             #endif
     return(false);
 }
Exemple #7
0
 public static bool CanGoForward()
 {
             #if UNITY_IOS && !UNITY_EDITOR
     return(iOSInAppBrowser.CanGoForward());
             #elif UNITY_ANDROID && !UNITY_EDITOR
     return(AndroidInAppBrowser.CanGoForward());
             #endif
     return(false);
 }
Exemple #8
0
 public static void OpenLocalFile(string filePath, DisplayOptions displayOptions)
 {
             #if UNITY_IOS && !UNITY_EDITOR
     var path = InAppBrowser.PathCombine(Application.streamingAssetsPath, filePath);
     iOSInAppBrowser.OpenURL(path, displayOptions);
             #elif UNITY_ANDROID && !UNITY_EDITOR
     AndroidInAppBrowser.OpenURL(filePath, displayOptions);
             #endif
 }