ジオフェンスを構築する方法で、変数に解決できないというエラーが表示さExpirationDuration(NEVER_EXPIRE)
れます。setTransitionTypes(GEOFENCE_TRANSITION_ENTER)
なぜこうなった?
私の方法:
private void buildGeofence(){
LatLng geofencePoint = marker.getPosition();
int radius = 1610;
Geofence.Builder geofence = new Geofence.Builder();
geofence.setCircularRegion(geofencePoint.latitude,geofencePoint.longitude, radius);
geofence.setExpirationDuration(NEVER_EXPIRE);
geofence.setTransitionTypes(GEOFENCE_TRANSITION_ENTER);
geofence.setNotificationResponsiveness(0);
geofence.build();
}