public void AddGeofences(List <IGeofence> geofences) { var transitionIntent = PendingIntent.GetService(Application.Context, 0, new Intent(Application.Context, typeof(ReceiveTransitionsIntentService)), PendingIntentFlags.UpdateCurrent); _locationClient.AddGeofences(geofences, transitionIntent, this); }
public void OnConnected(Bundle connectionHint) { // Use mRequestType to determine what action to take. Only Add used in this sample if (mRequestType == RequestType.Add) { // Get the PendingIntent for the geofence monitoring request mGeofenceRequestIntent = GeofenceTransitionPendingIntent; // Send a request to add the current geofences mLoactionClient.AddGeofences(mGeofenceList, mGeofenceRequestIntent, this); } }