-{\r
- "buildOptions": {\r
- "debugType": "portable",\r
- "platform": "AnyCPU",\r
- "preserveCompilationContext": true\r
- },\r
- "dependencies": {\r
- "NETStandard.Library": "1.6.0",\r
- "Tizen": "1.0.0",\r
- "Tizen.Applications": "1.0.0",\r
- "Tizen.UI": "1.0.0"\r
- },\r
- "runtimes": {\r
- "win": {}\r
- },\r
- "frameworks": {\r
- "netstandard1.6": {}\r
- }\r
-}
\ No newline at end of file
+{
+ "buildOptions": {
+ "debugType": "portable",
+ "platform": "AnyCPU",
+ "preserveCompilationContext": true
+ },
+ "dependencies": {
+ "NETStandard.Library": "1.6.0",
+ "Tizen": "1.0.0",
+ "Tizen.Applications": "1.0.0",
+ },
+ "runtimes": {
+ "win": {}
+ },
+ "frameworks": {
+ "netstandard1.6": {}
+ }
+}
// you entered into with Samsung.
using System;
-using Tizen.UI;
namespace Tizen.Applications
{
protected static readonly string LogTag = typeof(WidgetBase).Namespace;
/// <summary>
- /// The main window instance of the widget instance.
- /// </summary>
- public Window Window { get; private set; }
-
- /// <summary>
/// Delete type
/// </summary>
public enum WidgetDestroyType
Interop.Widget.GetWin(Handle, out win);
- //TODO: convert win to an instance of Window
+ OnPreCreate(win, w, h);
}
/// <summary>
public virtual void OnUpdate(Bundle content, bool isForce)
{
}
+
+ /// <summary>
+ /// Overrides this method if want to handle behavior before OnCreate() is completed.
+ /// <param name="w">The pixel value for widget width</param>
+ /// <param name="h">The pixel value for widget height</param>
+ /// </summary>
+ protected virtual void OnPreCreate(IntPtr window, int w, int h)
+ {
+ }
}
}