Documentation
¶
Overview ¶
Package vpn provides Go bindings for android.net.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type Service
- func (m *Service) IsAlwaysOn() (bool, error)
- func (m *Service) IsLockdownEnabled() (bool, error)
- func (m *Service) OnBind(arg0 *jni.Object) (*jni.Object, error)
- func (m *Service) OnRevoke() error
- func (m *Service) Prepare(arg0 *jni.Object) (*jni.Object, error)
- func (m *Service) Protect1(arg0 int32) (bool, error)
- func (m *Service) Protect1_1(arg0 *jni.Object) (bool, error)
- func (m *Service) Protect1_2(arg0 *jni.Object) (bool, error)
- func (m *Service) SetUnderlyingNetworks(arg0 *jni.Object) (bool, error)
Constants ¶
View Source
const ( ServiceInterface = consts.ServiceInterface ServiceMetaDataSupportsAlwaysOn = consts.ServiceMetaDataSupportsAlwaysOn )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶ added in v0.0.4
Service wraps android.net.VpnService.
func (*Service) IsAlwaysOn ¶ added in v0.0.4
IsAlwaysOn calls android.net.VpnService.isAlwaysOn.
func (*Service) IsLockdownEnabled ¶ added in v0.0.4
IsLockdownEnabled calls android.net.VpnService.isLockdownEnabled.
func (*Service) Protect1_1 ¶ added in v0.0.4
Protect1_1 calls android.net.VpnService.protect.
func (*Service) Protect1_2 ¶ added in v0.0.4
Protect1_2 calls android.net.VpnService.protect.
Click to show internal directories.
Click to hide internal directories.