/** * Checks if a compatible Jibe Realtime Engine is installed on the device and whether the minimum * version requirement is met. * * @return boolean isInstalled */ public static bool isCompatibleRealtimeEngineInstalled() { #if UNITY_EDITOR return true; #elif UNITY_ANDROID JibeApiBridge bridge = new JibeApiBridge(); AndroidJavaClass jc = new AndroidJavaClass("jibe.sdk.client.simple.arena.ArenaHelper"); return jc.CallStatic<bool>("isCompatibleRealtimeEngineInstalled", bridge.getContext()); #else return true; #endif }
/** * Opens the Google Play application to the download page for the Jibe Realtime Engine * */ public static void openGoolePlayPage() { #if UNITY_EDITOR return; #elif UNITY_ANDROID JibeApiBridge bridge = new JibeApiBridge(); AndroidJavaClass jc = new AndroidJavaClass("jibe.sdk.client.simple.arena.ArenaHelper"); jc.CallStatic("openGooglePlayPage", bridge.getContext()); #else return true; #endif }