FeedbackFrameSource Class¶
Description¶
反馈帧输出端口。
用于暴露一个组件的输出端口。
本类的所有成员都是线程安全的。
setHandler¶
设置数据处理器。
- C
void easyar_FeedbackFrameSource_setHandler(easyar_FeedbackFrameSource * This, easyar_OptionalOfFunctorOfVoidFromFeedbackFrame handler)
- C++17
void setHandler(std::optional<std::function<void(std::shared_ptr<FeedbackFrame>)>> handler)
- C++03(Deprecated)
void setHandler(OptionalOfFunctorOfVoidFromFeedbackFrame handler)
- Java
public void setHandler(@Nullable FunctorOfVoidFromFeedbackFrame handler)
- Kotlin
fun setHandler(handler: FunctorOfVoidFromFeedbackFrame?): Unit
- Objective-C
- (void)setHandler:(void (^)(easyar_FeedbackFrame *))handler
- Swift
public func setHandler(_ handler: ((FeedbackFrame) -> Void)?) -> Void
- C#
public virtual void setHandler(Optional<Action<FeedbackFrame>> handler)
connect¶
连接输入端口。
- C
void easyar_FeedbackFrameSource_connect(easyar_FeedbackFrameSource * This, easyar_FeedbackFrameSink * sink)
- C++17
void connect(std::shared_ptr<FeedbackFrameSink> sink)
- C++03(Deprecated)
void connect(FeedbackFrameSink * sink)
- Java
public void connect(@Nonnull FeedbackFrameSink sink)
- Kotlin
fun connect(sink: FeedbackFrameSink): Unit
- Objective-C
- (void)connect:(easyar_FeedbackFrameSink *)sink
- Swift
public func connect(_ sink: FeedbackFrameSink) -> Void
- C#
public virtual void connect(FeedbackFrameSink sink)
disconnect¶
断开连接。
- C
void easyar_FeedbackFrameSource_disconnect(easyar_FeedbackFrameSource * This)
- C++17
void disconnect()
- C++03(Deprecated)
void disconnect()
- Java
public void disconnect()
- Kotlin
fun disconnect(): Unit
- Objective-C
- (void)disconnect
- Swift
public func disconnect() -> Void
- C#
public virtual void disconnect()