mirror of
https://gitee.com/openharmony/filemanagement_user_file_service
synced 2024-11-26 17:10:55 +00:00
update interfaces/kits/picker/src/modal_ui_callback.cpp.
Signed-off-by: BrainL <libuyan1@huawei.com>
This commit is contained in:
parent
1302c5176e
commit
b863e5dc51
@ -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
|
Loading…
Reference in New Issue
Block a user