mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
@@ -21,9 +21,9 @@
|
||||
*/
|
||||
static napi_module _module = {
|
||||
.nm_version = 0,
|
||||
.nm_modname = "app.ability.insightintent",
|
||||
.nm_filename = nullptr,
|
||||
.nm_register_func = OHOS::AbilityRuntime::JsInsightIntentInit,
|
||||
.nm_modname = "app.ability.insightintent",
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
*/
|
||||
static napi_module _module = {
|
||||
.nm_version = 0,
|
||||
.nm_modname = "app.ability.insightIntentDriver",
|
||||
.nm_filename = nullptr,
|
||||
.nm_register_func = OHOS::AbilityRuntime::JsInsightIntentDriverInit,
|
||||
.nm_modname = "app.ability.insightIntentDriver",
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -22,8 +22,8 @@ extern const char _binary_insight_intent_executor_abc_end[];
|
||||
|
||||
static napi_module _module = {
|
||||
.nm_version = 0,
|
||||
.nm_modname = "app.ability.InsightIntentExecutor",
|
||||
.nm_filename = "app/ability/insightintentexecutor_napi.so/insight_intent_executor.js",
|
||||
.nm_modname = "app.ability.InsightIntentExecutor",
|
||||
};
|
||||
|
||||
extern "C" __attribute__((constructor))
|
||||
|
||||
@@ -25,8 +25,8 @@ extern const char _binary_insight_intent_context_abc_end[];
|
||||
*/
|
||||
static napi_module _module = {
|
||||
.nm_version = 0,
|
||||
.nm_modname = "app.ability.InsightIntentContext",
|
||||
.nm_filename = "app/ability/insightintentcontext_napi.so",
|
||||
.nm_modname = "app.ability.InsightIntentContext",
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -54,7 +54,8 @@ namespace {
|
||||
const std::string PAGE_STACK_PROPERTY_NAME = "pageStack";
|
||||
const std::string SUPPORT_CONTINUE_PAGE_STACK_PROPERTY_NAME = "ohos.extra.param.key.supportContinuePageStack";
|
||||
#endif
|
||||
const int32_t BASE_DISPLAY_ID_NUM (10); // Numerical base (radix) that determines the valid characters and their interpretation.
|
||||
// Numerical base (radix) that determines the valid characters and their interpretation.
|
||||
const int32_t BASE_DISPLAY_ID_NUM (10);
|
||||
|
||||
napi_value PromiseCallback(napi_env env, napi_callback_info info)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,8 @@ void UIAbility::Init(const std::shared_ptr<AppExecFwk::AbilityInfo> &abilityInfo
|
||||
#ifdef SUPPORT_GRAPHICS
|
||||
continuationManager_ = std::make_shared<AppExecFwk::ContinuationManagerStage>();
|
||||
std::weak_ptr<AppExecFwk::ContinuationManagerStage> continuationManager = continuationManager_;
|
||||
continuationHandler_ = std::make_shared<AppExecFwk::ContinuationHandlerStage>(continuationManager, weak_from_this());
|
||||
continuationHandler_ =
|
||||
std::make_shared<AppExecFwk::ContinuationHandlerStage>(continuationManager, weak_from_this());
|
||||
if (!continuationManager_->Init(shared_from_this(), GetToken(), GetAbilityInfo(), continuationHandler_)) {
|
||||
continuationManager_.reset();
|
||||
} else {
|
||||
|
||||
@@ -32,7 +32,8 @@ public:
|
||||
* @param config Indicates the new Configuration object.
|
||||
* @param ability Indicates the new Ability object.
|
||||
*/
|
||||
virtual void OnConfigurationUpdated(const std::shared_ptr<AbilityRuntime::UIAbility> &ability, const Configuration &config) = 0;
|
||||
virtual void OnConfigurationUpdated(
|
||||
const std::shared_ptr<AbilityRuntime::UIAbility> &ability, const Configuration &config) = 0;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user