Click or drag to resize
SynchronizationEngineHost Class
This class is used to by the SynchronizationEngine to get contextual information ex the device status, current loggedin user, etc. Callers need to implement it when hosting the synchronization engine independent of the rest of the SDK, which should be very rare.
Inheritance Hierarchy
SystemObject
  Oracle.Cloud.Mobile.SynchronizationSynchronizationEngineHost

Namespace: Oracle.Cloud.Mobile.Synchronization
Assembly: Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
Syntax
public abstract class SynchronizationEngineHost

The SynchronizationEngineHost type exposes the following members.

Constructors
  NameDescription
Protected methodSynchronizationEngineHost
Initializes a new instance of the SynchronizationEngineHost class
Top
Properties
  NameDescription
Public propertyAuthorizedUserName
Returns the name of the logged in user, null if there is no logged in user.
Public propertyBackendName
The name of the associated MobileBackend.
Public propertyBatchModeEnabled
Returns true if batch mode is to be enabled which reduces the number of calls to the cloud on startup and when the device comes online.
Public propertyDataFolder
Returns the path to the folder to store cached data.
Public propertyDeviceState
Property that returns the current DeviceState.
Public propertyDisableBackgroundRefresh
If true disables background refreshes by the synchronization engine, defaults to false. Should be rarely required.
Public propertyIsAuthorized
Returns whether there is a logged in user or not.
Public propertyIsOnline
Property that returns whether the device is online or not.
Public propertyTempFolder
Returns the path to the temp folder to use.
Top
Methods
  NameDescription
Public methodCreateFolderAsync
Method to create a sub-folder inside a parent. Should not fail if the folder does not already exist.
Public methodCreateHttpClient
Creates a new instance of an HttpClient, configured with the right auth and other headers and the BaseUri to be used to call into the cloud.
Public methodDecryptStreamAsync
Decrypts a stream previous encrypted by calling EncryptStreamAsync.
Public methodDeleteFileAsync
Method to delete a file if it exists. Should not fail if the file does not exist.
Public methodDeleteFolderAsync
Method to delete a folder if it exists. Should not fail if the folder does not exist.
Public methodDoesFileExistAsync
Method to check whether a file exists in a folder.
Public methodEncryptStreamAsync
Encrypts a stream.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFolderSizeAsync
Returns the size of a folder and all nested sub-folders.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLogError
Generates an error level log message.
Public methodLogInfo
Generates an info level log message.
Public methodLogVerbose
Generates a verbose level log message.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnLoggedInUserChanged
Method to raise the an event when a user logs in or logs out.
Protected methodOnOnlineStatusChanged
Method to raise the an event when the device online status changes.
Public methodOpenSQLiteConnection
Method to open a new SQLite connection.
Public methodReadFromFileAsync
Reads the contents of file asynchronously if it exists.
Public methodThreadPoolRunAsync
Executes a callback on the system threadpool.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteToFileAsync
Writes the contents of a stream to a file asynchronously.
Top
See Also