configure

fun configure(context: Context)

Default Core configuration

Parameters

context

Used to access filesDir.path for caching


fun configure(context: Context, file: String)

Core configuration by config file from application assets

Parameters

context

Used to access filesDir.path for caching

file

Name of the file located in application assets


fun configure(context: Context, host: String, projectId: String, name: String = identifier)

Core configuration by specified host and projectId

Parameters

context

Used to access filesDir.path for caching

host

M/IC Project host url

projectId

M/IC Project identifier

name

Custom identifier for Core instance. Optional. If name not specified Core instance is configured as default and accessible through Core.default. Otherwise instance is accessible through Core.core(name)


fun configure(context: Context, url: URL, name: String = identifier)

Core configuration by projectUrl

Parameters

context

Used to access filesDir.path for caching

url

Project URL provided by M/IC

name

Custom identifier for Core instance. Optional. If name not specified Core instance is configured as default and accessible through Core.default. Otherwise instance is accessible through Core.core(name)