Class BlockedUserInterceptor
-
- All Implemented Interfaces:
-
okhttp3.Interceptor
@Deprecated() public class BlockedUserInterceptor implements InterceptorThis Interceptor is responsible for informing the application that the user has been blocked from communicating with the server. Deprecated since 7.1.0, please see 'LockAndWipeService' for details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBlockedUserInterceptor.BlockTypeSpecifies the type of user block that occurred.
public interfaceBlockedUserInterceptor.BlockedUserCallbackCallback interface used to handle a user blocked event.
-
Constructor Summary
Constructors Constructor Description BlockedUserInterceptor(BlockedUserInterceptor.BlockedUserCallback blockedUserCallback)Creates a blocked user interceptor object which will fire the specified callback in the case that an http request is made and the user is blocked at the server.
-
Method Summary
Modifier and Type Method Description Responseintercept(@NonNull() Interceptor.Chain chain)-
-
Constructor Detail
-
BlockedUserInterceptor
BlockedUserInterceptor(BlockedUserInterceptor.BlockedUserCallback blockedUserCallback)
Creates a blocked user interceptor object which will fire the specified callback in the case that an http request is made and the user is blocked at the server.
- Parameters:
blockedUserCallback- A BlockedUserCallback implementation that will be invoked when an http request is made and the user is blocked by the server.
-
-
Method Detail
-
intercept
@NonNull() Response intercept(@NonNull() Interceptor.Chain chain)
-
-
-
-