snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
37
react/features/power-monitor/actions.ts
Normal file
37
react/features/power-monitor/actions.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
// @ts-expect-error
|
||||
import { Transport } from '../../../modules/transport';
|
||||
|
||||
import {
|
||||
SET_TRANSPORT,
|
||||
SUSPEND_DETECTED
|
||||
} from './actionTypes';
|
||||
|
||||
/**
|
||||
* Signals that suspend was detected.
|
||||
*
|
||||
* @public
|
||||
* @returns {{
|
||||
* type: SUSPEND_DETECTED
|
||||
* }}
|
||||
*/
|
||||
export function suspendDetected() {
|
||||
return {
|
||||
type: SUSPEND_DETECTED
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Signals setting of a transport.
|
||||
*
|
||||
* @param {Transport} transport - The transport to save in the state.
|
||||
* @returns {{
|
||||
* transport: Transport,
|
||||
* type: string
|
||||
* }}
|
||||
*/
|
||||
export function setTransport(transport?: Transport) {
|
||||
return {
|
||||
type: SET_TRANSPORT,
|
||||
transport
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user