template <>

class WireServer

Defined at line 1209 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::Provider>|

and |::fidl::ServerEnd

<

::fuchsia_location_gnss::Provider>|).

Public Methods

void GetSingleShotFix (::fuchsia_location_gnss::wire::ProviderGetSingleShotFixRequest * request, GetSingleShotFixCompleter::Sync & completer)

Get a single shot time-limited position fix with a

specified accuracy.

## Errors

Returns `GNSS_DISABLED` if GNSS is disabled.

Returns `MISSING_PARAMETERS` if all required fix parameters

are not provided in the request.

Returns `NOT_SUPPORTED` if this feature is not supported.

Returns `INTERNAL_ERROR` in case of any other unspecified issue.

void StartTimeBasedLocationTracking (::fuchsia_location_gnss::wire::ProviderStartTimeBasedLocationTrackingRequest * request, StartTimeBasedLocationTrackingCompleter::Sync & completer)

Start a location tracking session.

## Errors

Returns `GNSS_DISABLED` if GNSS is disabled.

Returns `MISSING_PARAMETERS` if all required fix parameters

are not provided in the request.

Returns `NOT_SUPPORTED` if this feature is not supported.

Returns `INTERNAL_ERROR` in case of any unspecified issue.

void GetCapabilities (GetCapabilitiesCompleter::Sync & completer)

Get the system's supported GNSS capabilities.

The system's supported capabilities are built from the platform capabilities

and the available GNSS devices.

void WireServer ()

Defined at line 1212 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 1213 of file fidling/gen/sdk/fidl/fuchsia.location.gnss/fuchsia.location.gnss/cpp/fidl/fuchsia.location.gnss/cpp/wire_messaging.h