A VpnService Request submitted by Terracotta. See VpnServiceCallback
| 72 | * <p>A VpnService Request submitted by Terracotta. See {@link VpnServiceCallback}</p> |
| 73 | */ |
| 74 | public interface VpnServiceRequest { |
| 75 | /** |
| 76 | * Create a Vpn Connection and fulfill the VpnService Request. |
| 77 | * |
| 78 | * @param builder A pre-configured VpnService builder. |
| 79 | * @return The established Vpn Connection. Developers must close this file descriptor after EasyTier exits. |
| 80 | * @throws RuntimeException if {@link VpnService.Builder#establish()} returns null. |
| 81 | * @implNote Developers is able to configure the builder before passing it into Terracotta |
| 82 | * to fully-custom the connection. |
| 83 | */ |
| 84 | ParcelFileDescriptor startVpnService(VpnService.Builder builder); |
| 85 | |
| 86 | /** |
| 87 | * <p>Reject the VpnServiceRequest.</p> |
| 88 | */ |
| 89 | void reject(); |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * <p>Metadata of Terracotta Android</p> |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…