Browse Source

StandalonePluginWindow: allow to customise kiosk mode enablement.

tags/2021-05-28
Lukasz Kozakiewicz 7 years ago
parent
commit
181f4ab7fc
3 changed files with 11 additions and 2 deletions
  1. +1
    -1
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp
  2. +0
    -1
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h
  3. +10
    -0
      modules/juce_audio_plugin_client/juce_audio_plugin_client.h

+ 1
- 1
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp View File

@@ -101,7 +101,7 @@ public:
{
mainWindow = createWindow();
#if JUCE_IOS || JUCE_ANDROID
#if JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE
Desktop::getInstance().setKioskModeComponent (mainWindow, false);
#endif


+ 0
- 1
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h View File

@@ -586,7 +586,6 @@ public:
#if JUCE_IOS || JUCE_ANDROID
setFullScreen (true);
setContentOwned (new MainContentComponent (*this), false);
Desktop::getInstance().setKioskModeComponent (this, false);
#else
setContentOwned (new MainContentComponent (*this), true);


+ 10
- 0
modules/juce_audio_plugin_client/juce_audio_plugin_client.h View File

@@ -91,5 +91,15 @@
#define JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS 1
#endif
/** Config: JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE
Enable this if you want your standalone plugin window to use kiosk mode.
By default, kiosk mode is enabled on iOS and Android.
*/
#ifndef JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE
#define JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE (JUCE_IOS || JUCE_ANDROID)
#endif
#include "utility/juce_PluginHostType.h"
#include "VST/juce_VSTCallbackHandler.h"

Loading…
Cancel
Save