LSLStreamResolverContinuousByPredicate class

Inheritance
Available extensions

Constructors

LSLStreamResolverContinuousByPredicate.new({required String predicate, double forgetAfter = 5.0, int maxStreams = 5})
Creates a new LSLStreamResolverContinuousByPredicate object.

Properties

created bool
Whether the object has been created.
no setterinherited
destroyed bool
Whether the object has been destroyed.
no setterinherited
forgetAfter double
finalinherited
hashCode int
The hash code for this object.
no setterinherited
maxStreams int
getter/setter pairinherited
predicate String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAlloc(Pointer<NativeType> arg) → void
Adds a pointer to the list of allocated pointers.
inherited
addAllocList(List<Pointer<NativeType>> args) → void
Adds a list of pointers to the list of allocated pointers.
inherited
create() LSLStreamResolverContinuous
Creates the resolver and allocates the stream info buffer. This method initializes the resolver with the specified forgetAfter time, which is the duration after which streams that are not seen will be forgotten. Returns the created resolver instance.
override
destroy() → void
Destroys the resolver and frees the stream info buffer. If the resolver is already destroyed, this method does nothing.
override
freeArgs() → void
Frees all allocated pointers.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve({double waitTime = 0.0}) Future<List<LSLStreamInfo>>
Resolves streams available on the network found since the last call to resolve. It will return all streams that are currently available, limited by maxStreams. It is your responsibility to ensure that the returned streams are destroyed when no longer needed.
inherited
resolveByPredicate({required String predicate, double waitTime = 5.0, int minStreamCount = 0}) Future<List<LSLStreamInfo>>

Available on LSLStreamResolver, provided by the LSLStreamResolverByPredicate extension

Resolves streams by a predicate function. The predicate parameter is an XPath 1.0 predicate e.g. name='MyStream' and type='EEG' or starts-with(name, 'My'). The waitTime parameter determines how long to wait for streams to resolve, if the value is 0, the default of forever will be used, and will only return when the minStreamCount is met. The minStreamCount parameter is the minimum number of streams to resolve, it must be greater than 0.
resolveByProperty({required LSLStreamProperty property, required String value, double waitTime = 5.0, int minStreamCount = 0}) Future<List<LSLStreamInfo>>

Available on LSLStreamResolver, provided by the LSLStreamResolverByProp extension

Resolves streams by a specific property. The property parameter is the property to filter by, such as name, type, channel count, etc. The value parameter is the value to filter by. The waitTime parameter determines how long to wait for streams to resolve, if the value is 0, the default of forever will be used, and will only return when the minStreamCount is met. The minStreamCount parameter is the minimum number of streams to resolve, it must be greater than 0. Returns a list of LSLStreamInfo objects that match the filter. Throws an LSLException if the resolver is not created or if there is an error resolving streams. You may get less streams than the minStreamCount if there are not enough streams available AND you have set a waitTime > 0.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited