MCPcopy Create free account
hub / github.com/burningtnt/Terracotta / VpnServiceRequest

Interface VpnServiceRequest

ffi/TerracottaAndroidAPI.java:74–90  ·  view source on GitHub ↗

A VpnService Request submitted by Terracotta. See VpnServiceCallback

Source from the content-addressed store, hash-verified

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>

Callers

nothing calls this directly

Implementers 1

TerracottaAndroidAPIffi/TerracottaAndroidAPI.java

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…