Lines Matching refs:Notification
43 class NfcNotificationSubscriber : public Notification::NotificationSubscriber {
46 void OnUpdate(const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {}
47 void OnDoNotDisturbDateChange(const std::shared_ptr<Notification::NotificationDoNotDisturbDate> &date) {}
49 const std::shared_ptr<Notification::EnabledNotificationCallbackData> &callbackData) {}
51 void OnCanceled(const std::shared_ptr<OHOS::Notification::Notification> &request,
52 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int deleteReason)
60 if (deleteReason == Notification::NotificationConstant::CLICK_REASON_DELETE && g_ntfCallback) {
64 void OnConsumed(const std::shared_ptr<OHOS::Notification::Notification> ¬ification,
65 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {}
66 void OnBadgeChanged(const std::shared_ptr<Notification::BadgeNumberCallbackData> &badgeData) {}
67 void OnBadgeEnabledChanged(const sptr<Notification::EnabledNotificationCallbackData> &callbackData) {}
68 void OnBatchCanceled(const std::vector<std::shared_ptr<OHOS::Notification::Notification>> &requestList,
69 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int32_t deleteReason) {}
178 std::shared_ptr<Notification::NotificationNormalContent> nfcContent, const std::string &name, int balance)
217 std::shared_ptr<Notification::NotificationNormalContent> nfcContent, const std::string &name, int balance)
295 static void SetActionButton(const std::string& buttonName, Notification::NotificationRequest& request)
307 std::shared_ptr<Notification::NotificationActionButton> actionButtonDeal =
308 Notification::NotificationActionButton::Create(nullptr, buttonName, wantAgentDeal);
323 static void SetBasicOption(Notification::NotificationRequest &request)
329 request.SetSlotType(OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION);
370 int result = Notification::NotificationHelper::SubscribeNotification(*g_notificationSubscriber);
391 std::shared_ptr<Notification::NotificationNormalContent> nfcContent =
392 std::make_shared<Notification::NotificationNormalContent>();
398 Notification::NotificationBundleOption bundle(KITS::NFC_MANAGER_SYS_ABILITY_NAME, KITS::NFC_MANAGER_SYS_ABILITY_ID);
404 int ret = Notification::NotificationHelper::CancelAsBundle(bundle, lastNtfId);
413 std::shared_ptr<Notification::NotificationContent> content =
414 std::make_shared<Notification::NotificationContent>(nfcContent);
420 Notification::NotificationRequest request;
428 request.SetBadgeIconStyle(Notification::NotificationRequest::BadgeStyle::LITTLE);
436 Notification::NotificationHelper::SetNotificationSlotFlagsAsBundle(bundle, NFC_SLOT_CONTROL_FLAG);
437 ret = Notification::NotificationHelper::PublishNotification(request);