/*
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
*
* 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.Contracts.Applications;
using SafeExamBrowser.Contracts.UserInterface.Shell.Events;
namespace SafeExamBrowser.Contracts.UserInterface.Shell
{
///
/// The control for a (third-party) application which can be loaded into the shell.
///
public interface IApplicationControl
{
///
/// Event fired when the user clicked on the application control. If multiple instances of an application are active,
/// the handler should only executed when the user selects one of the instances.
///
event ApplicationControlClickedEventHandler Clicked;
///
/// Registers a new instance of an application to be accessed via the application control.
///
void RegisterInstance(IApplicationInstance instance);
}
}