toValue method
Implementation
int toValue() {
switch (this) {
case AMapLocationErrorCode.AMapLocationErrorUnknown: return 1;
case AMapLocationErrorCode.AMapLocationErrorLocateFailed: return 2;
case AMapLocationErrorCode.AMapLocationErrorReGeocodeFailed: return 3;
case AMapLocationErrorCode.AMapLocationErrorTimeOut: return 4;
case AMapLocationErrorCode.AMapLocationErrorCanceled: return 5;
case AMapLocationErrorCode.AMapLocationErrorCannotFindHost: return 6;
case AMapLocationErrorCode.AMapLocationErrorBadURL: return 7;
case AMapLocationErrorCode.AMapLocationErrorNotConnectedToInternet: return 8;
case AMapLocationErrorCode.AMapLocationErrorCannotConnectToHost: return 9;
case AMapLocationErrorCode.AMapLocationErrorRegionMonitoringFailure: return 10;
case AMapLocationErrorCode.AMapLocationErrorRiskOfFakeLocation: return 11;
case AMapLocationErrorCode.AMapLocationErrorNoFullAccuracyAuth: return 12;
default: return 0;
}
}