-// Copyright 2016 by Samsung Electronics, Inc.,
-//
-// This software is the confidential and proprietary information
-// of Samsung Electronics, Inc. ("Confidential Information"). You
-// shall not disclose such Confidential Information and shall use
-// it only in accordance with the terms of the license agreement
-// you entered into with Samsung.
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
using System;
using System.Runtime.InteropServices;
[DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_terminate_context")]
internal static extern ErrorCode TerminateContext(IntPtr handle);
- [DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_set_content_info")]
+ [DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_context_set_content_info")]
internal static extern ErrorCode SetContent(IntPtr handle, SafeBundleHandle content);
- [DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_set_title")]
+ [DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_context_set_title")]
internal static extern ErrorCode SetTitle(IntPtr handle, string title);
[DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_get_elm_win")]
internal static extern ErrorCode GetWin(IntPtr handle, out IntPtr win);
+ [DllImport(Libraries.AppcoreWidget)]
+ internal static extern IntPtr widget_app_get_id(IntPtr handle);
+
+ internal static string GetId(IntPtr handle)
+ {
+ return Marshal.PtrToStringAnsi(widget_app_get_id(handle));
+ }
+
[DllImport(Libraries.AppCommon, EntryPoint = "app_event_get_low_memory_status")]
internal static extern Tizen.Internals.Errors.ErrorCode AppEventGetLowMemoryStatus(IntPtr handle, out LowMemoryStatus status);