create

open fun create(context: Context, accessToken: String, props: SyncClient.Properties, listener: SuccessListener<SyncClient>)

Public factory method to create a new instance of Sync Client.

Parameters

context

Pass Application Context here, cannot be null.

accessToken

Access token containing at least a Sync Grant to access sync features.

props

Properties for initializing client. Properties.defaultProperties() could be commonly used. See Properties for more details.

listener

Listener to receive the newly created Sync Client.