Package: android.hardware.gnss@1.0

IAGnss

interface IAGnss

Extended interface for AGNSS support.

Properties

ApnIpType

enum ApnIpType: uint8_t
Details
Members
INVALID = 0
IPV4 = 1
IPV6 = 2
IPV4V6 = 3
Annotations
export
name="" , value_prefix="APN_IP_"

Methods

setCallback

setCallback (IAGnssCallback callback)

Opens the AGNSS interface and provides the callback routines to the implementation of this interface.

Details
Parameters
callback
Handle to the AGNSS status callback interface.

dataConnClosed

dataConnClosed ()
generates (bool success)

Notifies that the AGNSS data connection has been closed.

Details
Generates
success
True if the operation is successful.

dataConnFailed

dataConnFailed ()
generates (bool success)

Notifies that a data connection is not available for AGNSS.

Details
Generates
success
True if the operation is successful.

setServer

setServer (AGnssType type, string hostname, int32_t port)
generates (bool success)

Sets the hostname and port for the AGNSS server.

Details
Parameters
type
Specifies if SUPL or C2K.
hostname
Hostname of the AGNSS server.
port
Port number associated with the server.
Generates
success
True if the operation is successful.

dataConnOpen

dataConnOpen (string apn, ApnIpType apnIpType)
generates (bool success)

Notifies that a data connection is available and sets the name of the APN, and its IP type, to be used for SUPL connections.

Details
Parameters
apn
Access Point Name(follows regular APN naming convention).
apnIpType
Specifies if SUPL or C2K.
Generates
success
True if the operation is successful.