public class ProfileManager extends EMDKBase
When using ProfileManager consider the followings:Example Usage: private ProfileManager profileManager = (ProfileManager) EMDKManager.getInstance(EMDKManager.FEATURE_TYPE.PROFILE);
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProfileManager.DataListener
An interface for notifying client applications to notify processProfileAsync result.
|
static class |
ProfileManager.PROFILE_FLAG
All the possible actions for
processProfile(String, PROFILE_FLAG, Document)
and processProfile(String, PROFILE_FLAG, String[])}is enumerated here. |
class |
ProfileManager.ResultData
This class provides the Status detail of processProfileAsync method.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataListener(ProfileManager.DataListener listener)
The client can register to get data notification via callbacks.
|
static java.lang.String |
CreateNameValuePair(java.lang.String emdkName,
java.lang.String paramName,
java.lang.String paramValue)
This function creates a name value pair string according to the
Name-Value pair request.
|
boolean |
isPreviousRequestPending()
This method tells whether the previous process profile request is pending or not.
|
EMDKResults |
processProfile(java.lang.String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
org.w3c.dom.Document extraData)
Processes the given profile based on the data provided and the flag and return status of the action.
|
EMDKResults |
processProfile(java.lang.String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
ProfileConfig extraData)
Deprecated.
|
EMDKResults |
processProfile(java.lang.String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
java.lang.String[] extraData)
Processes the given profile based on the data provided and the flag and return status of the action.
|
EMDKResults |
processProfileAsync(java.lang.String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
org.w3c.dom.Document extraData)
Processes the given profile based on the data provided and the flag and return status of the request.
|
EMDKResults |
processProfileAsync(java.lang.String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
ProfileConfig extraData)
Deprecated.
|
EMDKResults |
processProfileAsync(java.lang.String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
java.lang.String[] extraData)
Processes the given profile based on the data provided and the flag and return status of the request.
|
void |
removeDataListener(ProfileManager.DataListener listener)
The client can un-register to get data notification via callbacks.
|
public boolean isPreviousRequestPending()
public static java.lang.String CreateNameValuePair(java.lang.String emdkName,
java.lang.String paramName,
java.lang.String paramValue)
emdkName - emdk name StringparamName - Parameter name StringparamValue - Parameter value Stringpublic EMDKResults processProfile(java.lang.String profileName, ProfileManager.PROFILE_FLAG profileFlag, org.w3c.dom.Document extraData)
Example Usage: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document extraData; extraData = db.newDocument(); profileManager.processProfile("Profile1", PROFILE_FLAG.GET, extraData);
profileName - Name of the profile. This parameter is mandatory. ex: 'Profile1'. profileFlag - ProfileManager.PROFILE_FLAG extraData - This can be used to provide data for processing action.EMDKResults object.public EMDKResults processProfile(java.lang.String profileName, ProfileManager.PROFILE_FLAG profileFlag, java.lang.String[] extraData)
Example Usage: profileManager.processProfile("Profile1", PROFILE_FLAG.GET, new String[]{""});
profileName - Name of the profile. This parameter is mandatory. ex: 'Profile1'
profileFlag - ProfileManager.PROFILE_FLAG extraData - This can be used to provide data for processing action.EMDKResults object.@Deprecated public EMDKResults processProfile(java.lang.String profileName, ProfileManager.PROFILE_FLAG profileFlag, ProfileConfig extraData)
Example Usage: profileManager.processProfile("Profile1", PROFILE_FLAG.GET, ???);
profileName - Name of the profile. ex: 'Profile1'
profileFlag - ProfileManager.PROFILE_FLAG extraData - ProfileConfig This can be used to provide data for processing action. This parameter is only supported for DataCapture profile features.EMDKResults object.public EMDKResults processProfileAsync(java.lang.String profileName, ProfileManager.PROFILE_FLAG profileFlag, org.w3c.dom.Document extraData)
{@code
Example Usage:
public class MainActivity extends Activity implements EMDKListener, DataListener {
profileManager.addDataListener(this);
profileManager.processProfileAsync("Profile1", PROFILE_FLAG.GET, null);profileName - Name of the profile. This parameter is mandatory. ex: 'Profile1'. profileFlag - ProfileManager.PROFILE_FLAG extraData - This can be used to provide data for processing action.EMDKResults object.public EMDKResults processProfileAsync(java.lang.String profileName, ProfileManager.PROFILE_FLAG profileFlag, java.lang.String[] extraData)
{@code
Example Usage:
public class MainActivity extends Activity implements EMDKListener, DataListener {
profileManager.addDataListener(this);
profileManager.processProfileAsync("Profile1", PROFILE_FLAG.SET, extraData);profileName - Name of the profile. This parameter is mandatory. ex: 'Profile1'. profileFlag - ProfileManager.PROFILE_FLAG extraData - This can be used to provide data for processing action.EMDKResults object.@Deprecated public EMDKResults processProfileAsync(java.lang.String profileName, ProfileManager.PROFILE_FLAG profileFlag, ProfileConfig extraData)
{@code
Example Usage:
public class MainActivity extends Activity implements EMDKListener, DataListener {
profileManager.addDataListener(this);
profileManager.processProfileAsync("Profile1", PROFILE_FLAG.SET, null);profileName - Name of the profile.profileFlag - ProfileManager.PROFILE_FLAG extraData - ProfileConfig This can be used to provide data for processing action. This parameter is only supported for DataCapture profile features.EMDKResults object.public void addDataListener(ProfileManager.DataListener listener)
listener - public void removeDataListener(ProfileManager.DataListener listener)
listener -