nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ location_handler_register()

int location_handler_register ( location_event_handler_t  handler)

#include <include/modem/location.h>

Register handler for location events.

This function is not needed for clients that call location_init() and pass event handler into it.

Multiple event handlers can be registered.

Parameters
[in]handlerEvent handler.
Returns
0 on success, or negative error code on failure.
Return values
-EINVALThe handler was a NULL pointer.
-ENOMEMOut of memory.