update interfaces/kits/picker/src/modal_ui_callback.cpp.

Signed-off-by: BrainL <libuyan1@huawei.com>
This commit is contained in:
BrainL 2024-09-09 03:06:46 +00:00 committed by Gitee
parent 1302c5176e
commit b863e5dc51
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -33,21 +33,21 @@ void ModalUICallback::SetSessionId(int32_t sessionId)
void ModalUICallback::OnRelease(int32_t releaseCode)
{
HILOG_INFO("modal picker: OnRelease enter. release code is %{public}d", releaseCode);
HILOG_INFO("[picker] OnRelease enter. release code is %{public}d", releaseCode);
this->uiContent->CloseModalUIExtension(this->sessionId_);
pickerCallBack_->ready = true;
}
void ModalUICallback::OnError(int32_t code, const std::string& name, const std::string& message)
{
HILOG_ERROR("modal picker: OnError enter. errorCode=%{public}d, name=%{public}s, message=%{public}s",
HILOG_ERROR("[picker] OnError enter. errorCode=%{public}d, name=%{public}s, message=%{public}s",
code, name.c_str(), message.c_str());
this->uiContent->CloseModalUIExtension(this->sessionId_);
}
void ModalUICallback::OnResultForModal(int32_t resultCode, const OHOS::AAFwk::Want &result)
{
HILOG_INFO("modal picker: OnResultForModal enter. resultCode is %{public}d,", resultCode);
HILOG_INFO("[picker] OnResultForModal enter. resultCode is %{public}d,", resultCode);
pickerCallBack_->resultCode = resultCode;
pickerCallBack_->want = result;
pickerCallBack_->ready = true;
@ -56,12 +56,12 @@ void ModalUICallback::OnResultForModal(int32_t resultCode, const OHOS::AAFwk::Wa
void ModalUICallback::OnReceive(const OHOS::AAFwk::WantParams &request)
{
HILOG_INFO("modal picker: OnReceive enter.");
HILOG_INFO("[picker] OnReceive enter.");
}
void ModalUICallback::OnDestroy()
{
HILOG_INFO("modal picker: OnDestroy enter.");
HILOG_INFO("[picker] OnDestroy enter.");
}
} // namespace Picker
} // namespace OHOS