interface IPublisher
cangjie
public interface IPublisher功能:定义通知发布能力。
成员概览
| 成员 | 功能 |
|---|---|
| func publish(TNotification) | 发布一个通知对象。 |
func publish(TNotification)
cangjie
func publish<TNotification>(notification: TNotification): Unit where TNotification <: INotification功能:发布一个通知对象。
参数:
- notification:
TNotification- 要发布的通知实例。
返回值:
Unit- 无返回值。