Android Open Source - quickstart-map-android Esri Quick Start Event Listener






From Project

Back to project page quickstart-map-android.

License

The source code is released under:

Apache License ? 2.0 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by...

If you think the Android project quickstart-map-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.esri.quickstart;
/*  w w w .ja va 2s .  c  o m*/
import java.util.EventListener;

import android.location.Location;

import com.esri.core.tasks.ags.geocode.LocatorGeocodeResult;
import com.esri.core.tasks.ags.geocode.LocatorReverseGeocodeResult;

/**
 * Provides the listener methods for EsriQuickStartLib
 * @author Andy Gup
 * @version 1.0
 *
 */
public interface EsriQuickStartEventListener extends EventListener{
  /**
   * Indicates that the address Locator service has sent a response payload back to the client.
   * @param event 
   * @param result the List<?> of all results returned by the address geocoder.
   * @param exception If there was an error look for result to be null.
   */
  public void onAddressResultEvent(EsriQuickStartEvent event,java.util.List<LocatorGeocodeResult> result,String exception);    
  /**
   * Indicates that the address Locator service has a reverse geocode response payload back to the client.
   * @param event
   * @param result
   * @param exception If there was an error look for result to be null.
   */
  public void onAddressResultEvent(EsriQuickStartEvent event,LocatorReverseGeocodeResult result, String exception);
  /**
   * Indicates there has been a location exception thrown by LocationService.
   * @param event 
   * @param message 
   */
  public void onLocationExceptionEvent(EsriQuickStartEvent event,String message);    
  /**
   * Indicates that the location change has been sent by the LocationService.
   * @param event
   * @param location
   */
  public void onLocationChangedEvent(EsriQuickStartEvent event, Location location);    
  /*
   * Indicates that the LocationService has been issued a stop() command. 
   */
  public void onLocationShutdownEvent(EsriQuickStartEvent event, String reason);    
  /**
   * Indicates that the base map has loaded. Equivalent to OnStatusChangedListener.STATUS.INITIALIZED.
   * @param event
   * @param status
   * @param source
   */
  public void onStatusEvent(EsriQuickStartEvent event,String status, Object source);
  /**
   * Indicates that the base map has loaded. Equivalent to OnStatusChangedListener.STATUS.INITIALIZED.
   * @param event
   * @param status
   */
  public void onStatusErrorEvent(EsriQuickStartEvent event,String status);
}




Java Source Code List

com.esri.quickstart.EsriQuickStartActivity.java
com.esri.quickstart.EsriQuickStartEventListener.java
com.esri.quickstart.EsriQuickStartEvent.java
com.esri.quickstart.EsriQuickStart.java
com.esri.quickstart.EventListenerList.java
com.esri.quickstart.MapViewEventType.java
com.esri.quickstart.controller.EsriQuickStartActivityController.java
com.esri.quickstart.sample.EsriQuickStartSample2Activity.java
com.esri.template.EsriQuickStartTemplateActivity.java