snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
51
react/features/web-hid/actions.ts
Normal file
51
react/features/web-hid/actions.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { CLOSE_HID_DEVICE, INIT_DEVICE, REQUEST_HID_DEVICE, UPDATE_DEVICE } from './actionTypes';
|
||||
import { IDeviceInfo } from './types';
|
||||
|
||||
/**
|
||||
* Action used to init device.
|
||||
*
|
||||
* @param {IDeviceInfo} deviceInfo - Telephony device information.
|
||||
* @returns {Object}
|
||||
*/
|
||||
export function initDeviceInfo(deviceInfo: IDeviceInfo) {
|
||||
return {
|
||||
type: INIT_DEVICE,
|
||||
deviceInfo
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Request hid device.
|
||||
*
|
||||
* @returns {Object}
|
||||
*/
|
||||
export function closeHidDevice() {
|
||||
return {
|
||||
type: CLOSE_HID_DEVICE
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Request hid device.
|
||||
*
|
||||
* @param {IDeviceInfo} deviceInfo - Telephony device information.
|
||||
* @returns {Object}
|
||||
*/
|
||||
export function requestHidDevice() {
|
||||
return {
|
||||
type: REQUEST_HID_DEVICE
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Action used to init device.
|
||||
*
|
||||
* @param {IDeviceInfo} deviceInfo - Telephony device information.
|
||||
* @returns {Object}
|
||||
*/
|
||||
export function updateDeviceInfo(deviceInfo: IDeviceInfo) {
|
||||
return {
|
||||
type: UPDATE_DEVICE,
|
||||
updates: deviceInfo
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user