Lines Matching refs:Notification

43 class NfcNotificationSubscriber : public Notification::NotificationSubscriber {
46 void OnUpdate(const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {} in OnUpdate()
47 …void OnDoNotDisturbDateChange(const std::shared_ptr<Notification::NotificationDoNotDisturbDate> &d… in OnDoNotDisturbDateChange()
49 const std::shared_ptr<Notification::EnabledNotificationCallbackData> &callbackData) {} in OnEnabledNotificationChanged()
51 void OnCanceled(const std::shared_ptr<OHOS::Notification::Notification> &request, in OnCanceled()
52 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int deleteReason) in OnCanceled()
60 … if (deleteReason == Notification::NotificationConstant::CLICK_REASON_DELETE && g_ntfCallback) { in OnCanceled()
64 void OnConsumed(const std::shared_ptr<OHOS::Notification::Notification> &notification, in OnConsumed()
65 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {} in OnConsumed()
66 void OnBadgeChanged(const std::shared_ptr<Notification::BadgeNumberCallbackData> &badgeData) {} in OnBadgeChanged()
67 …void OnBadgeEnabledChanged(const sptr<Notification::EnabledNotificationCallbackData> &callbackData… in OnBadgeEnabledChanged()
68 …void OnBatchCanceled(const std::vector<std::shared_ptr<OHOS::Notification::Notification>> &request… in OnBatchCanceled()
69 … const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int32_t deleteReason) {} in OnBatchCanceled()
177 …std::shared_ptr<Notification::NotificationNormalContent> nfcContent, const std::string &name, int … in SetTitleAndTextForOtherNotificationId()
216 …std::shared_ptr<Notification::NotificationNormalContent> nfcContent, const std::string &name, int … in SetTitleAndText()
294 static void SetActionButton(const std::string& buttonName, Notification::NotificationRequest& reque… in SetActionButton()
306 std::shared_ptr<Notification::NotificationActionButton> actionButtonDeal = in SetActionButton()
307 Notification::NotificationActionButton::Create(nullptr, buttonName, wantAgentDeal); in SetActionButton()
322 static void SetBasicOption(Notification::NotificationRequest &request) in SetBasicOption()
328 request.SetSlotType(OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in SetBasicOption()
369 int result = Notification::NotificationHelper::SubscribeNotification(NOTIFICATION_SUBSCRIBER); in NfcNotification()
390 std::shared_ptr<Notification::NotificationNormalContent> nfcContent = in PublishNfcNotification()
391 std::make_shared<Notification::NotificationNormalContent>(); in PublishNfcNotification()
397Notification::NotificationBundleOption bundle(KITS::NFC_MANAGER_SYS_ABILITY_NAME, KITS::NFC_MANAGE… in PublishNfcNotification()
403 int ret = Notification::NotificationHelper::CancelAsBundle(bundle, lastNtfId); in PublishNfcNotification()
412 std::shared_ptr<Notification::NotificationContent> content = in PublishNfcNotification()
413 std::make_shared<Notification::NotificationContent>(nfcContent); in PublishNfcNotification()
419 Notification::NotificationRequest request; in PublishNfcNotification()
427 request.SetBadgeIconStyle(Notification::NotificationRequest::BadgeStyle::LITTLE); in PublishNfcNotification()
435Notification::NotificationHelper::SetNotificationSlotFlagsAsBundle(bundle, NFC_SLOT_CONTROL_FLAG); in PublishNfcNotification()
436 ret = Notification::NotificationHelper::PublishNotification(request); in PublishNfcNotification()