@jitsi/electron-sdk
Version:
Utilities for jitsi-meet-electron project
54 lines (48 loc) • 1.22 kB
JavaScript
/**
* Types of METHODS.
*/
const METHODS = {
queryIdleState: 'query-system-idle-state',
queryIdleTime: 'query-system-idle-time'
};
/**
* The power monitor events.
* @type {{
* SUSPEND: string,
* LOCK_SCREEN: string,
* SHUTDOWN: string,
* ON_AC: string,
* ON_BATTERY: string,
* RESUME: string,
* UNLOCK_SCREEN: string}}
*/
const POWER_MONITOR_EVENTS = {
LOCK_SCREEN: 'lock-screen' ,
ON_AC: 'on-ac',
ON_BATTERY: 'on-battery',
RESUME: 'resume',
SHUTDOWN: 'shutdown',
SUSPEND: 'suspend',
UNLOCK_SCREEN: 'unlock-screen'
};
/**
* The name of power monitor messages exchanged with Jitsi Meet window.
*/
const POWER_MONITOR_MESSAGE_NAME = 'power-monitor';
/**
* The name of the channel that exchange events between render and main process.
* @type {string}
*/
const POWER_MONITOR_EVENTS_CHANNEL = 'power-monitor-events';
/**
* The name of the channel that is used to query power monitor from render to main process.
* @type {string}
*/
const POWER_MONITOR_QUERIES_CHANNEL = 'power-monitor-queries';
module.exports = {
POWER_MONITOR_EVENTS,
POWER_MONITOR_EVENTS_CHANNEL,
POWER_MONITOR_MESSAGE_NAME,
POWER_MONITOR_QUERIES_CHANNEL,
METHODS
};