bugfix:fenceextension

Signed-off-by: 李文龙 <liwenlong22@huawei.com>
This commit is contained in:
李文龙 2024-10-12 16:50:14 +08:00
parent ad10f1b834
commit 01d90a3353
3 changed files with 6 additions and 15 deletions

View File

@ -25,7 +25,7 @@ import geoLocationManager from './@ohos.geoLocationManager';
* Class of fence extension ability. * Class of fence extension ability.
* *
* @syscap SystemCapability.Location.Location.Geofence * @syscap SystemCapability.Location.Location.Geofence
* @since 5.0.0(12) * @since 13
*/ */
export default class FenceExtensionAbility { export default class FenceExtensionAbility {
/** /**
@ -33,7 +33,7 @@ export default class FenceExtensionAbility {
* *
* @type { FenceExtensionContext } * @type { FenceExtensionContext }
* @syscap SystemCapability.Location.Location.Geofence * @syscap SystemCapability.Location.Location.Geofence
* @since 12 * @since 13
*/ */
context: FenceExtensionContext; context: FenceExtensionContext;
@ -43,7 +43,7 @@ export default class FenceExtensionAbility {
* @param { geoLocationManager.GeofenceTransition } transition - Geofence transition status * @param { geoLocationManager.GeofenceTransition } transition - Geofence transition status
* @param { Record<string, string> } additions - Indicates additional information * @param { Record<string, string> } additions - Indicates additional information
* @syscap SystemCapability.Location.Location.Geofence * @syscap SystemCapability.Location.Location.Geofence
* @since 12 * @since 13
*/ */
onFenceStatusChange(transition: geoLocationManager.GeofenceTransition, additions: Record<string, string>): void; onFenceStatusChange(transition: geoLocationManager.GeofenceTransition, additions: Record<string, string>): void;
@ -51,7 +51,7 @@ export default class FenceExtensionAbility {
* Called back before a fence extension is destroyed. * Called back before a fence extension is destroyed.
* *
* @syscap SystemCapability.Location.Location.Geofence * @syscap SystemCapability.Location.Location.Geofence
* @since 12 * @since 13
*/ */
onDestroy(): void; onDestroy(): void;
} }

View File

@ -26,7 +26,7 @@ import type Want from './@ohos.app.ability.Want';
* *
* @extends ExtensionContext * @extends ExtensionContext
* @syscap SystemCapability.Location.Location.Geofence * @syscap SystemCapability.Location.Location.Geofence
* @since 12 * @since 13
*/ */
export default class FenceExtensionContext extends ExtensionContext { 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. * @param { Want } want - Indicates the want info to start.
* @returns { Promise<void> } The promise returned by the function. * @returns { Promise<void> } 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 } 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 } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types.
* @throws { BusinessError } 16000001 - The specified ability does not exist. * @throws { BusinessError } 16000001 - The specified ability does not exist.
@ -56,7 +55,7 @@ export default class FenceExtensionContext extends ExtensionContext {
* @syscap SystemCapability.Location.Location.Geofence * @syscap SystemCapability.Location.Location.Geofence
* @systemapi * @systemapi
* @stagemodelonly * @stagemodelonly
* @since 12 * @since 13
*/ */
startAbility(want: Want): Promise<void>; startAbility(want: Want): Promise<void>;
} }

View File

@ -662,14 +662,6 @@ declare namespace bundleManager {
*/ */
INSIGHT_INTENT_UI = 22, 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 * Indicates extension info with type of unspecified
* *