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 }
public static void ClearCache() { #if UNITY_IOS && !UNITY_EDITOR iOSInAppBrowser.ClearCache(); #elif UNITY_ANDROID && !UNITY_EDITOR AndroidInAppBrowser.ClearCache(); #endif }
public static void GoForward() { #if UNITY_IOS && !UNITY_EDITOR iOSInAppBrowser.GoForward(); #elif UNITY_ANDROID && !UNITY_EDITOR AndroidInAppBrowser.GoForward(); #endif }
public static void ExecuteJS(string JSCommand) { #if UNITY_IOS && !UNITY_EDITOR iOSInAppBrowser.ExecuteJS(JSCommand); #elif UNITY_ANDROID && !UNITY_EDITOR AndroidInAppBrowser.ExecuteJS(JSCommand); #endif }
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 }
public static bool IsInAppBrowserOpened() { #if UNITY_IOS && !UNITY_EDITOR return(iOSInAppBrowser.IsInAppBrowserOpened()); #elif UNITY_ANDROID && !UNITY_EDITOR return(AndroidInAppBrowser.IsInAppBrowserOpened()); #endif return(false); }
public static bool CanGoForward() { #if UNITY_IOS && !UNITY_EDITOR return(iOSInAppBrowser.CanGoForward()); #elif UNITY_ANDROID && !UNITY_EDITOR return(AndroidInAppBrowser.CanGoForward()); #endif return(false); }
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 }