AWS Amplify JS API
AWS Amplify JS Dev Center
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Sync
Processor
constructor
start
stop
Hierarchy
SyncProcessor
Index
Constructors
constructor
Methods
start
stop
Constructors
constructor
new
Sync
Processor
(
schema
:
InternalSchema
, syncPredicates
:
WeakMap
<
SchemaModel
,
ModelPredicate
<
any
>
|
null
>
, amplifyConfig
?:
Record
<
string
,
any
>
, authModeStrategy
:
AuthModeStrategy
, errorHandler
:
ErrorHandler
, amplifyContext
:
AmplifyContext
)
:
SyncProcessor
Parameters
schema:
InternalSchema
syncPredicates:
WeakMap
<
SchemaModel
,
ModelPredicate
<
any
>
|
null
>
Default value
amplifyConfig:
Record
<
string
,
any
>
= {}
authModeStrategy:
AuthModeStrategy
errorHandler:
ErrorHandler
amplifyContext:
AmplifyContext
Returns
SyncProcessor
Methods
start
start
(
typesLastSync
:
Map
<
SchemaModel
,
[
string
,
number
]
>
)
:
Observable
<
SyncModelPage
>
Parameters
typesLastSync:
Map
<
SchemaModel
,
[
string
,
number
]
>
Returns
Observable
<
SyncModelPage
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>