HERE Android SDK Developer's Guide

OnCurrentTimeListener

The interface OnCurrentTimeListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnCurrentTimeListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

The current time event listener interface

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnCurrentTimeListener
Methods

public abstract void onCurrentTime (Error error, String time)

A callback with the current system time.

Interface Details

The current time event listener interface

Method Details

public abstract void onCurrentTime (Error error, String time)

A callback with the current system time. e.g. "What time is it"

Parameters:

  • error

    NONE if current time can be determined; otherwise FAILED

  • time

    Current device time in "hh:mm aa" format, e.g. "12:00 AM", "08:05 AM" or "12:00 PM", "01:00 PM" if error is NONE; otherwise null;

See also:

java.text.SimpleDateFormat