1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import IWatcher; 17 18interface OHOS.init_param.IWatcherManager { 19 void AddWatcher([in] String keyPrefix, [in] unsigned int remoteWatcherId); 20 void DelWatcher([in] String keyPrefix, [in] unsigned int remoteWatcherId); 21 void AddRemoteWatcher([in] unsigned int id, [out] unsigned int watcherId, [in] IWatcher watcher); 22 void DelRemoteWatcher([in] unsigned int remoteWatcherId); 23 void RefreshWatcher([in] String keyPrefix, [in] unsigned int remoteWatcherId); 24}