Reference Source
import JSONStoreInitOptions from 'react-native-ibm-mobilefirst-jsonstore'
public class | source

JSONStoreInitOptions

Options that are used to modify the init operation in WLJSONStore.

Constructor Summary

Public Constructor
public

constructor(username: string, password: string, enableAnalytics: boolean, secureRandom: string, pbkdf2Iterations: number)

Constructor to initialize JSONStoreInitOptions

Member Summary

Public Members
public
public
public
public
public
public
public

Method Summary

Public Methods
public

setSyncOptions(syncPolicy: JSONStoreSyncPolicy, syncAdapterPath: string): *

Set Synchronization Options for the collection set

Public Constructors

public constructor(username: string, password: string, enableAnalytics: boolean, secureRandom: string, pbkdf2Iterations: number) source

Constructor to initialize JSONStoreInitOptions

Params:

NameTypeAttributeDescription
username string
  • optional

The user name

password string
  • optional

The password to be used for the store.

enableAnalytics boolean
  • optional

When true, analytics will be logged for JSONStore.

secureRandom string
  • optional

The secure random string to be used by security artifacts.

pbkdf2Iterations number
  • optional

Public Members

public enableAnalytics: boolean source

public password: string source

public pbkdf2Iterations: number source

public secureRandom: string source

public syncAdapterPath: string source

public syncPolicy: JSONStoreSyncPolicy source

public username: string source

Public Methods

public setSyncOptions(syncPolicy: JSONStoreSyncPolicy, syncAdapterPath: string): * source

Set Synchronization Options for the collection set

Params:

NameTypeAttributeDescription
syncPolicy JSONStoreSyncPolicy

Must be either of ['SYNC_NONE', 'SYNC_DOWNSTREAM', 'SYNC_UPSTREAM']

syncAdapterPath string

Name of the Sync Adapter

Return:

*