ComponentSingleGetterTComponent, TData Class |
Note: This API is now obsolete.
Namespace: Slash.Unity.DataBind.Foundation.Providers.Getters
[ObsoleteAttribute("Use ComponentDataProvider instead and set the context data with a ContextDataUpdater")] public abstract class ComponentSingleGetter<TComponent, TData> : DataProvider where TComponent : Component
The ComponentSingleGetterTComponent, TData type exposes the following members.
Name | Description | |
---|---|---|
ComponentSingleGetterTComponent, TData | Initializes a new instance of the ComponentSingleGetterTComponent, TData class |
Name | Description | |
---|---|---|
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.) | |
OnAfterDeserialize |
Unity callback.
| |
OnBeforeSerialize |
Unity callback.
| |
OnContextChanged |
Has to be called when an anchestor context changed as the data value may change.
(Overrides DataBindingOperatorOnContextChanged.) | |
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 | |
---|---|---|
Path |
Path to value in data context.
| |
TargetBinding |
Binding that provides the target component.
|