| CLASS info |
| public class GeofenceData |
| Geofence event |
| Return type | Method name |
| GeofenceData | getDataFromIntent(Intent intent) |
| int | getErrorCode() |
| int | getConversion() |
| List<Geofence> | getConvertingGeofenceList() |
| Location | getConvertingLocation() |
| boolean |
| Method |
| public GeofenceData getDataFromIntent(Intent intent) |
| This API is used to create a GeofenceData object from a specified intent. |
Parameters
| Parameter name | Parameter desc |
| intent | Intent object broadcasted when a geofence event is converted. |
Return
| type | desc |
| com.huawei.hms.location.GeofenceData | Geofence convert event object. |
| Method |
| public int getErrorCode() |
| This API is used to obtain an error code. |
Return
| type | desc |
| int | Error code. For details, please refer to GeofenceErrorCodes. |
| Method |
| public int getConversion() |
| This API is used to obtain the convert type of a geofence. |
Return
| type | desc |
| int | Geofence convert type. |
| Method |
| public List<Geofence> getConvertingGeofenceList() |
| This API is used to obtain information about converted geofences. |
Return
| type | desc |
| List<Geofence> | Information about converted geofences. |
Return
| type | desc |
| android.location.Location | Location information. |
| Method |
| public boolean isSuccess() |
| This API is used to check whether notification broadcasting is success |
Return
| type | desc |
| boolean | Indicates whether notification broadcasting is success. |