ComponentDataProviderTComponent, TData Class |
Namespace: Slash.Unity.DataBind.Foundation.Providers.Getters
public abstract class ComponentDataProvider<TComponent, TData> : DataProvider where TComponent : Component
The ComponentDataProviderTComponent, TData type exposes the following members.
Name | Description | |
---|---|---|
ComponentDataProviderTComponent, TData | Initializes a new instance of the ComponentDataProviderTComponent, TData class |
Name | Description | |
---|---|---|
Target |
Current target component to get data value from.
| |
Value |
Current data value.
(Overrides DataProviderValue.) |
Name | Description | |
---|---|---|
AddListener |
Register listener at target to be informed if its value changed.
The target is already checked for null reference.
| |
Deinit |
Deinitializes the operator.
By default this method removes the added bindings.
(Overrides DataBindingOperatorDeinit.) | |
Disable |
Disable the operator.
(Overrides DataBindingOperatorDisable.) | |
Enable |
Enable the operator.
(Overrides DataBindingOperatorEnable.) | |
GetValue |
Derived classes should return the current value to set if this method is called.
The target is already checked for null reference.
| |
Init |
Initializes the operator.
This method should be used to add bindings.
(Overrides DataBindingOperatorInit.) | |
OnTargetValueChanged |
Has to be called by derived classes when the value may have changed.
| |
RemoveListener |
Remove listener from target which was previously added in AddListener.
The target is already checked for null reference.
| |
Reset |
Unity callback.
| |
Start |
Unity callback.
(Overrides DataBindingOperatorStart.) | |
UpdateValue |
Called when the value of the data provider should be updated.
(Overrides DataProviderUpdateValue.) |
Name | Description | |
---|---|---|
TargetBinding |
Target component.
|