FileDocCategorySizeDatePackage
GpsNavigationMessageEvent.javaAPI DocAndroid 5.1 API3790Thu Mar 12 22:22:30 GMT 2015android.location

GpsNavigationMessageEvent

public class GpsNavigationMessageEvent extends Object implements android.os.Parcelable
A class implementing a container for data associated with a navigation message event. Events are delivered to registered instances of {@link Listener}.
hide

Fields Summary
public static int
STATUS_NOT_SUPPORTED
The system does not support tracking of GPS Navigation Messages. This status will not change in the future.
public static int
STATUS_READY
GPS Navigation Messages are successfully being tracked, it will receive updates once they are available.
public static int
STATUS_GPS_LOCATION_DISABLED
GPS provider or Location is disabled, updated will not be received until they are enabled.
private final GpsNavigationMessage
mNavigationMessage
public static final Creator
CREATOR
Constructors Summary
public GpsNavigationMessageEvent(GpsNavigationMessage message)


                              
    
       

                        
          

                           
          
    

       
        if (message == null) {
            throw new InvalidParameterException("Parameter 'message' must not be null.");
        }
        mNavigationMessage = message;
    
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public GpsNavigationMessagegetNavigationMessage()

        return mNavigationMessage;
    
public java.lang.StringtoString()

        StringBuilder builder = new StringBuilder("[ GpsNavigationMessageEvent:\n\n");
        builder.append(mNavigationMessage.toString());
        builder.append("\n]");
        return builder.toString();
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeParcelable(mNavigationMessage, flags);