java.lang.Object | |
↳ | com.google.android.gms.awareness.fence.FenceState |
Encapsulates the state of a fence in AwarenessFence
. The state
includes the current and previous evaluation state and time of the last fence state update.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FALSE | Fence state is false. | |||||||||
int | TRUE | Fence state is true. | |||||||||
int | UNKNOWN | Fence state is unknown, which can be due to no data received. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Extracts the fence state details from the intent.
| |||||||||||
Returns the current fence state.
| |||||||||||
Returns the fence key that identifies this fence in
AwarenessFence . | |||||||||||
Returns the last time the fence state was changed in milliseconds since
epoch.
| |||||||||||
Returns the previous fence state.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Fence state is false.
Fence state is true.
Fence state is unknown, which can be due to no data received.
Extracts the fence state details from the intent.
Parameters | |
---|---|
intent |
Intent :
The Intent object received from registering a
fence. |
Returns | |
---|---|
FenceState |
Information about the fence state. |
Returns the current fence state.
Returns | |
---|---|
int |
The state of the fence in AwarenessFence .
|
Returns the fence key that identifies this fence in AwarenessFence
.
Returns | |
---|---|
String |
The fence key that identifies this fence in AwarenessFence .
It is the same identifier that was used by the client to register the
fence. This value may also be provided as part of the FenceQueryRequest .
|
Returns the last time the fence state was changed in milliseconds since epoch.
Returns | |
---|---|
long |
the last fence update time in milliseconds since epoch. |
Returns the previous fence state.
Returns | |
---|---|
int |
The previous state of the fence in AwarenessFence .
|