mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-23 15:20:24 +00:00
!7244 增加CallerInfoQueryExtension
Merge pull request !7244 from zylworkhard1/master
This commit is contained in:
commit
aa7bf9408e
@ -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,
|
||||
|
@ -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 },
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user