mirror of
https://gitee.com/openharmony/useriam_user_auth_framework
synced 2024-11-23 07:39:51 +00:00
commit
f79d0e819a
@ -125,7 +125,7 @@ public:
|
||||
* The extension in the <b>STATE_FOREGROUND</b> state is visible.
|
||||
* You can override this function to implement your own processing logic.
|
||||
*/
|
||||
virtual void OnForeground(const Want &want) override;
|
||||
virtual void OnForeground(const Want &want, sptr<AAFwk::SessionInfo> sessionInfo) override;
|
||||
|
||||
/**
|
||||
* @brief Called when this extension enters the <b>STATE_BACKGROUND</b> state.
|
||||
|
@ -310,11 +310,13 @@ void JsUserAuthExtension::OnCommand(const AAFwk::Want &want, bool restart, int s
|
||||
IAM_LOGD("JsUserAuthExtension onCommand end.");
|
||||
}
|
||||
|
||||
void JsUserAuthExtension::OnForeground(const Want &want)
|
||||
void JsUserAuthExtension::OnForeground(const Want &want, sptr<AAFwk::SessionInfo> sessionInfo)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
IAM_LOGD("JsUserAuthExtension onForeground begin.");
|
||||
Extension::OnForeground(want);
|
||||
Extension::OnForeground(want, sessionInfo);
|
||||
|
||||
ForegroundWindow(want, sessionInfo);
|
||||
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
CallObjectMethod("onForeground");
|
||||
|
Loading…
Reference in New Issue
Block a user