@kydronepilot/electron-winstore-auto-launch
Version:
Configure your Electron to start automatically when the user logs in
28 lines (27 loc) • 846 B
TypeScript
export declare enum StartupTaskState {
disabled = 0,
disabledByUser = 1,
enabled = 2
}
export interface StartupTask {
state: StartupTaskState;
taskId: String;
requestEnableAsync(callback: (error: Error, result: StartupTaskState) => void): void;
disable(): void;
}
export declare class WindowsStoreAutoLaunch {
/**
* Returns the windows.applicationModel namespace for this model. If the app is not
* running inside an appx container, this will fail.
*
* @returns windows.applicationModel namespace
*/
private static getAppModel;
/**
* Returns the specified startupTask.
*
* @param taskId - ID of the task to fetch
* @returns The task if one exists
*/
static getStartupTask(taskId: string): Promise<StartupTask | undefined>;
}