RegisterObserver
Registers the observer of the player.
bool RegisterObserver(PlayerObserver *observer, Error *err);
- Since
- v4.5.0
Before calling this method, you need to implement a class that inherits from PlayerObserver.
Call timing
Call this method after Player.
Restrictions
None.
Parameters
- observer
- The delegate instance. See PlayerObserver.
- err
- The state or error information: Error.
Returns
Whether the registration is successful:
true: Registration succeeds.false: Registration fails.