AccelerometerResultSource Class¶
Description¶
Accelerometer 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_AccelerometerResultSource_setHandler(easyar_AccelerometerResultSource * This, easyar_OptionalOfFunctorOfVoidFromAccelerometerResult handler)
- C++
void setHandler(std::optional<std::function<void(AccelerometerResult)>> handler)
- Java
public void setHandler(@Nullable FunctorOfVoidFromAccelerometerResult handler)
- Kotlin
fun setHandler(handler: FunctorOfVoidFromAccelerometerResult?): Unit
- Objective-C
- (void)setHandler:(void (^)(easyar_AccelerometerResult *))handler
- Swift
public func setHandler(_ handler: ((AccelerometerResult) -> Void)?) -> Void
- C#
public virtual void setHandler(Optional<Action<AccelerometerResult>> handler)
connect¶
Connects to input port.
- C
void easyar_AccelerometerResultSource_connect(easyar_AccelerometerResultSource * This, easyar_AccelerometerResultSink * sink)
- C++
void connect(std::shared_ptr<AccelerometerResultSink> sink)
- Java
public void connect(@Nonnull AccelerometerResultSink sink)
- Kotlin
fun connect(sink: AccelerometerResultSink): Unit
- Objective-C
- (void)connect:(easyar_AccelerometerResultSink *)sink
- Swift
public func connect(_ sink: AccelerometerResultSink) -> Void
- C#
public virtual void connect(AccelerometerResultSink sink)
disconnect¶
Disconnects.
- C
void easyar_AccelerometerResultSource_disconnect(easyar_AccelerometerResultSource * 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()