LocationResultSource Class

Description

Location result output port.

It is used to expose output port for a component.

All members of this class is thread-safe.

setHandler

Sets data handler.

C

void easyar_LocationResultSource_setHandler(easyar_LocationResultSource * This, easyar_OptionalOfFunctorOfVoidFromLocationResult handler)

C++

void setHandler(std::optional<std::function<void(LocationResult)>> handler)

Java

public void setHandler(@Nullable FunctorOfVoidFromLocationResult handler)

Kotlin

fun setHandler(handler: FunctorOfVoidFromLocationResult?): Unit

Objective-C

- (void)setHandler:(void (^)(easyar_LocationResult *))handler

Swift

public func setHandler(_ handler: ((LocationResult) -> Void)?) -> Void

C#

public virtual void setHandler(Optional<Action<LocationResult>> handler)

connect

Connects to input port.

C

void easyar_LocationResultSource_connect(easyar_LocationResultSource * This, easyar_LocationResultSink * sink)

C++

void connect(std::shared_ptr<LocationResultSink> sink)

Java

public void connect(@Nonnull LocationResultSink sink)

Kotlin

fun connect(sink: LocationResultSink): Unit

Objective-C

- (void)connect:(easyar_LocationResultSink *)sink

Swift

public func connect(_ sink: LocationResultSink) -> Void

C#

public virtual void connect(LocationResultSink sink)

disconnect

Disconnects.

C

void easyar_LocationResultSource_disconnect(easyar_LocationResultSource * This)

C++

void disconnect()

Java

public void disconnect()

Kotlin

fun disconnect(): Unit

Objective-C

- (void)disconnect

Swift

public func disconnect() -> Void

C#

public virtual void disconnect()