open

open fun open()
open fun open(completionHandler: (Result<Unit>) -> Unit)

Open the {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#syncProvider OfflineDataService.syncProvider}, performing any necessary initialization such as creation of the local database. Depending on the provider implementation, the first call to open might (or might not) communicate with the backend system. If {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#hasInitialData() OfflineDataService.hasInitialData} returns false after calling open, then {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#download(com.sap.cloud.mobile.kotlin.odata.StringList?, com.sap.cloud.mobile.kotlin.odata.SyncOptions?) OfflineDataService.download} must be explicitly called to obtain initial data. If {@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#hasInitialData() OfflineDataService.hasInitialData} returns true after calling open, then initial data has already been obtained from the backend system.