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 HdfUserAuth 18 * @{ 19 * 20 * @brief Provides APIs for the user_auth driver. 21 * 22 * The user_auth driver provides a unified interface for the user_auth service to access the user_auth driver. 23 * After obtaining the user_auth driver proxy, the service can call related APIs to register executors, 24 * manage credentials, and complete password and biometric authentication. 25 * @since 5.0 26 * @version 1.0 27 */ 28 29/** 30 * @file IMessageCallback.idl 31 * 32 * @brief Defines the callback for an async API, which can be used to send message to framework. 33 * 34 * @since 5.0 35 * @version 1.0 36 */ 37 38package ohos.hdi.user_auth.v3_0; 39 40/** 41 * @brief Defines the callback for an async API, which can be used to send message to framework. 42 * 43 * @since 5.0 44 * @version 1.0 45 */ 46[callback] interface IMessageCallback { 47 /** 48 * @brief Defines the function for reporting message. 49 * 50 * @param scheduleId Indicates the schedule ID of the message. 51 * @param destRole is the role of destination. 52 * @param msg is the message content. 53 * 54 * @return Returns <b>0</b> if the operation is successful. 55 * @return Returns a non-zero value if the operation fails. 56 */ 57 OnMessage([in] unsigned long scheduleId, [in] int destRole, [in] unsigned char[] msg); 58} 59/** @} */