public void debug (String message) { if (level >= DEBUG) Gdx.app.debug(tag, message); }
public void debug (String message, Exception exception) { if (level >= DEBUG) Gdx.app.debug(tag, message, exception); }
public void debug (String message, Exception exception) { if (level >= DEBUG) Gdx.app.debug(tag, message, exception); }
public void debug (String message) { if (level >= DEBUG) Gdx.app.debug(tag, message); }
@Override public void run() { if (!nsDictionary.writeToFileAtomically(file.getAbsolutePath(), false)) { Gdx.app.debug("IOSPreferences", "Failed to write NSDictionary to file " + file); } } });
@Override public void run() { if (!nsDictionary.writeToFileAtomically(file.getAbsolutePath(), false)) { Gdx.app.debug("IOSPreferences", "Failed to write NSDictionary to file " + file); } } });
final void willResignActive (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "paused"); graphics.makeCurrent(); graphics.pause(); Gdx.gl.glFinish(); }
final void willResignActive (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "paused"); graphics.makeCurrent(); graphics.pause(); Gdx.gl.glFinish(); }
@Override public void flush () { NSAutoreleasePool pool = new NSAutoreleasePool(); if (!nsDictionary.write(file, false)) { Gdx.app.debug("IOSPreferences", "Failed to write NSDictionary to file " + file); } pool.close(); } }
@Override public void flush () { NSAutoreleasePool pool = new NSAutoreleasePool(); if (!nsDictionary.write(file, false)) { Gdx.app.debug("IOSPreferences", "Failed to write NSDictionary to file " + file); } pool.close(); } }
final void willResignActive (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "paused"); graphics.makeCurrent(); graphics.pause(); Gdx.gl.glFinish(); }
final void willResignActive (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "paused"); graphics.makeCurrent(); graphics.pause(); Gdx.gl.glFinish(); }
final void willTerminate (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "disposed"); graphics.makeCurrent(); Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); } } listener.dispose(); Gdx.gl.glFinish(); }
final void willTerminate (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "disposed"); graphics.makeCurrent(); Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); } } listener.dispose(); Gdx.gl.glFinish(); }
final void willTerminate (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "disposed"); graphics.makeCurrent(); Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); } } listener.dispose(); Gdx.gl.glFinish(); }
final void willTerminate (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "disposed"); graphics.makeCurrent(); Array<LifecycleListener> listeners = lifecycleListeners; synchronized (listeners) { for (LifecycleListener listener : listeners) { listener.pause(); } } listener.dispose(); Gdx.gl.glFinish(); }
final boolean didFinishLaunching (UIApplication uiApp, NSDictionary<?, ?> launchOptions) { this.uiApp = uiApp; init(); this.uiWindow = UIWindow.alloc().initWithFrame(UIScreen.mainScreen().bounds()); this.uiWindow.setRootViewController(this.graphics.viewController); this.uiWindow.makeKeyAndVisible(); Gdx.app.debug("IOSApplication", "created"); return true; }
final boolean didFinishLaunching (UIApplication uiApp, NSDictionary<?, ?> launchOptions) { this.uiApp = uiApp; init(); this.uiWindow = UIWindow.alloc().initWithFrame(UIScreen.mainScreen().bounds()); this.uiWindow.setRootViewController(this.graphics.viewController); this.uiWindow.makeKeyAndVisible(); Gdx.app.debug("IOSApplication", "created"); return true; }
final void didBecomeActive (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "resumed"); // workaround for ObjectAL crash problem // see: https://groups.google.com/forum/?fromgroups=#!topic/objectal-for-iphone/ubRWltp_i1Q OALAudioSession audioSession = OALAudioSession.sharedInstance(); if (audioSession != null) { audioSession.forceEndInterruption(); } if (config.allowIpod) { OALSimpleAudio audio = OALSimpleAudio.sharedInstance(); if (audio != null) { audio.setUseHardwareIfAvailable(false); } } graphics.makeCurrent(); graphics.resume(); }
final void didBecomeActive (UIApplication uiApp) { Gdx.app.debug("IOSApplication", "resumed"); // workaround for ObjectAL crash problem // see: https://groups.google.com/forum/?fromgroups=#!topic/objectal-for-iphone/ubRWltp_i1Q OALAudioSession audioSession = OALAudioSession.sharedInstance(); if (audioSession != null) { audioSession.forceEndInterruption(); } if (config.allowIpod) { OALSimpleAudio audio = OALSimpleAudio.sharedInstance(); if (audio != null) { audio.setUseHardwareIfAvailable(false); } } graphics.makeCurrent(); graphics.resume(); }