Builder

Class of android.net, in VpnService · VpnService.java · Android's reference

public class Builder

Constructors

public Builder() empty body source

Methods

public Builder setSession(String session) source
public Builder setConfigureIntent(android.app.PendingIntent intent) source
public Builder setMtu(int mtu) source
public Builder addAddress(InetAddress address, int prefixLength) source
public Builder addAddress(String address, int prefixLength) source
public Builder addRoute(InetAddress address, int prefixLength) source
public Builder addRoute(String address, int prefixLength) source
public Builder addDnsServer(InetAddress address) source
public Builder addDnsServer(String address) source
public Builder addSearchDomain(String domain) source
public Builder allowFamily(int family) source
public Builder allowBypass() source
public Builder setBlocking(boolean blocking) source
public Builder setUnderlyingNetworks(Network[] networks) source
public Builder setMetered(boolean isMetered) source
public Builder addAllowedApplication(String packageName) throws android.content.pm.PackageManager.NameNotFoundException source
public Builder addDisallowedApplication(String packageName) throws android.content.pm.PackageManager.NameNotFoundException source
public ParcelFileDescriptor establish() source

the interface: none can be made, as Android gives when it fails


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.