FileDocCategorySizeDatePackage
GeofenceHardwareMonitorEvent.javaAPI DocAndroid 5.1 API3859Thu Mar 12 22:22:10 GMT 2015android.hardware.location

GeofenceHardwareMonitorEvent

public class GeofenceHardwareMonitorEvent extends Object implements android.os.Parcelable
A class that represents an event for each change in the state of a monitoring system.
hide

Fields Summary
private final int
mMonitoringType
private final int
mMonitoringStatus
private final int
mSourceTechnologies
private final android.location.Location
mLocation
public static final Creator
CREATOR
Constructors Summary
public GeofenceHardwareMonitorEvent(int monitoringType, int monitoringStatus, int sourceTechnologies, android.location.Location location)

        mMonitoringType = monitoringType;
        mMonitoringStatus = monitoringStatus;
        mSourceTechnologies = sourceTechnologies;
        mLocation = location;
    
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public android.location.LocationgetLocation()
Returns the last known location according to the monitoring system.

        return mLocation;
    
public intgetMonitoringStatus()
Returns the new status associated with the monitoring system.

        return mMonitoringStatus;
    
public intgetMonitoringType()
Returns the type of the monitoring system that has a change on its state.

        return mMonitoringType;
    
public intgetSourceTechnologies()
Returns the source technologies that the status is associated to.

        return mSourceTechnologies;
    
public java.lang.StringtoString()

        return String.format(
                "GeofenceHardwareMonitorEvent: type=%d, status=%d, sources=%d, location=%s",
                mMonitoringType,
                mMonitoringStatus,
                mSourceTechnologies,
                mLocation);
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeInt(mMonitoringType);
        parcel.writeInt(mMonitoringStatus);
        parcel.writeInt(mSourceTechnologies);
        parcel.writeParcelable(mLocation, flags);