DataKeyPathMapperDictionary Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A simple key path mapper that can associated a local key path with a data key path.
To allow for the existence of common data presentation prefabs that can be reused, such as a address book entry, a photo album entry, or even a simple list of text entries, there is a need to decouple namespaces between these prefab "views" and the data sources that will be used to populate the view.
The data source field names for the various potential sources of similar information (e.g. contact list, or photo album entries), are unlikely to be consistent across data sources, but the desire is to be able to map them to curated prefab views that can present this information in compelling ways.
This class has no Unity specific dependencies. To use this in the context of Unity components and editor inspector, see DataKeyPathMapperGODictionary.
public class DataKeyPathMapperDictionary : MixedReality.Toolkit.Data.IDataKeyPathMapper
type DataKeyPathMapperDictionary = class
interface IDataKeyPathMapper
Public Class DataKeyPathMapperDictionary
Implements IDataKeyPathMapper
- Inheritance
-
DataKeyPathMapperDictionary
- Implements
Constructors
| Name | Description |
|---|---|
| DataKeyPathMapperDictionary() | |
Fields
| Name | Description |
|---|---|
| _dataToViewKeyPathLookup | |
| _viewToDataKeyPathLookup | |
Methods
| Name | Description |
|---|---|
| AddKeyMapping(String, String) |
Remove a mapping between a view and a data key path |
| GetDataKeyPathFromViewKeyPath(String) |
Given a a view keyPath return the data keyPath. |
| GetViewKeyPathFromDataKeyPath(String) |
Given a a data keyPath return the view keyPath. |
| RemoveKeyMapping(String, String) |
Remove a mapping between a view and a data key path |