public class TiSettings extends Object
Modifier and Type | Method and Description |
---|---|
long |
getDateTime()
Get date time in seconds from RTC of the hardware
|
static TiSettings |
getInstance()
Gets the TiSettings instance
|
void |
renameHost(String name)
Rename the host
|
void |
resetLoggerLevel(int level)
Reset the global logger level
|
void |
setDateTime(long seconds)
Set the RTC date time in seconds
|
public long getDateTime()
public static TiSettings getInstance()
public void renameHost(String name) throws IOException
name
- new name string[IN] For example,IOException
- If a TiSettings error occursNullPointerException
- If name is nullpublic void resetLoggerLevel(int level) throws IOException
level
- level valueIOException
- If a TiSettings error occurspublic void setDateTime(long seconds)
seconds
- time to be set in seconds