Home
last modified time | relevance | path

Searched refs:templateName (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_setting_test.cpp116 std::string templateName("downloadTemplate"); variable
118 EXPECT_EQ(0, NotificationHelper::IsSupportTemplate(templateName, support));
130 std::string templateName("downloadTemplate_1"); variable
132 EXPECT_EQ(0, NotificationHelper::IsSupportTemplate(templateName, support));
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dans_template.cpp50 params.templateName = str; in ParseParameters()
54 params.templateName = std::to_string(number); in ParseParameters()
58 params.templateName = std::to_string(result); in ParseParameters()
105 asyncCallbackinfo->params.templateName, asyncCallbackinfo->params.support); in IsSupportTemplate()
/ohos5.0/base/update/update_app/feature/ota/src/main/ets/notify/
H A DNotificationHelper.ets65 let templateName: string = 'downloadTemplate';
67 … globalThis.isSupportTemplate = await notification.isSupportTemplate(templateName).catch(err => {
111 let templateName: string = 'installTemplate';
113 … globalThis.isSupportTemplate = await notification.isSupportTemplate(templateName).catch(err => {
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-event-and-notification.md23 …ication | isSupportTemplate(templateName: string, callback: AsyncCallback\<boolean>): void;<br>isS…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-notification-kit/
H A Djs-apis-notification.md751 isSupportTemplate(templateName: string, callback: AsyncCallback\<boolean\>): void
761 | templateName | string | 是 | 模板名称。 |
769 let templateName: string = 'process';
778 Notification.isSupportTemplate(templateName, isSupportTemplateCallback);
783 isSupportTemplate(templateName: string): Promise\<boolean\>
793 | templateName | string | 是 | 模板名称。 |
806 let templateName: string = 'process';
807 Notification.isSupportTemplate(templateName).then((data: boolean) => {
H A Djs-apis-notificationManager.md1222 isSupportTemplate(templateName: string, callback: AsyncCallback\<boolean\>): void
1232 | templateName | string | 是 | 模板名称。当前仅支持'downloadTemplate'。 |
1251 let templateName: string = 'downloadTemplate';
1259 notificationManager.isSupportTemplate(templateName, isSupportTemplateCallback);
1264 isSupportTemplate(templateName: string): Promise\<boolean\>
1274 | templateName | string | 是 | 模板名称。当前仅支持'downloadTemplate'。 |
1298 let templateName: string = 'downloadTemplate';
1299 notificationManager.isSupportTemplate(templateName).then((data: boolean) => {
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-event-and-notification.md23 …ication | isSupportTemplate(templateName: string, callback: AsyncCallback\<boolean>): void;<br>isS…
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dans_template.h26 std::string templateName = ""; member
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_template.cpp52 asyncCallbackinfo->params.templateName, asyncCallbackinfo->params.support); in NapiIsSupportTemplate()
/ohos5.0/docs/zh-cn/application-dev/notification/
H A Dprogress-bar-notification.md14 | isSupportTemplate(templateName: string): Promise\<boolean\> | 查询模板是否存在。 |
/ohos5.0/docs/en/application-dev/reference/apis-notification-kit/
H A Djs-apis-notification.md751 isSupportTemplate(templateName: string, callback: AsyncCallback\<boolean\>): void
761 | templateName | string | Yes | Template name. |
769 let templateName: string = 'process';
778 Notification.isSupportTemplate(templateName, isSupportTemplateCallback);
783 isSupportTemplate(templateName: string): Promise\<boolean\>
793 | templateName | string | Yes | Template name. |
806 let templateName: string = 'process';
807 Notification.isSupportTemplate(templateName).then((data: boolean) => {
H A Djs-apis-notificationManager.md1222 isSupportTemplate(templateName: string, callback: AsyncCallback\<boolean\>): void
1232 | templateName | string | Yes | Template name. Currently, only **downloadTemplat…
1251 let templateName: string = 'downloadTemplate';
1259 notificationManager.isSupportTemplate(templateName, isSupportTemplateCallback);
1264 isSupportTemplate(templateName: string): Promise\<boolean\>
1274 | templateName | string | Yes | Template name. Currently, only **downloadTemplate** is supported.|
1298 let templateName: string = 'downloadTemplate';
1299 notificationManager.isSupportTemplate(templateName).then((data: boolean) => {
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_helper_test.cpp887 std::string templateName = "TemplateName"; variable
890 ErrCode ret = notificationHelper.IsSupportTemplate(templateName, support);
917 std::string templateName = "TemplateName"; variable
920 ErrCode ret = notificationHelper.IsSupportTemplate(templateName, support);
/ohos5.0/docs/en/application-dev/notification/
H A Dprogress-bar-notification.md14 | isSupportTemplate(templateName: string): Promise\<boolean\> | Checks whether a specific template …
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences.h252 ErrCode GetTemplateSupported(const std::string &templateName, bool &support);
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp456 ErrCode NotificationHelper::IsSupportTemplate(const std::string &templateName, bool &support) in IsSupportTemplate() argument
458 … return DelayedSingleton<AnsNotification>::GetInstance()->IsSupportTemplate(templateName, support); in IsSupportTemplate()
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_helper.h866 static ErrCode IsSupportTemplate(const std::string &templateName, bool &support);
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences.cpp998 ErrCode NotificationPreferences::GetTemplateSupported(const std::string& templateName, bool &suppor… in GetTemplateSupported() argument
1000 if (templateName.length() == 0) { in GetTemplateSupported()
1024 if (jsonObj.contains(templateName)) { in GetTemplateSupported()
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_notification.h887 ErrCode IsSupportTemplate(const std::string &templateName, bool &support);
H A Dans_manager_interface.h737 virtual ErrCode IsSupportTemplate(const std::string &templateName, bool &support) = 0;
H A Dans_manager_proxy.h668 ErrCode IsSupportTemplate(const std::string &templateName, bool &support) override;
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp511 ErrCode AnsManagerStub::IsSupportTemplate(const std::string &templateName, bool &support) in IsSupportTemplate() argument
H A Dans_manager_stub.cpp2080 std::string templateName; in HandleIsSupportTemplate() local
2081 if (!data.ReadString(templateName)) { in HandleIsSupportTemplate()
2086 ErrCode result = IsSupportTemplate(templateName, support); in HandleIsSupportTemplate()
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/
H A Dans_manager_proxy_unit_test.cpp6390 std::string templateName = "TemplateName"; variable
6392 int32_t result = proxy->IsSupportTemplate(templateName, support);
6411 std::string templateName = "TemplateName"; variable
6413 int32_t result = proxy->IsSupportTemplate(templateName, support);
6434 std::string templateName = "TemplateName"; variable
6436 int32_t result = proxy->IsSupportTemplate(templateName, support);
6457 std::string templateName = "TemplateName"; variable
6459 int32_t result = proxy->IsSupportTemplate(templateName, support);
6480 std::string templateName = "TemplateName"; variable
6482 int32_t result = proxy->IsSupportTemplate(templateName, support);
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp441 ErrCode IsSupportTemplate(const std::string &templateName, bool &support) override in IsSupportTemplate() argument

12