• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 NotifyType;
17import IFileAccessObserver;
18sequenceable Uri..OHOS.Uri;
19sequenceable FileAccessExtensionInfo..OHOS.FileAccessFwk.ConnectExtensionInfo;
20sequenceable Want..OHOS.AAFwk.Want;
21interface OHOS.FileAccessFwk.IFileAccessExtBase;
22interface OHOS.AAFwk.IAbilityConnection;
23interface OHOS.FileAccessFwk.IFileAccessServiceBase {
24    void RegisterNotify([in] Uri uri, [in] boolean notifyForDescendants, [in] IFileAccessObserver observer,
25        [in] ConnectExtensionInfo info);
26    void UnregisterNotify([in] Uri uri, [in] IFileAccessObserver observer, [in] ConnectExtensionInfo info);
27    void OnChange([in] Uri uri, [in] NotifyType notifyType);
28    void GetExtensionProxy([in] ConnectExtensionInfo info, [out] IFileAccessExtBase extensionProxy);
29    void ConnectFileExtAbility([in] Want want, [in] IAbilityConnection connection);
30    void DisConnectFileExtAbility([in] IAbilityConnection connection);
31    void UnregisterNotifyNoObserver([in] Uri uri, [in] ConnectExtensionInfo info);
32}