Language
Edit

DataSourceDictionary Class

Definition

Data Source that stores arbitrary information in a Dictionary where the dictionary key is the keypath and the value is any object that can be used by some data consumer.

Any change to a value in this dictionary will cause any data consumers that have registered to listen to its key path will be notified of a data change.

This simple data source is great for providing a simple list of data to data consumers dynamically at run-time.

public class DataSourceDictionary : MixedReality.Toolkit.Data.DataSourceBase
type DataSourceDictionary = class
    inherit DataSourceBase
Public Class DataSourceDictionary
Inherits DataSourceBase
Inheritance
DataSourceDictionary

Constructors

Name Description
DataSourceDictionary()

Fields

Name Description
_dataConsumerKeyPathCounts (Inherited from DataSourceBase)
_dataDictionary
_dataKeyPathMapper (Inherited from DataSourceBase)
_findArrayIndexRegex (Inherited from DataSourceBase)
_keyPathToDataConsumers (Inherited from DataSourceBase)

Properties

Name Description
DataController (Inherited from DataSourceBase)
DataSourceType

Get the data source type

(Inherited from DataSourceBase)

Methods

Name Description
AddDataConsumerListener(String, IDataConsumer)

Add a new data consumer listener for the specified key path

(Inherited from DataSourceBase)
DataChangeSetBegin()

Begin a data change set.

(Inherited from DataSourceBase)
DataChangeSetBeginForKeyPath(String) (Inherited from DataSourceBase)
DataChangeSetEnd()

End a data change set.

(Inherited from DataSourceBase)
DataChangeSetEndForKeyPath(String) (Inherited from DataSourceBase)
GetCollectionCount(String)

If a key path represents a collection, return the number of items in that collection.

(Inherited from DataSourceBase)
GetCollectionKeyPathRange(String, Int32, Int32)

Get an enumerable collection of key path strings for the specified collection index range.

(Inherited from DataSourceBase)
GetDeindexedKeyPath(String)

Get a path where all array indices have been removed.

(Inherited from DataSourceBase)
GetNthCollectionKeyPathAt(String, Int32)

If a key path represents a collection, return a collection key path for the entry at index n.

(Inherited from DataSourceBase)
GetValue(String)

Get the value associated with the specified key path and prefix

(Inherited from DataSourceBase)
GetValueInternal(String)

Get the value from the data source based on its keypath.

IsCollectionAtKeyPath(String)

Determine if key path represents a data collection

(Inherited from DataSourceBase)
IsDataAvailable()

Is data available in the data source.

(Inherited from DataSourceBase)
NotifyAllChanged(DataChangeType, IDataConsumer)

Notify all listeners that data has changed.

(Inherited from DataSourceBase)
NotifyDataChanged(String, Object, DataChangeType, Boolean)

Inform data source that its data has changed.

(Inherited from DataSourceBase)
OnCollectionListenerAdded(String, Object)

Triggered whenever a datum is added that is a collection

(Inherited from DataSourceBase)
OnCollectionListenerRemoved(String)

Triggered whenever a datum is removed that is a collection.

(Inherited from DataSourceBase)
RemoveDataConsumerListener(String, IDataConsumer)

Remove a data consumer listener for the specified key path

(Inherited from DataSourceBase)
ResolveKeyPath(String, String)

Resolve a key path using a given prefix and local path.

(Inherited from DataSourceBase)
SetDataKeyPathMapper(IDataKeyPathMapper)

Set a key path mapper.

(Inherited from DataSourceBase)
SetDataSourceDictionary(Dictionary<String,Object>)

Set the dictionary being managed by this data source.

SetValue(String, Object, Boolean)

Set the value associated with the specified key path

(Inherited from DataSourceBase)
SetValueInternal(String, Object)

Set the value in the data source based on its keypath.

Applies to