public override void OnVisitEnd(Com.Gimbal.Android.Visit visit) { Log.Info(TAG, "OnVisitEnd Exited place: " + visit.Place.Name + "Entrance date: " + visit.ArrivalTimeInMillis.FromUnixTime().GetValueOrDefault().ToString("O") + "Exit date:" + visit.DepartureTimeInMillis.FromUnixTime().GetValueOrDefault().ToString("O")); }
public override void OnVisitStart(Com.Gimbal.Android.Visit visit) { Log.Info(TAG, "Entered place: " + visit.Place.Name + "Entrance date: " + visit.ArrivalTimeInMillis.FromUnixTime().GetValueOrDefault().ToString("O")); RegionEvent enter = new RegionEvent(visit.Place.Identifier, SOURCE, RegionEvent.BoundaryEventEnter); UrbanAirship.UAirship.Shared().Analytics.AddEvent(enter); }