Class SpacePinBinderFile
Simple implementation of an IBindingOracle interface, which puts and gets binding from file locally.
Implements
Namespace: Microsoft.MixedReality.WorldLocking.ASA
Assembly: cs.temp.dll.dll
Syntax
public class SpacePinBinderFile : MonoBehaviour, IBindingOracle
Remarks
Note that this implements spatial persistence locally across sessions. Also, the file can be transferred from device to device, allowing shared spaces between HoloLens, Android, and iOS. A more sophisticated implementation would be very similar, but instead of saving to and loading from a local file, would save to and load from a shared location in the cloud.
Properties
Name
Name of this oracle.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Get(IBinder)
Retrieve bindings from file and apply them to the input binder.
Declaration
public bool Get(IBinder binder)
Parameters
Type | Name | Description |
---|---|---|
IBinder | binder | Binder to apply them to. |
Returns
Type | Description |
---|---|
Boolean | True on success. |
Put(IBinder)
Pull bindings from the binder and save them to file.
Declaration
public bool Put(IBinder binder)
Parameters
Type | Name | Description |
---|---|---|
IBinder | binder | Binder to pull from. |
Returns
Type | Description |
---|---|
Boolean | True on success. |