Package zendesk.core
Class UserAgentHeaderInterceptor
- java.lang.Object
-
- zendesk.core.UserAgentHeaderInterceptor
-
public class UserAgentHeaderInterceptor extends java.lang.Object
This request interceptor will add the user agent header to all requests that are made through the means of aretrofit2.Retrofit
. This will overwrite any user-agent headers from earlier interceptorsThe formatted header is Zendesk-SDK/{{version}} Android/{{api level}} Variant/{{variant}}
For Support SDk 2.1.1 on android 5.0 the header would be Zendesk-SDK/2.1.1 Android/21 Variant/Support
-
-
Constructor Summary
Constructors Constructor and Description UserAgentHeaderInterceptor(java.lang.String version, java.lang.String variant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Response
intercept(Chain chain)
-