mirror of
https://github.com/openharmony/interface_sdk_c.git
synced 2026-08-24 14:32:50 -04:00
081a37e691
Signed-off-by: wangsen1994 <wangsen51@huawei.com>
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 Provides the definition of the C interface for the notification service.
|
|
*
|
|
* @since 13
|
|
*/
|
|
/**
|
|
* @file notification.h
|
|
*
|
|
* @brief Declares the APIs of notification service.
|
|
*
|
|
* @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 Checks whether this application is allowed to publish notifications.
|
|
*
|
|
* @return true - This application is allowed to publish notifications.
|
|
* false - This application is not allowed to publish notifications.
|
|
* @since 13
|
|
*/
|
|
bool OH_Notification_IsNotificationEnabled(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // OH_NOTIFICATION_H
|
|
/** @} */
|