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 isUnusedIncluded Indicates whether to include unused forms. 390 * @param runningFormInfos Return the running forms' infos currently. 391 * @return Returns ERR_OK on success, others on failure. 392 */ 393 virtual ErrCode GetRunningFormInfos(bool isUnusedIncluded, std::vector<RunningFormInfo> &runningFormInfos) = 0; 394 395 /** 396 * @brief Get the running form infos by bundle name. 397 * @param bundleName Application name. 398 * @param isUnusedIncluded Indicates whether to include unused forms. 399 * @param runningFormInfos Return the running forms' infos of the specify application name. 400 * @return Returns ERR_OK on success, others on failure. 401 */ 402 virtual ErrCode GetRunningFormInfosByBundleName( 403 const std::string &bundleName, bool isUnusedIncluded, std::vector<RunningFormInfo> &runningFormInfos) = 0; 404 405 /** 406 * @brief Get form instances by filter info. 407 * @param formInstancesFilter includes bundleName, moduleName, formName, abilityName to get formInstances. 408 * @param formInstances return formInstances 409 * @return return ERR_OK on get info success, others on failure. 410 */ 411 virtual ErrCode GetFormInstancesByFilter(const FormInstancesFilter &formInstancesFilter, 412 std::vector<FormInstance> &formInstances) = 0; 413 414 /** 415 * @brief Get form instance by formId. 416 * @param formId formId Indicates the unique id of form. 417 * @param formInstance return formInstance 418 * @return return ERR_OK on get info success, others on failure. 419 */ 420 virtual ErrCode GetFormInstanceById(const int64_t formId, FormInstance &formInstance) = 0; 421 422 /** 423 * @brief Get form instance by formId, include form store in DB. 424 * @param formId formId Indicates the unique id of form. 425 * @param isUnusedIncluded Indicates whether to include unused form instance. 426 * @param formInstance return formInstance 427 * @return return ERR_OK on get info success, others on failure. 428 */ GetFormInstanceById(const int64_t formId,bool isUnusedIncluded,FormInstance & formInstance)429 virtual ErrCode GetFormInstanceById(const int64_t formId, bool isUnusedIncluded, FormInstance &formInstance) 430 { 431 return 0; 432 } 433 434 /** 435 * @brief Register form add observer. 436 * @param bundleName BundleName of the form host 437 * @param callerToken Caller ability token. 438 * @return Returns ERR_OK on success, others on failure. 439 */ 440 virtual ErrCode RegisterAddObserver(const std::string &bundleName, const sptr<IRemoteObject> &callerToken) = 0; 441 442 /** 443 * @brief Register form remove observer. 444 * @param bundleName BundleName of the form host 445 * @param callerToken Caller ability token. 446 * @return Returns ERR_OK on success, others on failure. 447 */ 448 virtual ErrCode RegisterRemoveObserver(const std::string &bundleName, const sptr<IRemoteObject> &callerToken) = 0; 449 450 /** 451 * @brief Register form router event proxy. 452 * @param formIds Indicates the id of the forms. 453 * @param callerToken Router proxy call back client. 454 * @return Returns ERR_OK on success, others on failure. 455 */ 456 virtual ErrCode RegisterFormRouterProxy(const std::vector<int64_t> &formIds, 457 const sptr<IRemoteObject> &callerToken) = 0; 458 459 /** 460 * @brief Unregister form router event proxy. 461 * @param formIds Indicates the id of the forms. 462 * @return Returns ERR_OK on success, others on failure. 463 */ 464 virtual ErrCode UnregisterFormRouterProxy(const std::vector<int64_t> &formIds) = 0; 465 466 /** 467 * @brief Update proxy form with formId. 468 * @param formId The Id of the form to update. 469 * @param FormProviderData Form binding data. 470 * @param std::vector<FormDataProxy> Form proxy vector. 471 * @return Returns ERR_OK on success, others on failure. 472 */ UpdateProxyForm(int64_t formId,const FormProviderData & FormProviderData,const std::vector<FormDataProxy> & formDataProxies)473 virtual ErrCode UpdateProxyForm(int64_t formId, const FormProviderData &FormProviderData, 474 const std::vector<FormDataProxy> &formDataProxies) { return ERR_OK; } 475 476 /** 477 * @brief Request to publish a proxy form to the form host. 478 * @param want The want of the form to publish. 479 * @param withFormBindingData Indicates whether the formBindingData is carried with. 480 * @param formBindingData Indicates the form data. 481 * @param formId Return the form id to be published. 482 * @param std::vector<FormDataProxy> Form proxy vector. 483 * @return Returns ERR_OK on success, others on failure. 484 */ RequestPublishProxyForm(Want & want,bool withFormBindingData,std::unique_ptr<FormProviderData> & formBindingData,int64_t & formId,const std::vector<FormDataProxy> & formDataProxies)485 virtual ErrCode RequestPublishProxyForm(Want &want, bool withFormBindingData, 486 std::unique_ptr<FormProviderData> &formBindingData, int64_t &formId, 487 const std::vector<FormDataProxy> &formDataProxies) { return ERR_OK; } 488 489 /** 490 * @brief Registers the callback to publish form. The callback is used to process the publish form request 491 * when the system handler is not found. 492 * @param interceptorCallback The injected callback, should implementation IFormPublishInterceptor. 493 * @return Returns ERR_OK on success, others on failure. 494 */ RegisterPublishFormInterceptor(const sptr<IRemoteObject> & interceptorCallback)495 virtual int32_t RegisterPublishFormInterceptor(const sptr<IRemoteObject> &interceptorCallback) 496 { 497 return 0; 498 } 499 500 /** 501 * @brief Unregisters the callback to publish form. The callback is used to process the publish form request 502 * when the system handler is not found. 503 * @param interceptorCallback The injected callback, should implementation IFormPublishInterceptor. 504 * @return Returns ERR_OK on success, others on failure. 505 */ UnregisterPublishFormInterceptor(const sptr<IRemoteObject> & interceptorCallback)506 virtual int32_t UnregisterPublishFormInterceptor(const sptr<IRemoteObject> &interceptorCallback) 507 { 508 return 0; 509 } 510 511 /** 512 * @brief Register click callback observer. 513 * @param bundleName BundleName of the form host. 514 * @param formEventType Form event type. 515 * @param observer Form click event callback listener. 516 * @return Returns ERR_OK on success, others on failure. 517 */ 518 virtual ErrCode RegisterClickEventObserver( 519 const std::string &bundleName, const std::string &formEventType, const sptr<IRemoteObject> &observer) = 0; 520 521 /** 522 * @brief Unregister click callback observer. 523 * @param bundleName BundleName of the form host. 524 * @param formEventType Form event type. 525 * @param observer Form click event callback listener. 526 * @return Returns ERR_OK on success, others on failure. 527 */ 528 virtual ErrCode UnregisterClickEventObserver( 529 const std::string &bundleName, const std::string &formEventType, const sptr<IRemoteObject> &observer) = 0; 530 531 /** 532 * @brief Set forms recyclable 533 * @param formIds Indicates the id of the forms. 534 * @return Returns ERR_OK on success, others on failure. 535 */ SetFormsRecyclable(const std::vector<int64_t> & formIds)536 virtual int32_t SetFormsRecyclable(const std::vector<int64_t> &formIds) 537 { 538 return 0; 539 } 540 541 /** 542 * @brief Recycle forms 543 * @param formIds Indicates the id of the forms. 544 * @param want The want of forms to be recycled. 545 * @return Returns ERR_OK on success, others on failure. 546 */ RecycleForms(const std::vector<int64_t> & formIds,const Want & want)547 virtual int32_t RecycleForms(const std::vector<int64_t> &formIds, const Want &want) 548 { 549 return 0; 550 } 551 552 /** 553 * @brief Recover recycled forms 554 * @param formIds Indicates the id of the forms. 555 * @param want The want of forms to be recovered. 556 * @return Returns ERR_OK on success, others on failure. 557 */ RecoverForms(const std::vector<int64_t> & formIds,const Want & want)558 virtual int32_t RecoverForms(const std::vector<int64_t> &formIds, const Want &want) 559 { 560 return 0; 561 } 562 563 enum class Message { 564 // ipc id 1-1000 for kit 565 // ipc id 1001-2000 for DMS 566 // ipc id 2001-3000 for tools 567 // ipc id for create (3001) 568 FORM_MGR_ADD_FORM = 3001, 569 FORM_MGR_ADD_FORM_OHOS, 570 FORM_MGR_DELETE_FORM, 571 FORM_MGR_UPDATE_FORM, 572 FORM_MGR_LIFECYCLE_UPDATE, 573 FORM_MGR_REQUEST_FORM, 574 FORM_MGR_RELEASE_FORM, 575 FORM_MGR_RELEASE_CACHED_FORM, 576 FORM_MGR_CAST_TEMP_FORM, 577 FORM_MGR_EVENT_NOTIFY, 578 FORM_MGR_CHECK_AND_DELETE_INVALID_FORMS, 579 FORM_MGR_SET_NEXT_REFRESH_TIME, 580 FORM_MGR_NOTIFY_FORM_WHETHER_VISIBLE, 581 FORM_MGR_STORAGE_FORM_INFOS, 582 FORM_MGR_FORM_INFOS_BY_NAME, 583 FORM_MGR_FORM_INFOS_BY_ID, 584 FORM_MGR_FORM_TIMER_INFO_BY_ID, 585 FORM_MGR_MESSAGE_EVENT, 586 FORM_MGR_BATCH_ADD_FORM_RECORDS_ST, 587 FORM_MGR_CLEAR_FORM_RECORDS_ST, 588 FORM_MGR_DISTRIBUTED_DATA_ADD_FORM__ST, 589 FORM_MGR_DISTRIBUTED_DATA_DELETE_FORM__ST, 590 FORM_MGR_DELETE_INVALID_FORMS, 591 FORM_MGR_ACQUIRE_FORM_STATE, 592 FORM_MGR_NOTIFY_FORMS_VISIBLE, 593 FORM_MGR_NOTIFY_FORMS_ENABLE_UPDATE, 594 FORM_MGR_GET_ALL_FORMS_INFO, 595 FORM_MGR_GET_FORMS_INFO_BY_APP, 596 FORM_MGR_GET_FORMS_INFO_BY_MODULE, 597 FORM_MGR_GET_FORMS_INFO, 598 FORM_MGR_ROUTER_EVENT, 599 FORM_MGR_UPDATE_ROUTER_ACTION, 600 FORM_MGR_ADD_FORM_INFO, 601 FORM_MGR_REMOVE_FORM_INFO, 602 FORM_MGR_REQUEST_PUBLISH_FORM, 603 FORM_MGR_IS_REQUEST_PUBLISH_FORM_SUPPORTED, 604 FORM_MGR_SHARE_FORM, 605 FORM_MGR_RECV_FORM_SHARE_INFO_FROM_REMOTE, 606 FORM_MGR_START_ABILITY, 607 FORM_MGR_NOTIFY_FORMS_PRIVACY_PROTECTED, 608 FORM_MGR_CHECK_FMS_READY, 609 FORM_MGR_BACKGROUND_EVENT, 610 FORM_MGR_STOP_RENDERING_FORM, 611 FORM_MGR_REGISTER_FORM_ADD_OBSERVER_BY_BUNDLE, 612 FORM_MGR_REGISTER_FORM_REMOVE_OBSERVER_BY_BUNDLE, 613 FORM_MGR_ACQUIRE_DATA, 614 FORM_MGR_GET_FORMS_COUNT, 615 FORM_MGR_GET_HOST_FORMS_COUNT, 616 FORM_MGR_GET_RUNNING_FORM_INFOS, 617 FORM_MGR_GET_RUNNING_FORM_INFOS_BY_BUNDLE, 618 FORM_MGR_GET_FORM_INSTANCES_FROM_BY_FILTER, 619 FORM_MGR_GET_FORM_INSTANCES_FROM_BY_ID, 620 FORM_MGR_REGISTER_ADD_OBSERVER, 621 FORM_MGR_REGISTER_REMOVE_OBSERVER, 622 FORM_MGR_UPDATE_PROXY_FORM, 623 FORM_MGR_REQUEST_PUBLISH_PROXY_FORM, 624 FORM_MGR_RELEASE_RENDERER, 625 FORM_MGR_REGISTER_PUBLISH_FORM_INTERCEPTOR, 626 FORM_MGR_UNREGISTER_PUBLISH_FORM_INTERCEPTOR, 627 FORM_MGR_REGISTER_CLICK_EVENT_OBSERVER, 628 FORM_MGR_UNREGISTER_CLICK_EVENT_OBSERVER, 629 FORM_MGR_REGISTER_FORM_ROUTER_PROXY, 630 FORM_MGR_UNREGISTER_FORM_ROUTER_PROXY, 631 FORM_MGR_SET_FORMS_RECYCLABLE, 632 FORM_MGR_RECYCLE_FORMS, 633 FORM_MGR_RECOVER_FORMS, 634 }; 635 }; 636 } // namespace AppExecFwk 637 } // namespace OHOS 638 #endif // OHOS_FORM_FWK_FORM_MGR_INTERFACE_H 639