sync Provider
Syncs the external live update provider source if present.
Example usage (kotlin):
val result = portal.syncProvider()Content copied to clipboard
Example usage (java):
// syncProvider() is a Kotlin suspend function and can't be called directly from Java.
// Use syncProviderAsync instead:
portal.syncProviderAsync(new Portal.ProviderSyncCallback() {
@Override
public void onSuccess(ProviderSyncResult result) {
// handle result
}
@Override
public void onFailure(Exception error) {
// handle error
}
});Content copied to clipboard
This does not apply a timeout; the provider implementation is responsible for bounding its own sync operation, if desired.
Return
the result of the synchronization operation, or null when no update is available.
Throws
if this Portal has no LiveUpdateSource.Provider configured.