1/* 2 * Copyright (c) 2022-2023 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 AbilityKit 19 */ 20 21/** 22 * StartOptions is the basic communication component of the system. 23 * 24 * @syscap SystemCapability.Ability.AbilityRuntime.Core 25 * @StageModelOnly 26 * @since 9 27 */ 28/** 29 * StartOptions is the basic communication component of the system. 30 * 31 * @syscap SystemCapability.Ability.AbilityRuntime.Core 32 * @StageModelOnly 33 * @atomicservice 34 * @since 11 35 */ 36export default class StartOptions { 37 /** 38 * The type of {@link ohos.app.ability.AbilityConstant#WindowMode} 39 * 40 * @type { ?number } 41 * @syscap SystemCapability.Ability.AbilityRuntime.Core 42 * @systemapi 43 * @StageModelOnly 44 * @since 9 45 */ 46 windowMode?: number; 47 48 /** 49 * The type of displayId 50 * 51 * @type { ?number } 52 * @syscap SystemCapability.Ability.AbilityRuntime.Core 53 * @StageModelOnly 54 * @since 9 55 */ 56 /** 57 * The type of displayId 58 * 59 * @type { ?number } 60 * @syscap SystemCapability.Ability.AbilityRuntime.Core 61 * @StageModelOnly 62 * @atomicservice 63 * @since 11 64 */ 65 displayId?: number; 66 67 /** 68 * The target ability with animation or without 69 * 70 * @type { ?boolean } 71 * @syscap SystemCapability.Ability.AbilityRuntime.Core 72 * @StageModelOnly 73 * @since 11 74 */ 75 withAnimation?: boolean; 76 77 /** 78 * The left position of window rectangle 79 * 80 * @type { ?number } 81 * @syscap SystemCapability.Ability.AbilityRuntime.Core 82 * @StageModelOnly 83 * @since 11 84 */ 85 windowLeft?: number; 86 87 /** 88 * The top position of window rectangle 89 * 90 * @type { ?number } 91 * @syscap SystemCapability.Ability.AbilityRuntime.Core 92 * @StageModelOnly 93 * @since 11 94 */ 95 windowTop?: number; 96 97 /** 98 * The width of window rectangle 99 * 100 * @type { ?number } 101 * @syscap SystemCapability.Ability.AbilityRuntime.Core 102 * @StageModelOnly 103 * @since 11 104 */ 105 windowWidth?: number; 106 107 /** 108 * The height of window rectangle 109 * 110 * @type { ?number } 111 * @syscap SystemCapability.Ability.AbilityRuntime.Core 112 * @StageModelOnly 113 * @since 11 114 */ 115 windowHeight?: number; 116} 117