protected override void OnCreate(Bundle savedInstanceState) { Log.Debug(TAG, "onCreate()"); base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); // Force the controller into a full screen view Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen); RequestWindowFeature(WindowFeatures.NoTitle); var uiOptions = SystemUiFlags.HideNavigation | SystemUiFlags.LayoutHideNavigation | SystemUiFlags.LayoutFullscreen | SystemUiFlags.Fullscreen | SystemUiFlags.LayoutStable | SystemUiFlags.ImmersiveSticky; Window.DecorView.SystemUiVisibility = (StatusBarVisibility)uiOptions; keyboardView = LayoutInflater.Inflate(SwSettings.GetSelectedLayout(), null); keyboardView.SetMinimumHeight(MULTI_DISPLAY_HEIGHT_PX); SetContentView(keyboardView); SwDisplayManager.StartSwDisplayManager(); SetInputListeners((ViewGroup)keyboardView); instance = this; }
protected override void OnStart() { base.OnStart(); SwDisplayManager.StartSwDisplayManager(); RequestAllPermissions(); RegisterReceiver(new SwBootReceiver(), new IntentFilter(Intent.ActionScreenOn)); RegisterReceiver(new SwBootReceiver(), new IntentFilter(Intent.ActionUserUnlocked)); RegisterReceiver(new SwBootReceiver(), new IntentFilter(Intent.ActionBootCompleted)); donation.Start(); EnsureSwAccessibility(); }
public SwDisplayManager() { Log.Debug(TAG, "SwDisplayManager"); lg_display_manager = new DisplayManagerHelper(this); instance = this; dispatcher = SwSystem.MessageDispatcher.GetInstance(); dispatcher.Subscribe(SwSystem.MessageType.DisplayUpdate, this); dispatcher.Subscribe(SwSystem.MessageType.ShowIme, this); dispatcher.Subscribe(SwSystem.MessageType.AudioUpdate, this); swivel_state_cb = new LgSwivelStateCallback(); lg_display_manager.RegisterSwivelStateCallback(swivel_state_cb); OPEN_SOUND_PATH = SwSettings.GetOpenSoundPath(); CLOSE_SOUND_PATH = SwSettings.GetCloseSoundPath(); }
public override void OnReceive(Context context, Intent intent) { SwDisplayManager.StartSwDisplayManager(context); }