Show / Hide Table of Contents

    Class SpatialLocalizationSession

    Inheritance
    Object
    SpatialLocalizationSession
    Implements
    ISpatialLocalizationSession
    IDisposable
    Namespace: Microsoft.MixedReality.SpectatorView
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class SpatialLocalizationSession : DisposableBase, ISpatialLocalizationSession, IDisposable

    Constructors

    SpatialLocalizationSession()

    Declaration
    public SpatialLocalizationSession()

    Fields

    defaultCancellationToken

    Declaration
    protected readonly CancellationToken defaultCancellationToken
    Field Value
    Type Description
    CancellationToken

    Properties

    Peer

    Participant associated with the current localization session

    Declaration
    public abstract IPeerConnection Peer { get; }
    Property Value
    Type Description
    IPeerConnection

    Methods

    Cancel()

    Call to cancel the localization sessions

    Declaration
    public void Cancel()

    LocalizeAsync(CancellationToken)

    Call to obtain a spatial coordinate from this localization session

    Declaration
    public abstract Task<ISpatialCoordinate> LocalizeAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<ISpatialCoordinate>

    OnDataReceived(BinaryReader)

    Call to provide network information

    Declaration
    public virtual void OnDataReceived(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    reader containing a network payload

    OnManagedDispose()

    Declaration
    protected override void OnManagedDispose()

    Implements

    ISpatialLocalizationSession
    System.IDisposable
    In This Article
    • Constructors
      • SpatialLocalizationSession()
    • Fields
      • defaultCancellationToken
    • Properties
      • Peer
    • Methods
      • Cancel()
      • LocalizeAsync(CancellationToken)
      • OnDataReceived(BinaryReader)
      • OnManagedDispose()
    • Implements
    Back to top Generated by DocFX