IssueNo:I3EFNR

Description: avoid process TE in case not in active state
Sig:ace_engine_lite
Feature or Bugfix:Feature
Binary Source:No
This commit is contained in:
jiadexiang
2021-03-31 16:56:42 +08:00
parent a409ffbf6b
commit ef0672bbfa
2 changed files with 30 additions and 7 deletions
+11 -3
View File
@@ -58,14 +58,14 @@ public:
*
* @brief Call this function to active the application UI
*/
void Show() const;
void Show();
/**
* @fn JSAbility::Hide()
*
* @brief Call this function to move the current JS application to background
*/
void Hide() const;
void Hide();
/**
* @fn JSAbility::TransferToDestroy()
@@ -95,6 +95,13 @@ public:
*/
void ForceDestroy();
/**
* @fn JSAbility::IsRecycled()
*
* @brief Used for checking if the current ability is already teardown
*/
bool IsRecycled();
/**
* @fn JSAbility::HandleRenderTick()
*
@@ -111,7 +118,8 @@ public:
private:
// the holder of JS runtime and user' JS related environment
void *jsAbilityImpl_;
void *jsAbilityImpl_ = nullptr;
bool isActived_ = false;
}; // class JSAbility
} // namespace ACELite
} // namespace OHOS