目录

CLASS info
public static class Builder
Class for building the GeofenceRequest object.

Public Method Summary

Return typeMethod name
GeofenceRequest.BuildercreateGeofence(Geofence geofence)
GeofenceRequest.BuildercreateGeofenceList(List<Geofence> geofences)
GeofenceRequest.BuildersetInitConversions(int initConversions)
GeofenceRequestbuild()

Public Methods

Method
public GeofenceRequest.Builder createGeofence(Geofence geofence)
This API is used to add a geofence.

Parameters

Parameter nameParameter desc
geofenceGeofence object.

Return

typedesc
GeofenceRequest.BuilderGeofenceRequest builder.
Method
public GeofenceRequest.Builder createGeofenceList(List<Geofence> geofences)
This API is used to add multiple geofences.

Parameters

Parameter nameParameter desc
geofencesList of geofence objects.

Return

typedesc
GeofenceRequest.BuilderGeofenceRequest builder.
Method
public GeofenceRequest.Builder setInitConversions(int initConversions)
This API is used to set the initial conversion type.

Parameters

Parameter nameParameter desc
initConversionsInitial  conversion type. This parameter is invalid if it is set to 0. The default value is GeofenceRequest.ENTER_INIT_CONVERSION | GeofenceRequest.DWELL_INIT_CONVERSION.

Return

typedesc
GeofenceRequest.BuilderGeofenceRequest builder.
Method
public GeofencingRequest build()
This API is used to build a geofence request object.

Return

typedesc
GeofenceRequestGeofence request object.