Show / Hide Table of Contents

    Class liblsl.ContinuousResolver

    A convenience class that resolves streams continuously in the background throughout its lifetime and which can be queried at any time for the set of streams that are currently visible on the network.

    Inheritance
    Object
    liblsl.ContinuousResolver
    Namespace: LSL4Unity
    Assembly: cs.temp.dll.dll
    Syntax
    public class ContinuousResolver

    Constructors

    ContinuousResolver(Double)

    Initializes a new instance of the liblsl.ContinuousResolver class that resolves all streams on the network.

    This is analogous to the functionality offered by the free function ResolveStreams(Double).

    Declaration
    public ContinuousResolver(double forgetAfter = 5)
    Parameters
    Type Name Description
    Double forgetAfter

    When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.

    ContinuousResolver(String, Double)

    Initializes a new instance of the liblsl.ContinuousResolver class that resolves all streams that match a given XPath 1.0 predicate.

    This is analogous to the functionality provided by the free function ResolveStream(String, Int32, Double).

    Declaration
    public ContinuousResolver(string pred, double forgetAfter = 5)
    Parameters
    Type Name Description
    String pred

    The predicate string, e.g. "name='BioSemi'" or "type='EEG' and starts-with(name,'BioSemi') and count(info/desc/channel)=32"

    Double forgetAfter

    When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.

    ContinuousResolver(String, String, Double)

    Initializes a new instance of the liblsl.ContinuousResolver class that resolves all streams with a specific value for a given property.

    This is analogous to the functionality provided by the free function ResolveStream(String, String, Int32, Double).

    Declaration
    public ContinuousResolver(string prop, string value, double forgetAfter = 5)
    Parameters
    Type Name Description
    String prop

    The liblsl.StreamInfo property that should have a specific value (e.g., "name", "type", "SourceId", or "desc/manufaturer").

    String value

    The string value that the property should have (e.g., "EEG" as the type property).

    Double forgetAfter

    When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.

    Methods

    Finalize()

    Finalizes an instance of the liblsl.ContinuousResolver class.

    Declaration
    protected void Finalize()

    Results()

    Obtain the set of currently present streams on the network (i.e. resolve result).

    Declaration
    public liblsl.StreamInfo[] Results()
    Returns
    Type Description
    liblsl.StreamInfo[]

    An array of matching stream info objects (excluding their meta-data), any of which can subsequently be used to open an inlet.

    Back to top LSL 4 Unity documentation