Back to Exoplayer

SntpClient.InitializationCallback (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/SntpClient.InitializationCallback.html

latest1.3 KB
Original Source

Package com.google.android.exoplayer2.util

Interface SntpClient.InitializationCallback


public static interfaceSntpClient.InitializationCallback

Callback for calls to SntpClient.initialize(Loader, InitializationCallback).

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onInitializationFailed​(IOException error) | Called when the device time offset failed to initialize. | | void | onInitialized() | Called when the device time offset has been initialized. |

Method Detail

- 

onInitialized

void onInitialized()

Called when the device time offset has been initialized.

- 

onInitializationFailed

void onInitializationFailed​([IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")error)

Called when the device time offset failed to initialize. Parameters:error - The error that caused the initialization failure.