/** * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import Extension from '@ohos.application.DataShareExtensionAbility' export default class DataShareExtAbility extends Extension { private rdbStore_; onCreate(want) { console.log('[ttt] [TelephonyDataShare] <> DataShareExtAbility onCreate, want:' + want.abilityName); } getFileTypes(uri: string, mimeTypeFilter: string) { console.info('[ttt] [TelephonyDataShare] <> [getFileTypes] enter'); } insert(uri, value, callback) { console.info('[ttt] [TelephonyDataShare] <> [insert] enter'); } update(uri, value, predicates, callback) { console.info('[ttt] [TelephonyDataShare] <> [update] enter'); } delete(uri, predicates, callback) { console.info('[ttt] [TelephonyDataShare] <> [delete] enter'); } query(uri, columns, predicates, callback) { console.info('[ttt] [TelephonyDataShare] <> [query] enter'); } getType(uri: string) { console.info('[ttt] [TelephonyDataShare] <> [getType] enter'); } batchInsert(uri: string, valueBuckets, callback) { console.info('[ttt] [TelephonyDataShare] <> [batchInsert] enter'); } normalizeUri(uri: string) { console.info('[ttt] [TelephonyDataShare] <> [normalizeUri] enter'); } denormalizeUri(uri: string) { console.info('[ttt] [TelephonyDataShare] <> [denormalizeUri] enter'); } };