Help Center/ Meeting/ Client SDK Reference/ Electron SDK/ APIs/ Common Configuration Management Objects/ Subscribing to Notifications of User Data Path Changes
Updated on 2024-12-27 GMT+08:00

Subscribing to Notifications of User Data Path Changes

Function

A notification is sent when the user data path is changed. (This API is valid only for the Windows platform.)

Function Prototype

setOnUserSavePathChangedCB(onUserSavePathChanged: (userSavePathInfo: UserSavePathInfo) => void): voidsetOnUserSavePathChangedCB(onUserSavePathChanged: (userSavePathInfo: UserSavePathInfo) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onUserSavePathChanged Yes (userSavePathInfo: UserSavePathInfo) => void A notification is sent when the user data path is changed. (This parameter is valid only for the Windows platform.)

Return Values

void

Notification Method Parameters

(userSavePathInfo: UserSavePathInfo) => void

Table 2 Input parameter description
Parameter Type Description
userSavePathInfo UserSavePathInfo Path information.
Table 3 UserSavePathInfo
Parameter Type Description
pathType SavePathType Save path type.
path string Save path. The value is an absolute path and must be encoded in UTF-8.
Table 4 Enumerated values of SavePathType
Enumeration Name Enumerated Value Description
HWM_SAVE_PATH_LOCAL_RECORD 0 Path for storing local recording files.