MagnetometerResultSource Class¶
Description¶
Magnetometer 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_MagnetometerResultSource_setHandler(easyar_MagnetometerResultSource * This, easyar_OptionalOfFunctorOfVoidFromMagnetometerResult handler)
- C++
void setHandler(std::optional<std::function<void(MagnetometerResult)>> handler)
- Java
public void setHandler(@Nullable FunctorOfVoidFromMagnetometerResult handler)
- Kotlin
fun setHandler(handler: FunctorOfVoidFromMagnetometerResult?): Unit
- Objective-C
- (void)setHandler:(void (^)(easyar_MagnetometerResult *))handler
- Swift
public func setHandler(_ handler: ((MagnetometerResult) -> Void)?) -> Void
- C#
public virtual void setHandler(Optional<Action<MagnetometerResult>> handler)
connect¶
Connects to input port.
- C
void easyar_MagnetometerResultSource_connect(easyar_MagnetometerResultSource * This, easyar_MagnetometerResultSink * sink)
- C++
void connect(std::shared_ptr<MagnetometerResultSink> sink)
- Java
public void connect(@Nonnull MagnetometerResultSink sink)
- Kotlin
fun connect(sink: MagnetometerResultSink): Unit
- Objective-C
- (void)connect:(easyar_MagnetometerResultSink *)sink
- Swift
public func connect(_ sink: MagnetometerResultSink) -> Void
- C#
public virtual void connect(MagnetometerResultSink sink)
disconnect¶
Disconnects.
- C
void easyar_MagnetometerResultSource_disconnect(easyar_MagnetometerResultSource * 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()