ComponentDataObserverTComponent, TData Class |
Namespace: Slash.Unity.DataBind.Foundation.Observers
public abstract class ComponentDataObserver<TComponent, TData> : IDataProvider<TData>, IDataProvider
[Missing <typeparam name="TComponent"/> documentation for "T:Slash.Unity.DataBind.Foundation.Observers.ComponentDataObserver`2"]
[Missing <typeparam name="TData"/> documentation for "T:Slash.Unity.DataBind.Foundation.Observers.ComponentDataObserver`2"]
The ComponentDataObserverTComponent, TData type exposes the following members.
Name | Description | |
---|---|---|
ComponentDataObserverTComponent, TData | Initializes a new instance of the ComponentDataObserverTComponent, TData class |
Name | Description | |
---|---|---|
IsInitialized |
Indicates if data provider is initialized to provide a valid value.
| |
Target |
Current target component to get data value from.
| |
Value |
Current data value.
|
Name | Description | |
---|---|---|
AddListener |
Register listener at target to be informed if its value changed.
The target is already checked for null reference.
| |
GetValue |
Derived classes should return the current value to set if this method is called.
The target is already checked for null reference.
| |
OnTargetValueChanged |
Has to be called by derived classes when the value may have changed.
| |
OnValueChanged |
Should be called by a derived class if the value of the data provider changed.
| |
RemoveListener |
Remove listener from target which was previously added in AddListener.
The target is already checked for null reference.
|
Name | Description | |
---|---|---|
ValueChanged |
Called when the value of the property changed.
|