Exemplo n.º 1
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            //TODO:
            switch (item.ItemId)
            {
            case Resource.Id.test_toggle_geofence:
                var isGeoFenceEnabled = Utils.GetGeofenceEnabled(this);
                Utils.StoreGeofenceEnabled(this, !isGeoFenceEnabled);
                Toast.MakeText(this, isGeoFenceEnabled ?
                               "Debug: Geofencing trigger disabled" :
                               "Debug: Geofencing trigger enabled", ToastLength.Short).Show();
                return(true);

            case Resource.Id.show_checkins:
                StartActivity(typeof(CheckinsListActivity));
                return(true);

            case Resource.Id.test_notification:
                UtilityService.TriggerWearTest(this, false);
                return(true);
            }
            return(base.OnOptionsItemSelected(item));
        }
 public override void OnResume()
 {
     //TODO:
     IsItemClicked = false;
     base.OnResume();
     LocalBroadcastManager.GetInstance(this.Activity).RegisterReceiver(attractionReceiver, UtilityService.GetLocationUpdatedIntentFilter());
 }
Exemplo n.º 3
0
 protected override void OnResume()
 {
     base.OnResume();
     UtilityService.RequestLocation(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Fines the location permission granted.
 /// </summary>
 /// <returns>The location permission granted.</returns>
 private void FineLocationPermissionGranted()
 {
     UtilityService.AddGeofences(this);
     UtilityService.RequestLocation(this);
 }