From 01d90a33538211120292b5f833eb7b53dc0524da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=96=87=E9=BE=99?= Date: Sat, 12 Oct 2024 16:50:14 +0800 Subject: [PATCH] bugfix:fenceextension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李文龙 --- api/@ohos.app.ability.FenceExtensionAbility.d.ts | 8 ++++---- api/@ohos.app.ability.FenceExtensionContext.d.ts | 5 ++--- api/@ohos.bundle.bundleManager.d.ts | 8 -------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/api/@ohos.app.ability.FenceExtensionAbility.d.ts b/api/@ohos.app.ability.FenceExtensionAbility.d.ts index 4c8374504..14842b29c 100644 --- a/api/@ohos.app.ability.FenceExtensionAbility.d.ts +++ b/api/@ohos.app.ability.FenceExtensionAbility.d.ts @@ -25,7 +25,7 @@ import geoLocationManager from './@ohos.geoLocationManager'; * Class of fence extension ability. * * @syscap SystemCapability.Location.Location.Geofence - * @since 5.0.0(12) + * @since 13 */ export default class FenceExtensionAbility { /** @@ -33,7 +33,7 @@ export default class FenceExtensionAbility { * * @type { FenceExtensionContext } * @syscap SystemCapability.Location.Location.Geofence - * @since 12 + * @since 13 */ context: FenceExtensionContext; @@ -43,7 +43,7 @@ export default class FenceExtensionAbility { * @param { geoLocationManager.GeofenceTransition } transition - Geofence transition status * @param { Record } additions - Indicates additional information * @syscap SystemCapability.Location.Location.Geofence - * @since 12 + * @since 13 */ onFenceStatusChange(transition: geoLocationManager.GeofenceTransition, additions: Record): void; @@ -51,7 +51,7 @@ export default class FenceExtensionAbility { * Called back before a fence extension is destroyed. * * @syscap SystemCapability.Location.Location.Geofence - * @since 12 + * @since 13 */ onDestroy(): void; } diff --git a/api/@ohos.app.ability.FenceExtensionContext.d.ts b/api/@ohos.app.ability.FenceExtensionContext.d.ts index 079b3f129..ca7fdfc08 100644 --- a/api/@ohos.app.ability.FenceExtensionContext.d.ts +++ b/api/@ohos.app.ability.FenceExtensionContext.d.ts @@ -26,7 +26,7 @@ import type Want from './@ohos.app.ability.Want'; * * @extends ExtensionContext * @syscap SystemCapability.Location.Location.Geofence - * @since 12 + * @since 13 */ export default class FenceExtensionContext extends ExtensionContext { /** @@ -38,7 +38,6 @@ export default class FenceExtensionContext extends ExtensionContext { * * @param { Want } want - Indicates the want info to start. * @returns { Promise } The promise returned by the function. - * @throws { BusinessError } 201 - The application does not have permission to call the interface. * @throws { BusinessError } 202 - The application is not system-app, can not use system-api. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @throws { BusinessError } 16000001 - The specified ability does not exist. @@ -56,7 +55,7 @@ export default class FenceExtensionContext extends ExtensionContext { * @syscap SystemCapability.Location.Location.Geofence * @systemapi * @stagemodelonly - * @since 12 + * @since 13 */ startAbility(want: Want): Promise; } diff --git a/api/@ohos.bundle.bundleManager.d.ts b/api/@ohos.bundle.bundleManager.d.ts index 098856aa0..6bdb8e280 100644 --- a/api/@ohos.bundle.bundleManager.d.ts +++ b/api/@ohos.bundle.bundleManager.d.ts @@ -662,14 +662,6 @@ declare namespace bundleManager { */ INSIGHT_INTENT_UI = 22, - /** - * Indicates extension info with type of fence - * - * @syscap SystemCapability.BundleManager.BundleFramework.Core - * @since 12 - */ - FENCE = 24, - /** * Indicates extension info with type of unspecified *