mirror of
https://github.com/openharmony/interface_sdk_c.git
synced 2026-08-24 14:32:50 -04:00
803bb8fb6d
Signed-off-by: zhaobaoxin <zhaobaoxin1@huawei.com> Change-Id: Id4859d1dad4b27766818e4a565443caa435c16eb
59 lines
1.4 KiB
C
59 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2024 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.
|
|
*/
|
|
|
|
/**
|
|
* @addtogroup NOTIFICATION
|
|
* @{
|
|
*
|
|
* @brief Notification向应用提供通知服务的能力,包括查询当前应用通知的使能状态等。
|
|
*
|
|
* @since 13
|
|
*/
|
|
/**
|
|
* @file notification.h
|
|
*
|
|
* @brief 定义通知服务API接口。
|
|
*
|
|
* @library libohnotification.so
|
|
* @kit NotificationKit
|
|
* @syscap SystemCapability.Notification.Notification
|
|
* @since 13
|
|
*/
|
|
|
|
#ifndef OH_NOTIFICATION_H
|
|
#define OH_NOTIFICATION_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief 查询当前应用通知使能状态。
|
|
*
|
|
* @return true - 表示当前应用已使能通知。
|
|
* false - 表示当前应用未使能通知。
|
|
* @since 13
|
|
*/
|
|
bool OH_Notification_IsNotificationEnabled(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // OH_NOTIFICATION_H
|
|
/** @} */
|