RCKForwardScope class

聊天页面向「转发」入口提供的只读作用域。

与 RCKMessageEditScope 同一套路:转发入口分散在多选底栏与气泡菜单两处, 两处都不持有页面级配置,所以由聊天页统一注入。作用域缺失(例如单独挂载 RCKMessageInput)时表示宿主没有配置,按未拦截处理。

Constructors

RCKForwardScope({RCKForwardTapCallback? onForwardTap, CustomInfoProvider? customInfoProvider})
const

Properties

customInfoProvider → CustomInfoProvider?
聊天页解析好的资料提供者(页面参数优先,其次 Engine 全局)。 转发弹窗用它取会话名与头像;为空时退化为显示会话 ID。
final
hashCode → int
The hash code for this object.
no setterinherited
onForwardTap → RCKForwardTapCallback?
宿主的转发拦截回调;为空表示未拦截,走 Kit 默认实现。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

maybeOf(BuildContext context) → RCKForwardScope?