public class ClockCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
ClockCtrl(android.content.Context context)
Instantiates a new Clock ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
getManualTime()
Get manual time.
|
android.os.Bundle |
getNTPServer()
Get ntp server.
|
android.os.Bundle |
getTimeFormat()
Get time format bundle.
|
android.os.Bundle |
getTimeMode()
Get time mode.
|
android.os.Bundle |
getTimeZone()
Get time zone bundle.
|
android.os.Bundle |
getTimeZoneMode()
Get time zone mode bundle.
|
android.os.Bundle |
setManualDate(java.lang.String date)
Set manual date.
|
android.os.Bundle |
setManualTime(java.lang.String time)
Set manual time.
|
android.os.Bundle |
setNTPServer(java.lang.String NTPServerURL)
Set ntp server .
|
android.os.Bundle |
setTimeFormat(int timeFormat)
Set time format bundle.
|
android.os.Bundle |
setTimeMode(int mode)
Set time mode.
|
android.os.Bundle |
setTimeZone(java.lang.String timeZone)
Set time zone bundle.
|
android.os.Bundle |
setTimeZoneMode(int mode)
Set time zone mode.
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public ClockCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle setNTPServer(java.lang.String NTPServerURL)
NTPServerURL - the ntp server url (String)public android.os.Bundle getNTPServer()
public android.os.Bundle setTimeMode(int mode)
mode, - 0 : manual mode, 1 : auto mode (int)public android.os.Bundle getTimeMode()
public android.os.Bundle setManualDate(java.lang.String date)
date - the date, String, ex: 31/12/2019 (day/month/year)public android.os.Bundle setManualTime(java.lang.String time)
time - the time , String, ex: 23:59 (hour/minute) or 23:59:59 (hour/minute/second, with DMService ver1.2.7 after)public android.os.Bundle getManualTime()
public android.os.Bundle setTimeZoneMode(int mode)
mode - 0 : manual mode, 1 : auto mode (int)public android.os.Bundle getTimeZoneMode()
public android.os.Bundle setTimeZone(java.lang.String timeZone)
timeZone - the time zone (String)public android.os.Bundle getTimeZone()
public android.os.Bundle setTimeFormat(int timeFormat)
timeFormat - the time format , 24 or 12 (int)public android.os.Bundle getTimeFormat()