public final class Position extends Object
Position.Handle.onLocation(net.java.html.geo.Position)
method. The
class getters mimic closely the structure of the position object as
specified by
W3C's Geolocation API.Modifier and Type | Class and Description |
---|---|
static class |
Position.Coordinates
Actual location of a
Position . |
static class |
Position.Handle
Rather than subclassing this class directly consider using
OnLocation
annotation. |
Constructor and Description |
---|
Position(long timestamp,
Position.Coordinates coords) |
Modifier and Type | Method and Description |
---|---|
Position.Coordinates |
getCoords()
The actual location of the position.
|
long |
getTimestamp()
The time when the position has been recorded.
|
public Position(long timestamp, Position.Coordinates coords)
public Position.Coordinates getCoords()
public long getTimestamp()
Copyright © 2018 NetBeans. All rights reserved.