GyroscopeResultSource Class

Description

陀螺仪结果输出端口。

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

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

setHandler

设置数据处理器。

C

void easyar_GyroscopeResultSource_setHandler(easyar_GyroscopeResultSource * This, easyar_OptionalOfFunctorOfVoidFromGyroscopeResult handler)

C++

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

Java

public void setHandler(@Nullable FunctorOfVoidFromGyroscopeResult handler)

Kotlin

fun setHandler(handler: FunctorOfVoidFromGyroscopeResult?): Unit

Objective-C

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

Swift

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

C#

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

connect

连接输入端口。

C

void easyar_GyroscopeResultSource_connect(easyar_GyroscopeResultSource * This, easyar_GyroscopeResultSink * sink)

C++

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

Java

public void connect(@Nonnull GyroscopeResultSink sink)

Kotlin

fun connect(sink: GyroscopeResultSink): Unit

Objective-C

- (void)connect:(easyar_GyroscopeResultSink *)sink

Swift

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

C#

public virtual void connect(GyroscopeResultSink sink)

disconnect

断开连接。

C

void easyar_GyroscopeResultSource_disconnect(easyar_GyroscopeResultSource * 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()