LocationResultSource Class

Description

位置结果输出端口。

用于暴露一个组件的输出端口。

本类的所有成员都是线程安全的。

setHandler

设置数据处理器。

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

连接输入端口。

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

断开连接。

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()