1/** 2 * Copyright (c) 2022 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 Extension from '@ohos.application.DataShareExtensionAbility' 17 18export default class DataShareExtAbility extends Extension { 19 private rdbStore_; 20 21 onCreate(want) { 22 console.log('[ttt] [TelephonyDataShare] <<Provider>> DataShareExtAbility onCreate, want:' + want.abilityName); 23 } 24 25 getFileTypes(uri: string, mimeTypeFilter: string) { 26 console.info('[ttt] [TelephonyDataShare] <<Provider>> [getFileTypes] enter'); 27 } 28 29 insert(uri, value, callback) { 30 console.info('[ttt] [TelephonyDataShare] <<Provider>> [insert] enter'); 31 } 32 33 update(uri, value, predicates, callback) { 34 console.info('[ttt] [TelephonyDataShare] <<Provider>> [update] enter'); 35 } 36 37 delete(uri, predicates, callback) { 38 console.info('[ttt] [TelephonyDataShare] <<Provider>> [delete] enter'); 39 } 40 41 query(uri, columns, predicates, callback) { 42 console.info('[ttt] [TelephonyDataShare] <<Provider>> [query] enter'); 43 } 44 45 getType(uri: string) { 46 console.info('[ttt] [TelephonyDataShare] <<Provider>> [getType] enter'); 47 } 48 49 batchInsert(uri: string, valueBuckets, callback) { 50 console.info('[ttt] [TelephonyDataShare] <<Provider>> [batchInsert] enter'); 51 } 52 53 normalizeUri(uri: string) { 54 console.info('[ttt] [TelephonyDataShare] <<Provider>> [normalizeUri] enter'); 55 } 56 57 denormalizeUri(uri: string) { 58 console.info('[ttt] [TelephonyDataShare] <<Provider>> [denormalizeUri] enter'); 59 } 60}; 61