Slide 20
Slide 20 text
'FODF"1*Έ߹Θͤ
AwarenessFence areaAroundStore = LocationFence.in(STORE_LATITUDE, STORE_LONGITUDE,
1000 /* radius in meters */,
0L /* dwell time */ );
AwarenessFence duringDriving =
DetectedActivityFence.during(DetectedActivityFence.IN_VEICHLE);
AwarenessFence openHours = TimeFence.inDailyInterval(TimeZone.getDefault(),
10 * HOURS_IN_MILLIS,
18 * HOURS_IN_MILLIS);
AwarenessFence drivingNearStore = AwarenessFence.and(areaAroundStore, duringDriving,
openHours);