SyncDescriptor Class
Module: Model
Exposes methods to GET and SET Sync Descriptor information as per define in SyncDescriptor.xml file by application.
Example:
<sync-descriptor>
<!-- Mandatory Field -->
<property name="name">name_of_sync_handler</property>
<!-- Optional Field -->
<property name="sync_interval">sync_interval_in_millisecond</property>
<!-- Optional Field -->
<!-- Default: SCREEN -->
<property name="type">INTERVAL|SCREEN|INTERVAL-SCREEN</property>
<!-- Services -->
<!-- Service -->
<services>
<service>name_of_service.name_of_api</service>
</services>
</sync-descriptor>
Item Index
Methods
addProperty
(
-
name
-
value
Add Property in property pool.
containProperty
(
Boolean
-
name
Check whether Property exist or not.
Parameters:
-
name
StringName of Property.
Returns:
Boolean:
true/false, TRUE if property exist, FALSE if property does not exist.
getProperties
()
Array
Get all Properties defined in descriptor.
Returns:
Array:
All Property Values.
getProperty
(
String
-
name
Get Property based on name provided.
Parameters:
-
name
StringName of Property.
Returns:
String:
Property value.
removeProperty
(
-
name
Remove Property from property pool.
Parameters:
-
name
StringName of Property.