Home
last modified time | relevance | path

Searched refs:photoType (Results 1 - 3 of 3) sorted by relevance

/foundation/multimedia/media_library/interfaces/kits/js/include/
H A Dconfirm_callback.h36 int32_t photoType; member
/foundation/multimedia/media_library/frameworks/js/src/
H A Dphotoaccesshelperinf.js246 // check whether photoType is number
247 if (!config.photoType) {
248 console.error('photoAccessHelper invalid, config.photoType is null.');
251 if (typeof config.photoType !== 'number') {
252 console.error('photoAccessHelper invalid, config.photoType type is not number.');
H A Dmedia_library_napi.cpp136 const std::string PHOTO_TYPE = "photoType";
141 const std::string SHORT_TERM_PHOTO_TYPE = "photoType";
8100 // photoType: mandatory in ParseConfigObject()
8102 CHECK_COND_RET(IsNeedParseProperty(env, value, PHOTO_TYPE, property, type), false, "Lack param photoType."); in ParseConfigObject()
8103 CHECK_COND_RET(napi_get_value_int32(env, property, &(config.photoType)) == napi_ok, false, in ParseConfigObject()
8105 CHECK_COND_RET(((config.photoType == static_cast<int32_t>(MediaType::MEDIA_TYPE_IMAGE)) || ( in ParseConfigObject()
8106 (config.photoType) == static_cast<int32_t>(MediaType::MEDIA_TYPE_VIDEO))), false, in ParseConfigObject()
8107 "Param photoType is not valid."); in ParseConfigObject()
8151 photoTypeList.emplace_back(config.photoType); in ParseAndSetConfigArray()
8302 want.SetParam(SHORT_TERM_PHOTO_TYPE, config.photoType); in InitShortTermRequest()
[all...]

Completed in 16 milliseconds