[NUI.Gadget] Add NUIGadget class for inhouse developers (#4935)
authorhjhun <36876573+hjhun@users.noreply.github.com>
Fri, 27 Jan 2023 07:07:44 +0000 (16:07 +0900)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 07:07:44 +0000 (16:07 +0900)
commitd6005a298fcd8d48d6107c1445d67f91c41296e4
treefdb476f25641b06127c6ec4d67ed0433843907db
parentd0fa37b69177997bb5b9929e10576c77980cf540
[NUI.Gadget] Add NUIGadget class for inhouse developers (#4935)

* Implement NUIGadget

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Adjust project file

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update csproj

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update implementation

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Remove dll unload

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Remove unnecessary file

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update sln file

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add missing dependencies

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add a missing property

The type is added.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update implementation

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix typo

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Check return type of Assembly.CreateInstance()

This patch uses 'as' keyword to check the instance type.
If it's not NUIGadget, the return value will be null.
In that case, the Add() method throws an exception.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add abstract keyword to NUIGadget class

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Modify Create() method of NUIGadget

If the Create() method returns 'false', the Add() method of NUIGadgetManager
throws an exception.

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Use CoreApplication.Post() instead of TizenUISynchronzationContext.Post()

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 files changed:
src/Tizen.NUI.Gadget/Interop/Interop.Libc.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Interop/Interop.Libraries.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Interop/Interop.PkgMgrInfo.cs [new file with mode: 0644]
src/Tizen.NUI.Gadget/Tizen.NUI.Gadget.csproj [new file with mode: 0644]
src/Tizen.NUI.Gadget/Tizen.NUI.Gadget.sln [new file with mode: 0644]
src/Tizen.NUI.Gadget/Tizen.NUI/Log.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadget.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetEventType.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetInfo.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetLifecycleChangedEventArgs.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetLifecycleState.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetManager.cs [new file with mode: 0755]
src/Tizen.NUI.Gadget/Tizen.NUI/NUIGadgetType.cs [new file with mode: 0755]