!7244 增加CallerInfoQueryExtension

Merge pull request !7244 from zylworkhard1/master
This commit is contained in:
openharmony_ci 2024-10-18 12:00:40 +00:00 committed by Gitee
commit aa7bf9408e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 0 deletions

View File

@ -73,6 +73,7 @@ enum class ExtensionAbilityType {
INSIGHT_INTENT_UI = 22,
PHOTO_EDITOR = 23,
FENCE = 24,
CALLER_INFO_QUERY = 25,
UNSPECIFIED = 255,
UI = 256,
HMS_ACCOUNT = 257,

View File

@ -118,6 +118,7 @@ const std::unordered_map<std::string, ExtensionAbilityType> EXTENSION_TYPE_MAP =
{ "autoFill/smart", ExtensionAbilityType::AUTO_FILL_SMART },
{ "liveViewLockScreen", ExtensionAbilityType::LIVEVIEW_LOCKSCREEN },
{ "photoEditor", ExtensionAbilityType::PHOTO_EDITOR },
{ "callerInfoQuery", ExtensionAbilityType::CALLER_INFO_QUERY },
{ "sysPicker/photoEditor", ExtensionAbilityType::SYSPICKER_PHOTOEDITOR },
{ "sys/visualExtension", ExtensionAbilityType::SYS_VISUAL },
{ "uiService", ExtensionAbilityType::UI_SERVICE },

View File

@ -3290,6 +3290,11 @@ void CreateExtensionAbilityTypeObject(napi_env env, napi_value value)
NAPI_CALL_RETURN_VOID(env, napi_create_int32(env,
static_cast<int32_t>(ExtensionAbilityType::PHOTO_EDITOR), &nPhotoEditor));
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "PHOTO_EDITOR", nPhotoEditor));
napi_value nCallerInfoQuery;
NAPI_CALL_RETURN_VOID(env, napi_create_int32(env,
static_cast<int32_t>(ExtensionAbilityType::CALLER_INFO_QUERY), &nCallerInfoQuery));
NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "CALLER_INFO_QUERY", nCallerInfoQuery));
}
void CreateApplicationFlagObject(napi_env env, napi_value value)