!10549 支持三方应用控制启动页关闭

Merge pull request !10549 from yecong2332/appRemoveStartingWindow
This commit is contained in:
openharmony_ci 2024-11-07 07:36:55 +00:00 committed by Gitee
commit 2f770e4ca3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 13 additions and 0 deletions

View File

@ -525,6 +525,8 @@ public:
WSError RemoveStartingWindow() override;
void SetEnableRemoveStartingWindow(bool enableRemoveStartingWindow);
bool GetEnableRemoveStartingWindow() const;
void SetAppBufferReady(bool appBufferReady);
bool GetAppBufferReady() const;
protected:
class SessionLifeCycleTask : public virtual RefBase {
@ -795,6 +797,7 @@ private:
* Starting Window
*/
bool enableRemoveStartingWindow_ {false};
bool appBufferReady_ {false};
};
} // namespace OHOS::Rosen

View File

@ -2832,6 +2832,16 @@ bool Session::GetEnableRemoveStartingWindow() const
return enableRemoveStartingWindow_;
}
void Session::SetAppBufferReady(bool appBufferReady)
{
appBufferReady_ = appBufferReady;
}
bool Session::GetAppBufferReady() const
{
return appBufferReady_;
}
WindowType Session::GetWindowType() const
{
auto property = GetSessionProperty();