1 /* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_FORM_FWK_FORM_MGR_INTERFACE_H 17 #define OHOS_FORM_FWK_FORM_MGR_INTERFACE_H 18 19 #include <vector> 20 #include "form_info.h" 21 #include "form_info_filter.h" 22 #include "form_instance.h" 23 #include "form_instances_filter.h" 24 #include "form_js_info.h" 25 #include "form_provider_data.h" 26 #include "form_provider_data_proxy.h" 27 #include "form_share_info.h" 28 #include "form_state_info.h" 29 #include "ipc_types.h" 30 #include "iremote_broker.h" 31 #include "running_form_info.h" 32 33 #include "want.h" 34 35 namespace OHOS { 36 namespace AppExecFwk { 37 using OHOS::AAFwk::Want; 38 39 /** 40 * @class IFormMgr 41 * IFormMgr interface is used to access form manager service. 42 */ 43 class IFormMgr : public OHOS::IRemoteBroker { 44 public: 45 DECLARE_INTERFACE_DESCRIPTOR(u"ohos.appexecfwk.FormMgr") 46 47 /** 48 * @brief Add form with want, send want to form manager service. 49 * @param formId The Id of the forms to add. 50 * @param want The want of the form to add. 51 * @param callerToken Caller ability token. 52 * @param formInfo Form info. 53 * @return Returns ERR_OK on success, others on failure. 54 */ 55 virtual int AddForm(const int64_t formId, const Want &want, const sptr<IRemoteObject> &callerToken, 56 FormJsInfo &formInfo) = 0; 57 58 /** 59 * @brief Delete forms with formIds, send formIds to form manager service. 60 * @param formId The Id of the forms to delete. 61 * @param callerToken Caller ability token. 62 * @return Returns ERR_OK on success, others on failure. 63 */ 64 virtual int DeleteForm(const int64_t formId, const sptr<IRemoteObject> &callerToken) = 0; 65 66 /** 67 * @brief Stop rendering form. 68 * @param formId The Id of the forms to delete. 69 * @param compId The compId of the forms to delete. 70 * @return Returns ERR_OK on success, others on failure. 71 */ StopRenderingForm(const int64_t formId,const std::string & compId)72 virtual int StopRenderingForm(const int64_t formId, const std::string &compId) 73 { 74 return ERR_OK; 75 }; 76 77 /** 78 * @brief Release forms with formIds, send formIds to form manager service. 79 * @param formId The Id of the forms to release. 80 * @param callerToken Caller ability token. 81 * @param delCache Delete Cache or not. 82 * @return Returns ERR_OK on success, others on failure. 83 */ 84 virtual int ReleaseForm(const int64_t formId, const sptr<IRemoteObject> &callerToken, const bool delCache) = 0; 85 86 /** 87 * @brief Update form with formId, send formId to form manager service. 88 * @param formId The Id of the form to update. 89 * @param formProviderData Form binding data. 90 * @return Returns ERR_OK on success, others on failure. 91 */ 92 virtual int UpdateForm(const int64_t formId, const FormProviderData &formProviderData) = 0; 93 94 /** 95 * @brief Set next refresh time. 96 * @param formId The Id of the form to update. 97 * @param nextTime Next refresh time. 98 * @return Returns ERR_OK on success, others on failure. 99 */ 100 virtual int SetNextRefreshTime(const int64_t formId, const int64_t nextTime) = 0; 101 102 /** 103 * @brief Release renderer. 104 * @param formId The Id of the forms to release. 105 * @param compId The compId of the forms to release. 106 * @return Returns ERR_OK on success, others on failure. 107 */ ReleaseRenderer(int64_t formId,const std::string & compId)108 virtual int ReleaseRenderer(int64_t formId, const std::string &compId) { return ERR_OK; } 109 110 /** 111 * @brief Request to publish a form to the form host. 112 * 113 * @param want The want of the form to publish. 114 * @param withFormBindingData Indicates whether the formBindingData is carried with. 115 * @param formBindingData Indicates the form data. 116 * @param formId Return the form id to be published. 117 * @return Returns ERR_OK on success, others on failure. 118 */ 119 virtual ErrCode RequestPublishForm(Want &want, bool withFormBindingData, 120 std::unique_ptr<FormProviderData> &formBindingData, int64_t &formId) = 0; 121 122 /** 123 * @brief Lifecycle update. 124 * @param formIds The Id of the forms. 125 * @param callerToken Caller ability token. 126 * @param updateType update type, enable if true and disable if false. 127 * @return Returns ERR_OK on success, others on failure. 128 */ 129 virtual int LifecycleUpdate(const std::vector<int64_t> &formIds, const sptr<IRemoteObject> &callerToken, 130 bool updateType) = 0; 131 132 /** 133 * @brief Request form with formId and want, send formId and want to form manager service. 134 * @param formId The Id of the form to request. 135 * @param callerToken Caller ability token. 136 * @param want The want of the form to add. 137 * @return Returns ERR_OK on success, others on failure. 138 */ 139 virtual int RequestForm(const int64_t formId, const sptr<IRemoteObject> &callerToken, const Want &want) = 0; 140 141 /** 142 * @brief Form visible/invisible notify, send formIds to form manager service. 143 * @param formIds The Id list of the forms to notify. 144 * @param callerToken Caller ability token. 145 * @param formVisibleType The form visible type, including FORM_VISIBLE and FORM_INVISIBLE. 146 * @return Returns ERR_OK on success, others on failure. 147 */ 148 virtual int NotifyWhetherVisibleForms(const std::vector<int64_t> &formIds, const sptr<IRemoteObject> &callerToken, 149 const int32_t formVisibleType) = 0; 150 151 /** 152 * @brief temp form to normal form. 153 * @param formId The Id of the form. 154 * @param callerToken Caller ability token. 155 * @return Returns ERR_OK on success, others on failure. 156 */ 157 virtual int CastTempForm(const int64_t formId, const sptr<IRemoteObject> &callerToken) = 0; 158 159 /** 160 * @brief Dump all of form storage infos. 161 * @param formInfos All of form storage infos. 162 * @return Returns ERR_OK on success, others on failure. 163 */ 164 virtual int DumpStorageFormInfos(std::string &formInfos) = 0; 165 /** 166 * @brief Dump form info by a bundle name. 167 * @param bundleName The bundle name of form provider. 168 * @param formInfos Form infos. 169 * @return Returns ERR_OK on success, others on failure. 170 */ 171 virtual int DumpFormInfoByBundleName(const std::string &bundleName, std::string &formInfos) = 0; 172 /** 173 * @brief Dump form info by a bundle name. 174 * @param formId The id of the form. 175 * @param formInfo Form info. 176 * @return Returns ERR_OK on success, others on failure. 177 */ 178 virtual int DumpFormInfoByFormId(const std::int64_t formId, std::string &formInfo) = 0; 179 /** 180 * @brief Dump form timer by form id. 181 * @param formId The id of the form. 182 * @param formInfo Form timer. 183 * @return Returns ERR_OK on success, others on failure. 184 */ 185 virtual int DumpFormTimerByFormId(const std::int64_t formId, std::string &isTimingService) = 0; 186 /** 187 * @brief Process js message event. 188 * @param formId Indicates the unique id of form. 189 * @param want information passed to supplier. 190 * @param callerToken Caller ability token. 191 * @return Returns true if execute success, false otherwise. 192 */ 193 virtual int MessageEvent(const int64_t formId, const Want &want, const sptr<IRemoteObject> &callerToken) = 0; 194 195 /** 196 * @brief Process Background event. 197 * @param formId Indicates the unique id of form. 198 * @param want the want of the ability to start. 199 * @param callerToken Caller ability token. 200 * @return Returns true if execute success, false otherwise. 201 */ 202 virtual int BackgroundEvent(const int64_t formId, Want &want, const sptr<IRemoteObject> &callerToken) = 0; 203 204 /** 205 * @brief Process js router event. 206 * @param formId Indicates the unique id of form. 207 * @param want the want of the ability to start. 208 * @param callerToken Caller ability token. 209 * @return Returns true if execute success, false otherwise. 210 */ 211 virtual int RouterEvent(const int64_t formId, Want &want, const sptr<IRemoteObject> &callerToken) = 0; 212 213 /** 214 * @brief Delete the invalid forms. 215 * @param formIds Indicates the ID of the valid forms. 216 * @param callerToken Caller ability token. 217 * @param numFormsDeleted Returns the number of the deleted forms. 218 * @return Returns ERR_OK on success, others on failure. 219 */ 220 virtual int DeleteInvalidForms(const std::vector<int64_t> &formIds, const sptr<IRemoteObject> &callerToken, 221 int32_t &numFormsDeleted) = 0; 222 223 /** 224 * @brief Acquire form state info by passing a set of parameters (using Want) to the form provider. 225 * @param want Indicates a set of parameters to be transparently passed to the form provider. 226 * @param callerToken Caller ability token. 227 * @param stateInfo Returns the form's state info of the specify. 228 * @return Returns ERR_OK on success, others on failure. 229 */ 230 virtual int AcquireFormState(const Want &want, const sptr<IRemoteObject> &callerToken, 231 FormStateInfo &stateInfo) = 0; 232 233 /** 234 * @brief Notify the form is visible or not. 235 * @param formIds Indicates the ID of the forms. 236 * @param isVisible Visible or not. 237 * @param callerToken Host client. 238 * @return Returns ERR_OK on success, others on failure. 239 */ 240 virtual int NotifyFormsVisible(const std::vector<int64_t> &formIds, bool isVisible, 241 const sptr<IRemoteObject> &callerToken) = 0; 242 243 /** 244 * @brief Notify the form is privacy protected or not. 245 * @param formIds Indicates the ID of the forms. 246 * @param isProtected isProtected or not. 247 * @param callerToken Host client. 248 * @return Returns ERR_OK on success, others on failure. 249 */ 250 virtual int NotifyFormsPrivacyProtected(const std::vector<int64_t> &formIds, bool isProtected, 251 const sptr<IRemoteObject> &callerToken) = 0; 252 253 /** 254 * @brief Notify the form is enable to be updated or not. 255 * @param formIds Indicates the ID of the forms. 256 * @param isEnableUpdate enable update or not. 257 * @param callerToken Host client. 258 * @return Returns ERR_OK on success, others on failure. 259 */ 260 virtual int NotifyFormsEnableUpdate(const std::vector<int64_t> &formIds, bool isEnableUpdate, 261 const sptr<IRemoteObject> &callerToken) = 0; 262 263 /** 264 * @brief Get All FormsInfo. 265 * @param formInfos Return the forms' information of all forms provided. 266 * @return Returns ERR_OK on success, others on failure. 267 */ 268 virtual int GetAllFormsInfo(std::vector<FormInfo> &formInfos) = 0; 269 270 /** 271 * @brief Get forms info by bundle name . 272 * @param bundleName Application name. 273 * @param formInfos Return the forms' information of the specify application name. 274 * @return Returns ERR_OK on success, others on failure. 275 */ 276 virtual int GetFormsInfoByApp(std::string &bundleName, std::vector<FormInfo> &formInfos) = 0; 277 278 /** 279 * @brief Get forms info by bundle name and module name. 280 * @param bundleName bundle name. 281 * @param moduleName Module name of hap. 282 * @param formInfos Return the forms' information of the specify bundle name and module name. 283 * @return Returns ERR_OK on success, others on failure. 284 */ 285 virtual int GetFormsInfoByModule(std::string &bundleName, std::string &moduleName, 286 std::vector<FormInfo> &formInfos) = 0; 287 288 /** 289 * @brief This function is called by formProvider and gets forms info by the bundle name of the calling ability. 290 * The bundle name will be retrieved by form service manager. 291 * @param filter Filter that contains attributes that the formInfos have to have. 292 * @param formInfos Return the forms' information of the calling bundle name 293 * @return Returns ERR_OK on success, others on failure. 294 */ 295 virtual int32_t GetFormsInfo(const FormInfoFilter &filter, std::vector<FormInfo> &formInfos) = 0; 296 297 /** 298 * @brief Check if the request of publishing a form is supported by the host. 299 * @return Returns true if the request is supported and false otherwise. 300 */ 301 virtual bool IsRequestPublishFormSupported() = 0; 302 303 /** 304 * @brief Start an ability. This function can only be called by a form extension of a system app. 305 * @param want includes ability name, parameters and relative info sending to an ability. 306 * @param callerToken token of the ability that initially calls this function. 307 * @return Returns ERR_OK on success, others on failure. 308 */ 309 virtual int32_t StartAbility(const Want &want, const sptr<IRemoteObject> &callerToken) = 0; 310 311 /** 312 * @brief Share form by formID and deviceID. 313 * @param formId Indicates the unique id of form. 314 * @param deviceId Indicates the remote device ID. 315 * @param callerToken Host client. 316 * @param requestCode Indicates the request code of this share form. 317 * @return Returns ERR_OK on success, others on failure. 318 */ 319 virtual int32_t ShareForm(int64_t formId, const std::string &deviceId, const sptr<IRemoteObject> &callerToken, 320 int64_t requestCode) = 0; 321 322 /** 323 * @brief Acquire form data by formId. 324 * @param formId The Id of the form to acquire data. 325 * @param requestCode The request code of this form. 326 * @param callerToken Indicates the host client. 327 * @param formData Return the forms' information of customization 328 * @return Returns ERR_OK on success, others on failure. 329 */ 330 virtual int32_t AcquireFormData(int64_t formId, int64_t requestCode, const sptr<IRemoteObject> &callerToken, 331 AAFwk::WantParams &formData) = 0; 332 333 /** 334 * @brief Receive form sharing information from remote. 335 * @param info Indicates form sharing information. 336 * @return Returns ERR_OK on success, others on failure. 337 */ 338 virtual int32_t RecvFormShareInfoFromRemote(const FormShareInfo &info) = 0; 339 340 /** 341 * @brief Check form manager service ready. 342 * @return Return true if form manager service Ready; return false otherwise. 343 */ 344 virtual bool CheckFMSReady() = 0; 345 346 /** 347 * @brief Register form add observer by bundle. 348 * @param bundleName BundleName of the form host 349 * @param callerToken Caller ability token. 350 * @return Returns ERR_OK on success, others on failure. 351 */ 352 virtual ErrCode RegisterFormAddObserverByBundle(const std::string bundleName, 353 const sptr<IRemoteObject> &callerToken) = 0; 354 355 /** 356 * @brief Register form remove observer by bundle. 357 * @param bundleName BundleName of the form host 358 * @param callerToken Caller ability token. 359 * @return Returns ERR_OK on success, others on failure. 360 */ 361 virtual ErrCode RegisterFormRemoveObserverByBundle(const std::string bundleName, 362 const sptr<IRemoteObject> &callerToken) = 0; 363 364 /** 365 * @brief The Call Event triggers the callee method. 366 * @param funcName function name which is used by callee. 367 * @param params parameter which is used by callee. 368 * @return Returns ERR_OK on success, others on failure. 369 */ 370 virtual int32_t SetBackgroundFunction(const std::string funcName, const std::string params) = 0; 371 /** 372 * @brief get forms count. 373 * @param isTempFormFlag Indicates temp form or not. 374 * @param formCount Returns the number of the cast or temp form. 375 * @return Returns ERR_OK on success, others on failure. 376 */ 377 virtual int32_t GetFormsCount(bool isTempFormFlag, int32_t &formCount) = 0; 378 379 /** 380 * @brief get host forms count. 381 * @param bundleName Indicates form host bundleName. 382 * @param formCount Returns the number of the host form. 383 * @return Returns ERR_OK on success, others on failure. 384 */ 385 virtual int32_t GetHostFormsCount(std::string &bundleName, int32_t &formCount) = 0; 386 387 /** 388 * @brief Get the running form infos. 389 * @param runningFormInfos Return the running forms' infos currently. 390 * @return Returns ERR_OK on success, others on failure. 391 */ 392 virtual ErrCode GetRunningFormInfos(std::vector<RunningFormInfo> &runningFormInfos) = 0; 393 394 /** 395 * @brief Get the running form infos by bundle name. 396 * @param bundleName Application name. 397 * @param runningFormInfos Return the running forms' infos of the specify application name. 398 * @return Returns ERR_OK on success, others on failure. 399 */ 400 virtual ErrCode GetRunningFormInfosByBundleName(const std::string &bundleName, 401 std::vector<RunningFormInfo> &runningFormInfos) = 0; 402 403 /** 404 * @brief Get form instances by filter info. 405 * @param formInstancesFilter includes bundleName, moduleName, formName, abilityName to get formInstances. 406 * @param formInstances return formInstances 407 * @return return ERR_OK on get info success, others on failure. 408 */ 409 virtual ErrCode GetFormInstancesByFilter(const FormInstancesFilter &formInstancesFilter, 410 std::vector<FormInstance> &formInstances) = 0; 411 412 /** 413 * @brief Get form instance by formId. 414 * @param formId formId Indicates the unique id of form. 415 * @param formInstance return formInstance 416 * @return return ERR_OK on get info success, others on failure. 417 */ 418 virtual ErrCode GetFormInstanceById(const int64_t formId, FormInstance &formInstance) = 0; 419 420 /** 421 * @brief Get form instance by formId, include form store in DB. 422 * @param formId formId Indicates the unique id of form. 423 * @param isIncludeUnused Indicates whether to include unused form instance. 424 * @param formInstance return formInstance 425 * @return return ERR_OK on get info success, others on failure. 426 */ GetFormInstanceById(const int64_t formId,bool isIncludeUnused,FormInstance & formInstance)427 virtual ErrCode GetFormInstanceById(const int64_t formId, bool isIncludeUnused, FormInstance &formInstance) 428 { 429 return 0; 430 } 431 432 /** 433 * @brief Register form add observer. 434 * @param bundleName BundleName of the form host 435 * @param callerToken Caller ability token. 436 * @return Returns ERR_OK on success, others on failure. 437 */ 438 virtual ErrCode RegisterAddObserver(const std::string &bundleName, const sptr<IRemoteObject> &callerToken) = 0; 439 440 /** 441 * @brief Register form remove observer. 442 * @param bundleName BundleName of the form host 443 * @param callerToken Caller ability token. 444 * @return Returns ERR_OK on success, others on failure. 445 */ 446 virtual ErrCode RegisterRemoveObserver(const std::string &bundleName, const sptr<IRemoteObject> &callerToken) = 0; 447 448 /** 449 * @brief Update proxy form with formId. 450 * @param formId The Id of the form to update. 451 * @param FormProviderData Form binding data. 452 * @param std::vector<FormDataProxy> Form proxy vector. 453 * @return Returns ERR_OK on success, others on failure. 454 */ UpdateProxyForm(int64_t formId,const FormProviderData & FormProviderData,const std::vector<FormDataProxy> & formDataProxies)455 virtual ErrCode UpdateProxyForm(int64_t formId, const FormProviderData &FormProviderData, 456 const std::vector<FormDataProxy> &formDataProxies) { return ERR_OK; } 457 458 /** 459 * @brief Request to publish a proxy form to the form host. 460 * @param want The want of the form to publish. 461 * @param withFormBindingData Indicates whether the formBindingData is carried with. 462 * @param formBindingData Indicates the form data. 463 * @param formId Return the form id to be published. 464 * @param std::vector<FormDataProxy> Form proxy vector. 465 * @return Returns ERR_OK on success, others on failure. 466 */ RequestPublishProxyForm(Want & want,bool withFormBindingData,std::unique_ptr<FormProviderData> & formBindingData,int64_t & formId,const std::vector<FormDataProxy> & formDataProxies)467 virtual ErrCode RequestPublishProxyForm(Want &want, bool withFormBindingData, 468 std::unique_ptr<FormProviderData> &formBindingData, int64_t &formId, 469 const std::vector<FormDataProxy> &formDataProxies) { return ERR_OK; } 470 471 /** 472 * @brief Registers the callback to publish form. The callback is used to process the publish form request 473 * when the system handler is not found. 474 * @param interceptorCallback The injected callback, should implementation IFormPublishInterceptor. 475 * @return Returns ERR_OK on success, others on failure. 476 */ RegisterPublishFormInterceptor(const sptr<IRemoteObject> & interceptorCallback)477 virtual int32_t RegisterPublishFormInterceptor(const sptr<IRemoteObject> &interceptorCallback) 478 { 479 return 0; 480 } 481 482 /** 483 * @brief Unregisters the callback to publish form. The callback is used to process the publish form request 484 * when the system handler is not found. 485 * @param interceptorCallback The injected callback, should implementation IFormPublishInterceptor. 486 * @return Returns ERR_OK on success, others on failure. 487 */ UnregisterPublishFormInterceptor(const sptr<IRemoteObject> & interceptorCallback)488 virtual int32_t UnregisterPublishFormInterceptor(const sptr<IRemoteObject> &interceptorCallback) 489 { 490 return 0; 491 } 492 493 enum class Message { 494 // ipc id 1-1000 for kit 495 // ipc id 1001-2000 for DMS 496 // ipc id 2001-3000 for tools 497 // ipc id for create (3001) 498 FORM_MGR_ADD_FORM = 3001, 499 FORM_MGR_ADD_FORM_OHOS, 500 FORM_MGR_DELETE_FORM, 501 FORM_MGR_UPDATE_FORM, 502 FORM_MGR_LIFECYCLE_UPDATE, 503 FORM_MGR_REQUEST_FORM, 504 FORM_MGR_RELEASE_FORM, 505 FORM_MGR_RELEASE_CACHED_FORM, 506 FORM_MGR_CAST_TEMP_FORM, 507 FORM_MGR_EVENT_NOTIFY, 508 FORM_MGR_CHECK_AND_DELETE_INVALID_FORMS, 509 FORM_MGR_SET_NEXT_REFRESH_TIME, 510 FORM_MGR_NOTIFY_FORM_WHETHER_VISIBLE, 511 FORM_MGR_STORAGE_FORM_INFOS, 512 FORM_MGR_FORM_INFOS_BY_NAME, 513 FORM_MGR_FORM_INFOS_BY_ID, 514 FORM_MGR_FORM_TIMER_INFO_BY_ID, 515 FORM_MGR_MESSAGE_EVENT, 516 FORM_MGR_BATCH_ADD_FORM_RECORDS_ST, 517 FORM_MGR_CLEAR_FORM_RECORDS_ST, 518 FORM_MGR_DISTRIBUTED_DATA_ADD_FORM__ST, 519 FORM_MGR_DISTRIBUTED_DATA_DELETE_FORM__ST, 520 FORM_MGR_DELETE_INVALID_FORMS, 521 FORM_MGR_ACQUIRE_FORM_STATE, 522 FORM_MGR_NOTIFY_FORMS_VISIBLE, 523 FORM_MGR_NOTIFY_FORMS_ENABLE_UPDATE, 524 FORM_MGR_GET_ALL_FORMS_INFO, 525 FORM_MGR_GET_FORMS_INFO_BY_APP, 526 FORM_MGR_GET_FORMS_INFO_BY_MODULE, 527 FORM_MGR_GET_FORMS_INFO, 528 FORM_MGR_ROUTER_EVENT, 529 FORM_MGR_UPDATE_ROUTER_ACTION, 530 FORM_MGR_ADD_FORM_INFO, 531 FORM_MGR_REMOVE_FORM_INFO, 532 FORM_MGR_REQUEST_PUBLISH_FORM, 533 FORM_MGR_IS_REQUEST_PUBLISH_FORM_SUPPORTED, 534 FORM_MGR_SHARE_FORM, 535 FORM_MGR_RECV_FORM_SHARE_INFO_FROM_REMOTE, 536 FORM_MGR_START_ABILITY, 537 FORM_MGR_NOTIFY_FORMS_PRIVACY_PROTECTED, 538 FORM_MGR_CHECK_FMS_READY, 539 FORM_MGR_BACKGROUND_EVENT, 540 FORM_MGR_STOP_RENDERING_FORM, 541 FORM_MGR_REGISTER_FORM_ADD_OBSERVER_BY_BUNDLE, 542 FORM_MGR_REGISTER_FORM_REMOVE_OBSERVER_BY_BUNDLE, 543 FORM_MGR_ACQUIRE_DATA, 544 FORM_MGR_GET_FORMS_COUNT, 545 FORM_MGR_GET_HOST_FORMS_COUNT, 546 FORM_MGR_GET_RUNNING_FORM_INFOS, 547 FORM_MGR_GET_RUNNING_FORM_INFOS_BY_BUNDLE, 548 FORM_MGR_GET_FORM_INSTANCES_FROM_BY_FILTER, 549 FORM_MGR_GET_FORM_INSTANCES_FROM_BY_ID, 550 FORM_MGR_REGISTER_ADD_OBSERVER, 551 FORM_MGR_REGISTER_REMOVE_OBSERVER, 552 FORM_MGR_UPDATE_PROXY_FORM, 553 FORM_MGR_REQUEST_PUBLISH_PROXY_FORM, 554 FORM_MGR_RELEASE_RENDERER, 555 FORM_MGR_REGISTER_PUBLISH_FORM_INTERCEPTOR, 556 FORM_MGR_UNREGISTER_PUBLISH_FORM_INTERCEPTOR, 557 }; 558 }; 559 } // namespace AppExecFwk 560 } // namespace OHOS 561 #endif // OHOS_FORM_FWK_FORM_MGR_INTERFACE_H 562