1c5e268c6Sopenharmony_ci/* 2c5e268c6Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 3c5e268c6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4c5e268c6Sopenharmony_ci * you may not use this file except in compliance with the License. 5c5e268c6Sopenharmony_ci * You may obtain a copy of the License at 6c5e268c6Sopenharmony_ci * 7c5e268c6Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8c5e268c6Sopenharmony_ci * 9c5e268c6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10c5e268c6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11c5e268c6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12c5e268c6Sopenharmony_ci * See the License for the specific language governing permissions and 13c5e268c6Sopenharmony_ci * limitations under the License. 14c5e268c6Sopenharmony_ci */ 15c5e268c6Sopenharmony_ci 16c5e268c6Sopenharmony_ci/** 17c5e268c6Sopenharmony_ci * @addtogroup HdfUserAuth 18c5e268c6Sopenharmony_ci * @{ 19c5e268c6Sopenharmony_ci * 20c5e268c6Sopenharmony_ci * @brief Provides APIs for the user_auth driver. 21c5e268c6Sopenharmony_ci * 22c5e268c6Sopenharmony_ci * The user_auth driver provides a unified interface for the user_auth service to access the user_auth driver. 23c5e268c6Sopenharmony_ci * After obtaining the user_auth driver proxy, the service can call related APIs to register executors, 24c5e268c6Sopenharmony_ci * manage credentials, and complete password and biometric authentication. 25c5e268c6Sopenharmony_ci * @since 5.0 26c5e268c6Sopenharmony_ci * @version 1.0 27c5e268c6Sopenharmony_ci */ 28c5e268c6Sopenharmony_ci 29c5e268c6Sopenharmony_ci/** 30c5e268c6Sopenharmony_ci * @file IMessageCallback.idl 31c5e268c6Sopenharmony_ci * 32c5e268c6Sopenharmony_ci * @brief Defines the callback for an async API, which can be used to send message to framework. 33c5e268c6Sopenharmony_ci * 34c5e268c6Sopenharmony_ci * @since 5.0 35c5e268c6Sopenharmony_ci * @version 1.0 36c5e268c6Sopenharmony_ci */ 37c5e268c6Sopenharmony_ci 38c5e268c6Sopenharmony_cipackage ohos.hdi.user_auth.v2_0; 39c5e268c6Sopenharmony_ci 40c5e268c6Sopenharmony_ci/** 41c5e268c6Sopenharmony_ci * @brief Defines the callback for an async API, which can be used to send message to framework. 42c5e268c6Sopenharmony_ci * 43c5e268c6Sopenharmony_ci * @since 5.0 44c5e268c6Sopenharmony_ci * @version 1.0 45c5e268c6Sopenharmony_ci */ 46c5e268c6Sopenharmony_ci[callback] interface IMessageCallback { 47c5e268c6Sopenharmony_ci /** 48c5e268c6Sopenharmony_ci * @brief Defines the function for reporting message. 49c5e268c6Sopenharmony_ci * 50c5e268c6Sopenharmony_ci * @param scheduleId Indicates the schedule ID of the message. 51c5e268c6Sopenharmony_ci * @param destRole is the role of destination. 52c5e268c6Sopenharmony_ci * @param msg is the message content. 53c5e268c6Sopenharmony_ci * 54c5e268c6Sopenharmony_ci * @return Returns <b>0</b> if the operation is successful. 55c5e268c6Sopenharmony_ci * @return Returns a non-zero value if the operation fails. 56c5e268c6Sopenharmony_ci */ 57c5e268c6Sopenharmony_ci OnMessage([in] unsigned long scheduleId, [in] int destRole, [in] unsigned char[] msg); 58c5e268c6Sopenharmony_ci} 59c5e268c6Sopenharmony_ci/** @} */