ProximityLocationResultSource Class

Description

邻近位置结果输出端口。

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

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

setHandler

设置数据处理器。

C

void easyar_ProximityLocationResultSource_setHandler(easyar_ProximityLocationResultSource * This, easyar_OptionalOfFunctorOfVoidFromProximityLocationResult handler)

C++

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

Java

public void setHandler(@Nullable FunctorOfVoidFromProximityLocationResult handler)

Kotlin

fun setHandler(handler: FunctorOfVoidFromProximityLocationResult?): Unit

Objective-C

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

Swift

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

C#

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

connect

连接输入端口。

C

void easyar_ProximityLocationResultSource_connect(easyar_ProximityLocationResultSource * This, easyar_ProximityLocationResultSink * sink)

C++

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

Java

public void connect(@Nonnull ProximityLocationResultSink sink)

Kotlin

fun connect(sink: ProximityLocationResultSink): Unit

Objective-C

- (void)connect:(easyar_ProximityLocationResultSink *)sink

Swift

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

C#

public virtual void connect(ProximityLocationResultSink sink)

disconnect

断开连接。

C

void easyar_ProximityLocationResultSource_disconnect(easyar_ProximityLocationResultSource * 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()