Updated on 2022-03-13 GMT+08:00

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.