/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using SafeExamBrowser.Applications.Contracts;
using SafeExamBrowser.Browser.Contracts.Events;
namespace SafeExamBrowser.Browser.Contracts
{
///
/// Controls the lifetime and functionality of the browser application.
///
public interface IBrowserApplication : IApplication
{
///
/// Event fired when the browser application detects a download request for an application configuration file.
///
event DownloadRequestedEventHandler ConfigurationDownloadRequested;
///
/// Event fired when the user tries to focus the taskbar.
///
event LoseFocusRequestedEventHandler LoseFocusRequested;
///
/// Event fired when the browser application detects a request to terminate SEB.
///
event TerminationRequestedEventHandler TerminationRequested;
///
/// Event fired when the browser application detects a user identifier of an LMS.
///
event UserIdentifierDetectedEventHandler UserIdentifierDetected;
///
/// Transfers the focus to the browser application. If the parameter is true, the first focusable element in the browser window
/// receives focus (passing forward of focus). Otherwise, the last element receives focus.
///
void Focus(bool forward);
}
}