public class ProfileManager extends EMDKBase
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 String |
CreateNameValuePair(String emdkName,
String paramName,
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(String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
Document extraData)
Processes the given profile based on the data provided and the flag and return status of the action.
|
EMDKResults |
processProfile(String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
ProfileConfig extraData)
Deprecated.
|
EMDKResults |
processProfile(String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
String[] extraData)
Processes the given profile based on the data provided and the flag and return status of the action.
|
EMDKResults |
processProfileAsync(String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
Document extraData)
Processes the given profile based on the data provided and the flag and return status of the request.
|
EMDKResults |
processProfileAsync(String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
ProfileConfig extraData)
Deprecated.
|
EMDKResults |
processProfileAsync(String profileName,
ProfileManager.PROFILE_FLAG profileFlag,
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 String CreateNameValuePair(String emdkName, String paramName, String paramValue)
emdkName
- emdk name StringparamName
- Parameter name StringparamValue
- Parameter value Stringpublic EMDKResults processProfile(String profileName, ProfileManager.PROFILE_FLAG profileFlag, 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. ex: 'Profile1'.
profileFlag
- ProfileManager.PROFILE_FLAG
extraData
- This can be used to provide data for processing action.EMDKResults
object.public EMDKResults processProfile(String profileName, ProfileManager.PROFILE_FLAG profileFlag, String[] extraData)
Example Usage: profileManager.processProfile("Profile1", PROFILE_FLAG.GET, new String[]{""});
profileName
- Name of the profile. ex: 'Profile1'
profileFlag
- ProfileManager.PROFILE_FLAG
extraData
- This can be used to provide data for processing action.EMDKResults
object.@Deprecated public EMDKResults processProfile(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(String profileName, ProfileManager.PROFILE_FLAG profileFlag, 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.profileFlag
- ProfileManager.PROFILE_FLAG
extraData
- This can be used to provide data for processing action.EMDKResults
object.public EMDKResults processProfileAsync(String profileName, ProfileManager.PROFILE_FLAG profileFlag, 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.profileFlag
- ProfileManager.PROFILE_FLAG
extraData
- This can be used to provide data for processing action.EMDKResults
object.@Deprecated public EMDKResults processProfileAsync(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
-