AttitudeSensorResultSource Class¶
Description¶
Attitude sensor 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_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¶
Connects to input port.
- 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¶
Disconnects.
- 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()