
回复
1.notificationManager.addSlot
支持设备Phone2in1TabletCarWearable
addSlot(type: SlotType, callback: AsyncCallback<void>): void
创建指定类型的通知渠道。使用callback异步回调。
系统能力:SystemCapability.Notification.Notification
示例:
2.notificationManager.addSlot
支持设备Phone2in1TabletCarWearable
addSlot(type: SlotType): Promise<void>
创建指定类型的通知渠道。使用Promise异步回调。
系统能力:SystemCapability.Notification.Notification
示例:
本文主要参考引用自HarmonyOS官方网站