FileDocCategorySizeDatePackage
GeofenceHardwareRequestParcelable.javaAPI DocAndroid 5.1 API5793Thu Mar 12 22:22:10 GMT 2015android.hardware.location

GeofenceHardwareRequestParcelable

public final class GeofenceHardwareRequestParcelable extends Object implements android.os.Parcelable
Geofence Hardware Request used for internal location services communication.
hide

Fields Summary
private GeofenceHardwareRequest
mRequest
private int
mId
public static final Parcelable.Creator
CREATOR
Method definitions to support Parcelable operations.
Constructors Summary
public GeofenceHardwareRequestParcelable(int id, GeofenceHardwareRequest request)

        mId = id;
        mRequest = request;
    
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public intgetId()
Returns the id of this request.

        return mId;
    
public intgetLastTransition()
Returns the last transition of this geofence.

        return mRequest.getLastTransition();
    
public doublegetLatitude()
Returns the latitude of this geofence.

        return mRequest.getLatitude();
    
public doublegetLongitude()
Returns the longitude of this geofence.

        return mRequest.getLongitude();
    
public intgetMonitorTransitions()
Returns transitions monitored for this geofence.

        return mRequest.getMonitorTransitions();
    
public intgetNotificationResponsiveness()
Returns the notification responsiveness of this geofence.

        return mRequest.getNotificationResponsiveness();
    
public doublegetRadius()
Returns the radius of this geofence.

        return mRequest.getRadius();
    
intgetSourceTechnologies()
Returns the source technologies to track this geofence.

        return mRequest.getSourceTechnologies();
    
intgetType()
Returns the type of the geofence for the current request.

        return mRequest.getType();
    
public intgetUnknownTimer()
Returns the unknownTimer of this geofence.

        return mRequest.getUnknownTimer();
    
public java.lang.StringtoString()

        StringBuilder builder = new StringBuilder();
        builder.append("id=");
        builder.append(mId);
        builder.append(", type=");
        builder.append(mRequest.getType());
        builder.append(", latitude=");
        builder.append(mRequest.getLatitude());
        builder.append(", longitude=");
        builder.append(mRequest.getLongitude());
        builder.append(", radius=");
        builder.append(mRequest.getRadius());
        builder.append(", lastTransition=");
        builder.append(mRequest.getLastTransition());
        builder.append(", unknownTimer=");
        builder.append(mRequest.getUnknownTimer());
        builder.append(", monitorTransitions=");
        builder.append(mRequest.getMonitorTransitions());
        builder.append(", notificationResponsiveness=");
        builder.append(mRequest.getNotificationResponsiveness());
        builder.append(", sourceTechnologies=");
        builder.append(mRequest.getSourceTechnologies());
        return builder.toString();
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

        parcel.writeInt(getType());
        parcel.writeDouble(getLatitude());
        parcel.writeDouble(getLongitude());
        parcel.writeDouble(getRadius());
        parcel.writeInt(getLastTransition());
        parcel.writeInt(getMonitorTransitions());
        parcel.writeInt(getUnknownTimer());
        parcel.writeInt(getNotificationResponsiveness());
        parcel.writeInt(getSourceTechnologies());
        parcel.writeInt(getId());