//library/ss_n.common_ktx.extension/requestLocation
[androidJvm]
fun Context.requestLocation(locationListener: LocationListener, permissionError: () -> Unit?? = null, criteria: Criteria = Criteria().apply
{
accuracy = Criteria.ACCURACY_FINE
powerRequirement = Criteria.POWER_HIGH
isSpeedRequired = false
isAltitudeRequired = false
isBearingRequired = false
isCostAllowed = true
horizontalAccuracy = Criteria.ACCURACY_HIGH
verticalAccuracy = Criteria.ACCURACY_HIGH
}, enabledOnly: Boolean = true, minTime: Long = 1000, minDistance: Float = 40.0f)