Page Summary
-
AwarenessFence is an abstract class that combines conditions on two or more types of context to trigger a callback.
-
It implements the Parcelable interface.
-
Static methods are available to create complex fences using logical AND, NOT, and OR operations on other AwarenessFences.
This class is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
A combination of conditions on two or more types of context, which trigger a callback to the app when satisfied.
Inherited Constant Summary
Public Method Summary
| static AwarenessFence | and
( AwarenessFence...
fences)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
| static AwarenessFence | and
( Collection
< AwarenessFence
>
fences)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
| static AwarenessFence | not
( AwarenessFence
fence)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
| static AwarenessFence | or
( AwarenessFence...
fences)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
| static AwarenessFence | or
( Collection
< AwarenessFence
>
fences)
This method is deprecated. The Awareness API is deprecated and will be
turned down in a future Google Play services release, as early as January 2027.
There is no direct replacement.
|
Inherited Method Summary
Public Methods
public static AwarenessFence and ( AwarenessFence... fences)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Create an awareness fence that is the logical AND of the specified fences.
public static AwarenessFence and ( Collection < AwarenessFence > fences)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Create an awareness fence that is the logical AND of fences in the specified fence collection.
Parameters
Returns
- The resulting combined awareness fence.
public static AwarenessFence not ( AwarenessFence fence)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Create an awareness fence that is the logical NOT of the specified fence.
Parameters
Returns
- The resulting awareness fence.
public static AwarenessFence or ( AwarenessFence... fences)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Create an awareness fence that is the logical OR of the specified fences.
public static AwarenessFence or ( Collection < AwarenessFence > fences)
This method is deprecated.The Awareness API is deprecated and will be turned down in a future Google Play services release, as early as January 2027. There is no direct replacement.
Create an awareness fence that is the logical OR of the specified fences.
Parameters
Returns
- The resulting combined awareness fence.

