LocationStateRepoBuilder

constructor(locationManagerBuilder: BaseLocationManager.Builder, permissionsBuilder: suspend (CoroutineContext) -> Permissions)

Parameters

locationManagerBuilder
permissionsBuilder

a method for creating the Permissions object to manage the Location permissions. Needs to have com.splendo.kaluga.permissions.location.LocationPermission registered.


constructor(context: Context = ApplicationHolder.applicationContext, locationManager: LocationManager? = context.getSystemService( Context.LOCATION_SERVICE, ) as? android.location.LocationManager, createLocationProvider: (BaseLocationManager.Settings) -> LocationProvider)

Constructor

Parameters

context

the Context in which to manage the location state

locationManager

the android.location.LocationManager to manage the location

createLocationProvider

constructor(context: Context = ApplicationHolder.applicationContext, locationManager: LocationManager? = context.getSystemService( Context.LOCATION_SERVICE, ) as? android.location.LocationManager, googleLocationProviderSettings: GoogleLocationProvider.Settings)

Constructor that uses a GoogleLocationProvider

Parameters

context

the Context in which to manage the location state

locationManager

the android.location.LocationManager to manage the location

googleLocationProviderSettings
constructor(permissionsBuilder: suspend (CoroutineContext) -> Permissions)

Parameters

permissionsBuilder

a method for creating the Permissions object to manage the Location permissions. Needs to have com.splendo.kaluga.permissions.location.LocationPermission registered.


constructor(bundle: NSBundle = NSBundle.mainBundle)

Constructor

Parameters

bundle

the NSBundle

constructor(permissionsBuilder: suspend (CoroutineContext) -> Permissions)

Parameters

permissionsBuilder

method for creating a Permissions for the CoroutineContext of the state repo


constructor()