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 16/** 17 * @file 18 * @kit FormKit 19 */ 20 21import UIExtensionContext from './UIExtensionContext'; 22import type Want from '../@ohos.app.ability.Want'; 23import type { AbilityResult } from '../ability/abilityResult'; 24 25/** 26 * The context of form edit extension. It allows access to 27 * formEditExtension-specific resources. 28 * 29 * @extends UIExtensionContext 30 * @syscap SystemCapability.Ability.Form 31 * @stagemodelonly 32 * @since 18 33 */ 34export default class FormEditExtensionContext extends UIExtensionContext { 35 /** 36 * Start second editor extension ability. 37 * 38 * @param { Want } want - Including second extension ability name. 39 * @returns { Promise<AbilityResult> } Returns the result of start second form editor extension ability. 40 * @throws { BusinessError } 202 - The application is not a system application. 41 * @throws { BusinessError } 16500050 - An IPC connection error happened. 42 * @throws { BusinessError } 16500100 - Failed to obtain the configuration information. 43 * @throws { BusinessError } 16501000 - An internal functional error occurred. 44 * @syscap SystemCapability.Ability.Form 45 * @stagemodelonly 46 * @since 18 47 */ 48 startSecondPage(want: Want): Promise<AbilityResult>; 49} 50