mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 04:56:00 -04:00
add notification
Signed-off-by: liuyanzhi <liuyanzhi3@huawei.com> Change-Id: I06b56ee3a883a55c566b954b6b63da76bbd6f1d7
This commit is contained in:
@@ -50,7 +50,7 @@ export const NotificationRequest = {
|
||||
creatorUserId: '[PC preview] unknow creatorUserId',
|
||||
classification: '[PC preview] unknow classification',
|
||||
hashCode: '[PC preview] unknow hashCode',
|
||||
isRemveAllowd: '[PC preview] unknow isRemveAllowd',
|
||||
isRemoveAllowed: '[PC preview] unknow isRemveAllowd',
|
||||
source: '[PC preview] unknow source',
|
||||
template: NotificationTemplate,
|
||||
distributedOption: DistributedOptions,
|
||||
|
||||
@@ -44,6 +44,7 @@ export const Support = {
|
||||
COMMON_EVENT_PACKAGE_CHANGED: "usual.event.PACKAGE_CHANGED",
|
||||
COMMON_EVENT_PACKAGE_RESTARTED: "usual.event.PACKAGE_RESTARTED",
|
||||
COMMON_EVENT_PACKAGE_DATA_CLEARED: "usual.event.PACKAGE_DATA_CLEARED",
|
||||
COMMON_EVENT_PACKAGE_CACHE_CLEARED: "usual.event.PACKAGE_CACHE_CLEARED",
|
||||
COMMON_EVENT_PACKAGES_SUSPENDED: "usual.event.PACKAGES_SUSPENDED",
|
||||
COMMON_EVENT_PACKAGES_UNSUSPENDED: "usual.event.PACKAGES_UNSUSPENDED",
|
||||
COMMON_EVENT_MY_PACKAGE_SUSPENDED: "usual.event.MY_PACKAGE_SUSPENDED",
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { WantClass } from "../ohos_application_Want"
|
||||
export const TriggerInfo = {
|
||||
code: '[PC preview] unknow code',
|
||||
want: new WantClass(),
|
||||
permission: '[PC preview] unknow permission',
|
||||
extraInfo: {},
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { WantClass } from "../ohos_application_Want"
|
||||
import { OperationType, WantAgentFlags } from "../ohos_wantAgent"
|
||||
|
||||
export const WantAgentInfo = {
|
||||
wants: [new WantClass()],
|
||||
operationType: OperationType,
|
||||
requestCode: '[PC preview] unknow requestCode',
|
||||
wantAgentFlags: [WantAgentFlags],
|
||||
extraInfo: {},
|
||||
};
|
||||
Reference in New Issue
Block a user