* Fix widget instance id bug
* Update Introp method name
[DllImport(Libraries.AppcoreWidget, EntryPoint = "widget_app_get_elm_win")]
internal static extern ErrorCode GetWin(IntPtr handle, out IntPtr win);
[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);
[DllImport(Libraries.AppCommon, EntryPoint = "app_event_get_low_memory_status")]
internal static extern Tizen.Internals.Errors.ErrorCode AppEventGetLowMemoryStatus(IntPtr handle, out LowMemoryStatus status);
+ b.Bind(context, Interop.Widget.GetId(context));
WidgetInstances.Add(b);
if (content != IntPtr.Zero)
bundle = new Bundle(new SafeBundleHandle(content, false));
WidgetInstances.Add(b);
if (content != IntPtr.Zero)
bundle = new Bundle(new SafeBundleHandle(content, false));