Return "single" launch mode with default
[platform/core/api/application.git] / include / app_extension.h
1 /*
2  * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef __TIZEN_APPFW_APP_EXTENSION_H__
19 #define __TIZEN_APPFW_APP_EXTENSION_H__
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /**
26  * @brief       Gets the preinitialized window object.
27  *
28  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
29  * @remarks     This API only supports BASIC type window.
30  *
31  * @param[in] win_name The name to be set for the preinitialized window
32  *
33  * @return      A @a window object on success,
34  *              otherwise @c NULL
35  */
36 void *app_get_preinitialized_window(const char *win_name);
37
38 /**
39  * @brief       Gets the preinitialized background object added to the preinitialized window.
40  *
41  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
42  * @remarks     This API should be called after calling app_get_preinitizlized_window().
43  *
44  * @return      A @a background object on success,
45  *              otherwise @c NULL
46  */
47 void *app_get_preinitialized_background(void);
48
49 /**
50  * @brief       Gets the preinitialized conformant widget added to the preinitialized window.
51  *
52  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
53  * @remarks     This API should be called after calling app_get_preinitizlized_window().
54  *
55  * @return      A conformant object on success,
56  *              otherwise @c NULL
57  */
58 void *app_get_preinitialized_conformant(void);
59
60 #ifdef __cplusplus
61 }
62 #endif
63
64 #endif /* __TIZEN_APPFW_APP_EXTENSION_H__ */
65