upload

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

See upload(StringList?, SyncOptions?).


open fun upload(groups: StringList?)
open fun upload(groups: StringList?, completionHandler: (Result<Unit>) -> Unit)

See upload(StringList?, SyncOptions?).

Parameters

groups

Groups parameter.


open fun upload(groups: StringList?, options: SyncOptions?)
open fun upload(groups: StringList?, options: SyncOptions?, completionHandler: (Result<Unit>) -> Unit)

Upload local pending changes to the backend OData service.

See Also:

{@link com.sap.cloud.mobile.kotlin.odata.OfflineDataService#cancelUpload() OfflineDataService.cancelUpload}.

Parameters

groups

(nullable) If null or empty, then data will be uploaded from all entity sets. If non-empty, then it specifies groups to be uploaded.

options

(nullable) Upload options, including cancellation token and progress listener.