Class TypeRegistry
Definition
- Assembly:
- Tizen.NUI.dll
The TypeRegistry allows registration of type instance creation functions. These can then be created later by name and down cast to the appropriate type.
public class TypeRegistry : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceTypeRegistry()
Allows the creation of an empty typeRegistry handle.
Declaration
public TypeRegistry()
Methods
View SourceGet()
Gets Type Registry handle.
Declaration
public static TypeRegistry Get()
Returns
Type | Description |
---|---|
TypeRegistry | TypeRegistry handle. |
GetTypeInfo(string)
Gets TypeInfo for a registered type.
Declaration
public TypeInfo GetTypeInfo(string uniqueTypeName)
Parameters
Type | Name | Description |
---|---|---|
string | uniqueTypeName | A unique type name. |
Returns
Type | Description |
---|---|
TypeInfo | TypeInfo if the type exists, otherwise an empty handle. |
GetTypeName(uint)
Gets type names by index.
Declaration
public string GetTypeName(uint index)
Parameters
Type | Name | Description |
---|---|---|
uint | index | The index to get the type name. |
Returns
Type | Description |
---|---|
string | The type name or an empty string when index is not valid. |
GetTypeNameCount()
Gets type name count.
Declaration
public uint GetTypeNameCount()
Returns
Type | Description |
---|---|
uint | The count. |
ReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(Runtime.InteropServices.HandleRef swigCPtr)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Runtime.InteropServices.HandleRef | swigCPtr |
Overrides
Implements
System.IDisposable