Class ConfigurationLoaderCallback
-
- All Implemented Interfaces:
public abstract class ConfigurationLoaderCallbackCallbacks for the providers.
-
-
Method Summary
Modifier and Type Method Description abstract voidonCompletion(@Nullable() ProviderIdentifier providerId, boolean success)Completion Handler Callback notifying caller of the task's completion abstract voidonError(@NonNull() ConfigurationLoader configurationLoader, @NonNull() ProviderIdentifier providerId, @NonNull() UserInputs requestedInput, @NonNull() ConfigurationProviderError error)Error Handler Callback notifying caller of an input expected provider's error. abstract voidonInputRequired(@NonNull() ConfigurationLoader configurationLoader, @NonNull() UserInputs requestedInput)Callback requesting initial user input. -
-
Method Detail
-
onCompletion
abstract void onCompletion(@Nullable() ProviderIdentifier providerId, boolean success)
Completion Handler Callback notifying caller of the task's completion
- Parameters:
providerId- The provider identifier corresponding to the Configuration Provider which returned configuration data or an error.success- result boolean indicating success/failure
-
onError
abstract void onError(@NonNull() ConfigurationLoader configurationLoader, @NonNull() ProviderIdentifier providerId, @NonNull() UserInputs requestedInput, @NonNull() ConfigurationProviderError error)
Error Handler Callback notifying caller of an input expected provider's error. processRequestedIputs must be called through the supplied ConfigurationLoader object to complete the invocation.
- Parameters:
configurationLoader- The ConfigurationLoader object that invoked this callback method.providerId- The provider identifier corresponding to the Configuration Provider which returned this error.requestedInput- The UserInputs describing the expected inputs for all providers requiring input.error- The ConfigurationProviderError.
-
onInputRequired
abstract void onInputRequired(@NonNull() ConfigurationLoader configurationLoader, @NonNull() UserInputs requestedInput)
Callback requesting initial user input. processRequestedIputs must be called through the supplied ConfigurationLoader object to complete the invocation.
- Parameters:
configurationLoader- The ConfigurationLoader object that invoked this callback method.requestedInput- UserInputs Input requested by the provider
-
-
-
-