Package com.zendesk.sdk.network
Interface BaseProvider
-
public interface BaseProviderMeta provider that should be used in all providers which needMobileSettingsand anAccessToken.Every provider method that does network operations should call
#configureSdk(ZendeskCallback)before.#configureSdk(ZendeskCallback)will return aSdkConfigurationwhat contains anAccessTokenandMobileSettings.
The implementation ofBaseProvidermanages loading ofMobileSettingsand anAccessToken.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidconfigureSdk(<any> callback)Loads all configurations that are needed by the SDK to to network requests.voidgetAccessToken(SafeMobileSettings mobileSettings, <any> callback)Retrieve an instance ofAccessToken.voidgetSdkSettings(<any> callback)Retrieve an instance ofMobileSettings.
-
-
-
Method Detail
-
configureSdk
void configureSdk(<any> callback)
Loads all configurations that are needed by the SDK to to network requests.- Parameters:
callback- A callback that will return aSdkConfigurationor anErrorResponse
-
getSdkSettings
void getSdkSettings(<any> callback)
Retrieve an instance ofMobileSettings. This method decides whether the settings should be loaded from the network or from local storage.- Parameters:
callback- AZendeskCallbackthat returnsMobileSettingsor anErrorResponse
-
getAccessToken
void getAccessToken(SafeMobileSettings mobileSettings, <any> callback)
Retrieve an instance ofAccessToken. The method decides whether the settings should be loaded from the network or from local storage.- Parameters:
mobileSettings- ValidMobileSettingscallback- AZendeskCallbackthat returnsAccessTokenor anErrorResponse
-
-