161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2022-2024 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit AbilityKit
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ciimport contextConstant from "./@ohos.app.ability.contextConstant";
2261847f8eSopenharmony_ciimport image from "./@ohos.multimedia.image";
2361847f8eSopenharmony_ci
2461847f8eSopenharmony_ci/**
2561847f8eSopenharmony_ci * StartOptions is the basic communication component of the system.
2661847f8eSopenharmony_ci *
2761847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.Core
2861847f8eSopenharmony_ci * @stagemodelonly
2961847f8eSopenharmony_ci * @since 9
3061847f8eSopenharmony_ci */
3161847f8eSopenharmony_ci/**
3261847f8eSopenharmony_ci * StartOptions is the basic communication component of the system.
3361847f8eSopenharmony_ci *
3461847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.Core
3561847f8eSopenharmony_ci * @stagemodelonly
3661847f8eSopenharmony_ci * @atomicservice
3761847f8eSopenharmony_ci * @since 11
3861847f8eSopenharmony_ci */
3961847f8eSopenharmony_ciexport default class StartOptions {
4061847f8eSopenharmony_ci  /**
4161847f8eSopenharmony_ci   * The type of {@link ohos.app.ability.AbilityConstant#WindowMode}
4261847f8eSopenharmony_ci   * {@link ohos.app.ability.AbilityConstant#WindowMode.WINDOW_MODE_SPLIT_PRIMARY} and
4361847f8eSopenharmony_ci   * {@link ohos.app.ability.AbilityConstant#WindowMode.WINDOW_MODE_SPLIT_SECONDARY} are
4461847f8eSopenharmony_ci   * valid only in intra-app redirection scenarios.
4561847f8eSopenharmony_ci   *
4661847f8eSopenharmony_ci   * @type { ?number }
4761847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
4861847f8eSopenharmony_ci   * @stagemodelonly
4961847f8eSopenharmony_ci   * @since 12
5061847f8eSopenharmony_ci   */
5161847f8eSopenharmony_ci  windowMode?: number;
5261847f8eSopenharmony_ci
5361847f8eSopenharmony_ci  /**
5461847f8eSopenharmony_ci   * The type of displayId
5561847f8eSopenharmony_ci   *
5661847f8eSopenharmony_ci   * @type { ?number }
5761847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
5861847f8eSopenharmony_ci   * @stagemodelonly
5961847f8eSopenharmony_ci   * @since 9
6061847f8eSopenharmony_ci   */
6161847f8eSopenharmony_ci  /**
6261847f8eSopenharmony_ci   * The type of displayId
6361847f8eSopenharmony_ci   *
6461847f8eSopenharmony_ci   * @type { ?number }
6561847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
6661847f8eSopenharmony_ci   * @stagemodelonly
6761847f8eSopenharmony_ci   * @atomicservice
6861847f8eSopenharmony_ci   * @since 11
6961847f8eSopenharmony_ci   */
7061847f8eSopenharmony_ci  displayId?: number;
7161847f8eSopenharmony_ci
7261847f8eSopenharmony_ci  /**
7361847f8eSopenharmony_ci   * The target ability with animation or without
7461847f8eSopenharmony_ci   *
7561847f8eSopenharmony_ci   * @type { ?boolean }
7661847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
7761847f8eSopenharmony_ci   * @stagemodelonly
7861847f8eSopenharmony_ci   * @since 11
7961847f8eSopenharmony_ci   */
8061847f8eSopenharmony_ci  withAnimation?: boolean;
8161847f8eSopenharmony_ci
8261847f8eSopenharmony_ci  /**
8361847f8eSopenharmony_ci   * The left position of window rectangle
8461847f8eSopenharmony_ci   *
8561847f8eSopenharmony_ci   * @type { ?number }
8661847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
8761847f8eSopenharmony_ci   * @stagemodelonly
8861847f8eSopenharmony_ci   * @since 11
8961847f8eSopenharmony_ci   */
9061847f8eSopenharmony_ci  windowLeft?: number;
9161847f8eSopenharmony_ci
9261847f8eSopenharmony_ci  /**
9361847f8eSopenharmony_ci   * The top position of window rectangle
9461847f8eSopenharmony_ci   *
9561847f8eSopenharmony_ci   * @type { ?number }
9661847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
9761847f8eSopenharmony_ci   * @stagemodelonly
9861847f8eSopenharmony_ci   * @since 11
9961847f8eSopenharmony_ci   */
10061847f8eSopenharmony_ci  windowTop?: number;
10161847f8eSopenharmony_ci
10261847f8eSopenharmony_ci  /**
10361847f8eSopenharmony_ci   * The width of window rectangle
10461847f8eSopenharmony_ci   *
10561847f8eSopenharmony_ci   * @type { ?number }
10661847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
10761847f8eSopenharmony_ci   * @stagemodelonly
10861847f8eSopenharmony_ci   * @since 11
10961847f8eSopenharmony_ci   */
11061847f8eSopenharmony_ci  windowWidth?: number;
11161847f8eSopenharmony_ci
11261847f8eSopenharmony_ci  /**
11361847f8eSopenharmony_ci   * The height of window rectangle
11461847f8eSopenharmony_ci   *
11561847f8eSopenharmony_ci   * @type { ?number }
11661847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
11761847f8eSopenharmony_ci   * @stagemodelonly
11861847f8eSopenharmony_ci   * @since 11
11961847f8eSopenharmony_ci   */
12061847f8eSopenharmony_ci  windowHeight?: number;
12161847f8eSopenharmony_ci
12261847f8eSopenharmony_ci  /**
12361847f8eSopenharmony_ci   * Indicates the cold startup window is focused.
12461847f8eSopenharmony_ci   *
12561847f8eSopenharmony_ci   * @type { ?boolean }
12661847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
12761847f8eSopenharmony_ci   * @systemapi
12861847f8eSopenharmony_ci   * @stagemodelonly
12961847f8eSopenharmony_ci   * @since 12
13061847f8eSopenharmony_ci   */
13161847f8eSopenharmony_ci  windowFocused?: boolean;
13261847f8eSopenharmony_ci
13361847f8eSopenharmony_ci  /**
13461847f8eSopenharmony_ci   * The process mode.
13561847f8eSopenharmony_ci   * This property only takes effect when calling UIAbilityContext.startAbility.
13661847f8eSopenharmony_ci   * The properties processMode and startupVisibility must be set simultaneously.
13761847f8eSopenharmony_ci   *
13861847f8eSopenharmony_ci   * @type { ?contextConstant.ProcessMode }
13961847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
14061847f8eSopenharmony_ci   * @stagemodelonly
14161847f8eSopenharmony_ci   * @since 12
14261847f8eSopenharmony_ci   */
14361847f8eSopenharmony_ci  processMode?: contextConstant.ProcessMode;
14461847f8eSopenharmony_ci
14561847f8eSopenharmony_ci  /**
14661847f8eSopenharmony_ci   * The ability visibility after the new process startup.
14761847f8eSopenharmony_ci   * This property only takes effect when calling UIAbilityContext.startAbility.
14861847f8eSopenharmony_ci   * The properties processMode and startupVisibility must be set simultaneously.
14961847f8eSopenharmony_ci   *
15061847f8eSopenharmony_ci   * @type { ?contextConstant.StartupVisibility }
15161847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
15261847f8eSopenharmony_ci   * @stagemodelonly
15361847f8eSopenharmony_ci   * @since 12
15461847f8eSopenharmony_ci   */
15561847f8eSopenharmony_ci  startupVisibility?: contextConstant.StartupVisibility;
15661847f8eSopenharmony_ci
15761847f8eSopenharmony_ci  /**
15861847f8eSopenharmony_ci   * The start window Icon.
15961847f8eSopenharmony_ci   *
16061847f8eSopenharmony_ci   * @type { ?image.PixelMap }
16161847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
16261847f8eSopenharmony_ci   * @stagemodelonly
16361847f8eSopenharmony_ci   * @since 14
16461847f8eSopenharmony_ci   */
16561847f8eSopenharmony_ci  startWindowIcon?: image.PixelMap;
16661847f8eSopenharmony_ci
16761847f8eSopenharmony_ci  /**
16861847f8eSopenharmony_ci   * The start window backgroundColor.
16961847f8eSopenharmony_ci   *
17061847f8eSopenharmony_ci   * @type { ?string }
17161847f8eSopenharmony_ci   * @syscap SystemCapability.Ability.AbilityRuntime.Core
17261847f8eSopenharmony_ci   * @stagemodelonly
17361847f8eSopenharmony_ci   * @since 14
17461847f8eSopenharmony_ci   */
17561847f8eSopenharmony_ci  startWindowBackgroundColor?: string;
17661847f8eSopenharmony_ci}