PowerState::SubscribePowerStateEvent
Registers the low-power callback function. This API is defined in power_state.h.
Syntax
HIAI_StatusT SubscribePowerStateEvent(PowerStateNotifyCallbackT notifyCallback)
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
notifyCallback |
Callback function that the user expects to register |
- |
Return Value
For details about the returned error codes, see "Error Codes."
Error Codes
No. |
Error Code |
Description |
---|---|---|
1 |
HIAI_OK |
The running is OK. |
2 |
HIAI_POWER_STATE_CALLBACK_ERROR |
A null pointer is returned when the app callback function is called. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot