Methods reference

[info] SDK Javadoc

For a complete reference for SDK methods, refer to the SDK Javadoc.


To get an object of HTConsumerClient use the method HTConsumerClient.getInstance(context).

Method Description
trackTask(String taskID, Activity activity, HTTaskCallBack callback) Track a single task
trackTask(List taskIDList, Activity activity, TaskListCallBack callback) Track multiple tasks
taskForTaskID(String taskID) Retrieve a task by task id
getTaskIDList() Get list of task ids that are being tracked
removeTaskID(String taskID) Remove a task from tracking
removeTaskID(List taskIDList) Remove a list of tasks from tracking
clearTasks() Clear all tasks from tracking

HTMapFragment callback

If you wish to receive callbacks for events happening on HTMapFragment to add custom implementations to these events, create an instance of HTMapFragmentCallback and set it using HTMapFragment.setMapFragmentCallback method.

private HTMapFragmentCallback callback = new HTMapFragmentCallback() {


  public void onMapReadyCallback(HTMapFragment mapFragment, GoogleMap map) {
    Toast.makeText(MainActivity.this, "OnMapReady called", Toast.LENGTH_SHORT).show();



HTMapFragment mapFragment = (HTMapFragment) getSupportFragmentManager().findFragmentById(;

You can receive callbacks for various events once you have set this callback for HTMapFragment to a class, that class needs to override the methods.

Was this helpful? Yes, thanks! Not really

results matching ""

    No results matching ""