1 /* 2 * Copyright (c) 2022-2023 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 Privacy 18 * @{ 19 * 20 * @brief Provides sensitive data access management. 21 * 22 * @since 8.0 23 * @version 8.0 24 */ 25 26 /** 27 * @file state_customized_cbk.h 28 * 29 * @brief Declares StateCustomizedCbk class. 30 * 31 * @since 8.0 32 * @version 8.0 33 */ 34 35 #ifndef STATE_CUSTOMIZED_CBK_H 36 #define STATE_CUSTOMIZED_CBK_H 37 38 #include <cstdint> 39 #include "access_token.h" 40 41 namespace OHOS { 42 namespace Security { 43 namespace AccessToken { 44 /** 45 * @brief Declares StateCustomizedCbk class. 46 */ 47 class StateCustomizedCbk { 48 public: 49 /** 50 * @brief Constructor without any param. 51 */ 52 StateCustomizedCbk(); 53 /** 54 * @brief Destructor without any param. 55 */ 56 virtual ~StateCustomizedCbk(); 57 58 /** 59 * @brief Pure virtual function for callback. 60 * @param tokenId token id 61 * @param isShowing whether camera float window is show or not 62 */ 63 virtual void StateChangeNotify(AccessTokenID tokenId, bool isShowing) = 0; 64 }; 65 } // namespace AccessToken 66 } // namespace Security 67 } // namespace OHOS 68 69 #endif // STATE_CUSTOMIZED_CBK_H 70