diff --git a/interfaces/innerkits/include/continuous_task_callback_info.h b/interfaces/innerkits/include/continuous_task_callback_info.h index 07e5f7a1ab4e2644ab6081ffbf6e0f8d8dde82e6..fbfacc242cefbdf0d05a34d42f6930c93db23a80 100644 --- a/interfaces/innerkits/include/continuous_task_callback_info.h +++ b/interfaces/innerkits/include/continuous_task_callback_info.h @@ -29,7 +29,8 @@ public: ContinuousTaskCallbackInfo(); ContinuousTaskCallbackInfo(uint32_t typeId, int32_t creatorUid, pid_t creatorPid, std::string abilityName, bool isFromWebview = false) - : typeId_(typeId), creatorUid_(creatorUid), creatorPid_(creatorPid), abilityName_(abilityName), + : typeId_(typeId), creatorUid_(creatorUid), creatorPid_(creatorPid), + abilityName_(abilityName), isFromWebview_(isFromWebview) {} /** @@ -40,14 +41,14 @@ public: uint32_t GetTypeId() const; /** - * @brief Get the uid of notification crector. + * @brief Get the uid of notification creator. * * @return The uid of the notification creator. */ int32_t GetCreatorUid() const; /** - * @brief Get the pid of notification crector. + * @brief Get the pid of notification creator. * * @return The pid of the notification creator. */ @@ -74,6 +75,7 @@ public: * @return True if success, else false. */ bool Marshalling(Parcel &parcel) const override; + static ContinuousTaskCallbackInfo *Unmarshalling(Parcel &parcel); private: