Class BlockedUserInterceptor
-
- All Implemented Interfaces:
-
okhttp3.Interceptor
@Deprecated() public class BlockedUserInterceptor implements Interceptor
This 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 enum
BlockedUserInterceptor.BlockType
Specifies the type of user block that occurred.
public interface
BlockedUserInterceptor.BlockedUserCallback
Callback interface used to handle a user blocked event.
-
Field Summary
Fields Modifier and Type Field Description public final static Interceptor.Companion
Companion
-
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 Response
intercept(@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)
-
-
-
-