template <>

class WireServer

Defined at line 359 of file fidling/gen/sdk/fidl/fuchsia.location.gnss/fuchsia.location.gnss/cpp/fidl/fuchsia.location.gnss/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_location_gnss::LocationListener>|

and |::fidl::ServerEnd

<

::fuchsia_location_gnss::LocationListener>|).

Public Methods

void GetNextLocation (GetNextLocationCompleter::Sync & completer)

Hanging-get to obtain next location in the tracking session.

This call blocks until a new location is is available.

## Errors

Returns `GNSS_DISABLED` if GNSS is disabled.

Returns `TIMEOUT` if time out occurred before obtaining an initial

location of desired accuracy.

Returns `INTERNAL_ERROR` in case of any unspecified issue.

Returns `BAD_STATE` when there is a pending GetNextLocation call.

void WireServer ()

Defined at line 362 of file fidling/gen/sdk/fidl/fuchsia.location.gnss/fuchsia.location.gnss/cpp/fidl/fuchsia.location.gnss/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 363 of file fidling/gen/sdk/fidl/fuchsia.location.gnss/fuchsia.location.gnss/cpp/fidl/fuchsia.location.gnss/cpp/wire_messaging.h