GyroscopeResultSource Class

Description

Gyroscope 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_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

Connects to input port.

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

Disconnects.

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