ZBLOG

上面的extension PoseLandmarkerService: PoseLandmarkerLiveStreamDelegate和protocol PoseLandmarkerServiceLiveStreamDelegate: AnyObject { func poseLandmarkerService(_ poseLandmarkerService: PoseLandmarkerService, didFinishD...

PoseLandmarkerService: PoseLandmarkerLiveStreamDelegateprotocol PoseLandmarkerServiceLiveStreamDelegate: AnyObject 之间的关系是,PoseLandmarkerService 类遵循了 PoseLandmarkerServiceLiveStreamDelegate 协议。

具体来说:

  • protocol PoseLandmarkerServiceLiveStreamDelegate: 这是一个协议,定义了一组方法(在这里是 poseLandmarkerService(_:didFinishDetection:error:)),供 conforming 的类使用。这些方法通常用于处理特定事件或回调。

  • PoseLandmarkerService: PoseLandmarkerLiveStreamDelegate: 这表示 PoseLandmarkerService 是一个类,并且它实现了 PoseLandmarkerLiveStreamDelegate 协议中的方法。这样,当某个操作完成时,可以调用该协议的方法来传递结果或错误信息。

简单来说,协议定义了一些规则和要求,而类则提供了这些规则的具体实现。在这种情况下,PoseLandmarkerService 类会实现协议中定义的方法,以响应姿态检测服务的结果。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=21411

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?