1/* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @addtogroup NOTIFICATION 18 * @{ 19 * 20 * @brief Provides the definition of the C interface for the notification service. 21 * 22 * @since 14 23 */ 24/** 25 * @file notification.h 26 * 27 * @brief Declares the APIs of notification service. 28 * 29 * @library libohnotification.so 30 * @kit NotificationKit 31 * @syscap SystemCapability.Notification.Notification 32 * @since 14 33 */ 34 35#ifndef OH_NOTIFICATION_H 36#define OH_NOTIFICATION_H 37 38#include <stdint.h> 39#include <stdbool.h> 40 41#ifdef __cplusplus 42extern "C" { 43#endif 44 45/** 46 * @brief Checks whether this application is allowed to publish notifications. 47 * 48 * @return true - This application is allowed to publish notifications. 49 * false - This application is not allowed to publish notifications. 50 * @since 14 51 */ 52bool OH_Notification_IsNotificationEnabled(void); 53 54#ifdef __cplusplus 55} 56#endif 57#endif // OH_NOTIFICATION_H 58/** @} */ 59