Interface TimeService.ConfigurationListener

  • Enclosing interface:
    TimeService

    public static interface TimeService.ConfigurationListener
    The listener interface for receiving notifications when the time configuration of the device has changed (date, time, time zone).
    • Method Detail

      • onTimeConfigurationChanged

        void onTimeConfigurationChanged​(long currentTime,
                                        java.lang.String zoneId,
                                        int zoneOffset)
        Called when the time configuration of the device has changed (date, time, time zone).
        Parameters:
        currentTime - the new time (in milliseconds, measured from the Java Epoch)
        zoneId - the new time zone ID
        zoneOffset - the new offset from UTC