AttitudeSensorResultSource Class

Description

姿态传感器结果输出端口。

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

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

setHandler

设置数据处理器。

C

void easyar_AttitudeSensorResultSource_setHandler(easyar_AttitudeSensorResultSource * This, easyar_OptionalOfFunctorOfVoidFromAttitudeSensorResult handler)

C++

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

Java

public void setHandler(@Nullable FunctorOfVoidFromAttitudeSensorResult handler)

Kotlin

fun setHandler(handler: FunctorOfVoidFromAttitudeSensorResult?): Unit

Objective-C

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

Swift

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

C#

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

connect

连接输入端口。

C

void easyar_AttitudeSensorResultSource_connect(easyar_AttitudeSensorResultSource * This, easyar_AttitudeSensorResultSink * sink)

C++

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

Java

public void connect(@Nonnull AttitudeSensorResultSink sink)

Kotlin

fun connect(sink: AttitudeSensorResultSink): Unit

Objective-C

- (void)connect:(easyar_AttitudeSensorResultSink *)sink

Swift

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

C#

public virtual void connect(AttitudeSensorResultSink sink)

disconnect

断开连接。

C

void easyar_AttitudeSensorResultSource_disconnect(easyar_AttitudeSensorResultSource * 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()