Documentation
¶
Overview ¶
Package strictmode provides Go bindings for android.os.strictmode.
Index ¶
- func Init(env *jni.Env) error
- type CleartextNetworkViolation
- type ContentUriWithoutPermissionViolation
- type CredentialProtectedWhileLockedViolation
- type CustomViolation
- type DiskReadViolation
- type DiskWriteViolation
- type ExplicitGcViolation
- type FileUriExposedViolation
- type ImplicitDirectBootViolation
- type IncorrectContextUseViolation
- type InstanceCountViolation
- type IntentReceiverLeakedViolation
- type LeakedClosableViolation
- type NetworkViolation
- type NonSdkApiUsedViolation
- type ResourceMismatchViolation
- type ServiceConnectionLeakedViolation
- type SqliteObjectLeakedViolation
- type UnbufferedIoViolation
- type UnsafeIntentLaunchViolation
- type UntaggedSocketViolation
- type Violation
- type WebViewMethodCalledOnWrongThreadViolation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleartextNetworkViolation ¶ added in v0.0.8
CleartextNetworkViolation wraps android.os.strictmode.CleartextNetworkViolation.
func (*CleartextNetworkViolation) ToString ¶ added in v0.0.8
func (m *CleartextNetworkViolation) ToString() (string, error)
ToString calls android.os.strictmode.CleartextNetworkViolation.toString.
type ContentUriWithoutPermissionViolation ¶ added in v0.0.8
ContentUriWithoutPermissionViolation wraps android.os.strictmode.ContentUriWithoutPermissionViolation.
func (*ContentUriWithoutPermissionViolation) ToString ¶ added in v0.0.8
func (m *ContentUriWithoutPermissionViolation) ToString() (string, error)
ToString calls android.os.strictmode.ContentUriWithoutPermissionViolation.toString.
type CredentialProtectedWhileLockedViolation ¶ added in v0.0.8
CredentialProtectedWhileLockedViolation wraps android.os.strictmode.CredentialProtectedWhileLockedViolation.
func (*CredentialProtectedWhileLockedViolation) ToString ¶ added in v0.0.8
func (m *CredentialProtectedWhileLockedViolation) ToString() (string, error)
ToString calls android.os.strictmode.CredentialProtectedWhileLockedViolation.toString.
type CustomViolation ¶ added in v0.0.8
CustomViolation wraps android.os.strictmode.CustomViolation.
func (*CustomViolation) ToString ¶ added in v0.0.8
func (m *CustomViolation) ToString() (string, error)
ToString calls android.os.strictmode.CustomViolation.toString.
type DiskReadViolation ¶ added in v0.0.8
DiskReadViolation wraps android.os.strictmode.DiskReadViolation.
func (*DiskReadViolation) ToString ¶ added in v0.0.8
func (m *DiskReadViolation) ToString() (string, error)
ToString calls android.os.strictmode.DiskReadViolation.toString.
type DiskWriteViolation ¶ added in v0.0.8
DiskWriteViolation wraps android.os.strictmode.DiskWriteViolation.
func (*DiskWriteViolation) ToString ¶ added in v0.0.8
func (m *DiskWriteViolation) ToString() (string, error)
ToString calls android.os.strictmode.DiskWriteViolation.toString.
type ExplicitGcViolation ¶ added in v0.0.8
ExplicitGcViolation wraps android.os.strictmode.ExplicitGcViolation.
func (*ExplicitGcViolation) ToString ¶ added in v0.0.8
func (m *ExplicitGcViolation) ToString() (string, error)
ToString calls android.os.strictmode.ExplicitGcViolation.toString.
type FileUriExposedViolation ¶ added in v0.0.8
FileUriExposedViolation wraps android.os.strictmode.FileUriExposedViolation.
func (*FileUriExposedViolation) ToString ¶ added in v0.0.8
func (m *FileUriExposedViolation) ToString() (string, error)
ToString calls android.os.strictmode.FileUriExposedViolation.toString.
type ImplicitDirectBootViolation ¶ added in v0.0.8
ImplicitDirectBootViolation wraps android.os.strictmode.ImplicitDirectBootViolation.
func (*ImplicitDirectBootViolation) ToString ¶ added in v0.0.8
func (m *ImplicitDirectBootViolation) ToString() (string, error)
ToString calls android.os.strictmode.ImplicitDirectBootViolation.toString.
type IncorrectContextUseViolation ¶
IncorrectContextUseViolation wraps android.os.strictmode.IncorrectContextUseViolation.
func NewIncorrectContextUseViolation ¶
func NewIncorrectContextUseViolation(vm *jni.VM, arg0 string, arg1 *jni.Object) (*IncorrectContextUseViolation, error)
NewIncorrectContextUseViolation creates a new android.os.strictmode.IncorrectContextUseViolation instance.
func (*IncorrectContextUseViolation) ToString ¶ added in v0.0.8
func (m *IncorrectContextUseViolation) ToString() (string, error)
ToString calls android.os.strictmode.IncorrectContextUseViolation.toString.
type InstanceCountViolation ¶
InstanceCountViolation wraps android.os.strictmode.InstanceCountViolation.
func (*InstanceCountViolation) GetNumberOfInstances ¶
func (m *InstanceCountViolation) GetNumberOfInstances() (int64, error)
GetNumberOfInstances calls android.os.strictmode.InstanceCountViolation.getNumberOfInstances.
func (*InstanceCountViolation) ToString ¶ added in v0.0.8
func (m *InstanceCountViolation) ToString() (string, error)
ToString calls android.os.strictmode.InstanceCountViolation.toString.
type IntentReceiverLeakedViolation ¶ added in v0.0.8
IntentReceiverLeakedViolation wraps android.os.strictmode.IntentReceiverLeakedViolation.
func (*IntentReceiverLeakedViolation) ToString ¶ added in v0.0.8
func (m *IntentReceiverLeakedViolation) ToString() (string, error)
ToString calls android.os.strictmode.IntentReceiverLeakedViolation.toString.
type LeakedClosableViolation ¶ added in v0.0.8
LeakedClosableViolation wraps android.os.strictmode.LeakedClosableViolation.
func (*LeakedClosableViolation) ToString ¶ added in v0.0.8
func (m *LeakedClosableViolation) ToString() (string, error)
ToString calls android.os.strictmode.LeakedClosableViolation.toString.
type NetworkViolation ¶ added in v0.0.8
NetworkViolation wraps android.os.strictmode.NetworkViolation.
func (*NetworkViolation) ToString ¶ added in v0.0.8
func (m *NetworkViolation) ToString() (string, error)
ToString calls android.os.strictmode.NetworkViolation.toString.
type NonSdkApiUsedViolation ¶ added in v0.0.8
NonSdkApiUsedViolation wraps android.os.strictmode.NonSdkApiUsedViolation.
func (*NonSdkApiUsedViolation) ToString ¶ added in v0.0.8
func (m *NonSdkApiUsedViolation) ToString() (string, error)
ToString calls android.os.strictmode.NonSdkApiUsedViolation.toString.
type ResourceMismatchViolation ¶ added in v0.0.8
ResourceMismatchViolation wraps android.os.strictmode.ResourceMismatchViolation.
func (*ResourceMismatchViolation) ToString ¶ added in v0.0.8
func (m *ResourceMismatchViolation) ToString() (string, error)
ToString calls android.os.strictmode.ResourceMismatchViolation.toString.
type ServiceConnectionLeakedViolation ¶ added in v0.0.8
ServiceConnectionLeakedViolation wraps android.os.strictmode.ServiceConnectionLeakedViolation.
func (*ServiceConnectionLeakedViolation) ToString ¶ added in v0.0.8
func (m *ServiceConnectionLeakedViolation) ToString() (string, error)
ToString calls android.os.strictmode.ServiceConnectionLeakedViolation.toString.
type SqliteObjectLeakedViolation ¶ added in v0.0.8
SqliteObjectLeakedViolation wraps android.os.strictmode.SqliteObjectLeakedViolation.
func (*SqliteObjectLeakedViolation) ToString ¶ added in v0.0.8
func (m *SqliteObjectLeakedViolation) ToString() (string, error)
ToString calls android.os.strictmode.SqliteObjectLeakedViolation.toString.
type UnbufferedIoViolation ¶ added in v0.0.8
UnbufferedIoViolation wraps android.os.strictmode.UnbufferedIoViolation.
func (*UnbufferedIoViolation) ToString ¶ added in v0.0.8
func (m *UnbufferedIoViolation) ToString() (string, error)
ToString calls android.os.strictmode.UnbufferedIoViolation.toString.
type UnsafeIntentLaunchViolation ¶
UnsafeIntentLaunchViolation wraps android.os.strictmode.UnsafeIntentLaunchViolation.
func NewUnsafeIntentLaunchViolation ¶
func NewUnsafeIntentLaunchViolation(vm *jni.VM, arg0 *jni.Object) (*UnsafeIntentLaunchViolation, error)
NewUnsafeIntentLaunchViolation creates a new android.os.strictmode.UnsafeIntentLaunchViolation instance.
func (*UnsafeIntentLaunchViolation) GetIntent ¶
func (m *UnsafeIntentLaunchViolation) GetIntent() (*jni.Object, error)
GetIntent calls android.os.strictmode.UnsafeIntentLaunchViolation.getIntent.
func (*UnsafeIntentLaunchViolation) ToString ¶ added in v0.0.8
func (m *UnsafeIntentLaunchViolation) ToString() (string, error)
ToString calls android.os.strictmode.UnsafeIntentLaunchViolation.toString.
type UntaggedSocketViolation ¶ added in v0.0.8
UntaggedSocketViolation wraps android.os.strictmode.UntaggedSocketViolation.
func (*UntaggedSocketViolation) ToString ¶ added in v0.0.8
func (m *UntaggedSocketViolation) ToString() (string, error)
ToString calls android.os.strictmode.UntaggedSocketViolation.toString.
type Violation ¶
Violation wraps android.os.strictmode.Violation.
func (*Violation) SetStackTrace ¶
SetStackTrace calls android.os.strictmode.Violation.setStackTrace.
type WebViewMethodCalledOnWrongThreadViolation ¶ added in v0.0.8
WebViewMethodCalledOnWrongThreadViolation wraps android.os.strictmode.WebViewMethodCalledOnWrongThreadViolation.
func (*WebViewMethodCalledOnWrongThreadViolation) ToString ¶ added in v0.0.8
func (m *WebViewMethodCalledOnWrongThreadViolation) ToString() (string, error)
ToString calls android.os.strictmode.WebViewMethodCalledOnWrongThreadViolation.toString.
Source Files
¶
- cleartext_network_violation.go
- content_uri_without_permission_violation.go
- credential_protected_while_locked_violation.go
- custom_violation.go
- disk_read_violation.go
- disk_write_violation.go
- doc.go
- explicit_gc_violation.go
- file_uri_exposed_violation.go
- implicit_direct_boot_violation.go
- incorrect_context_use_violation.go
- init.go
- instance_count_violation.go
- intent_receiver_leaked_violation.go
- leaked_closable_violation.go
- network_violation.go
- non_sdk_api_used_violation.go
- resource_mismatch_violation.go
- service_connection_leaked_violation.go
- sqlite_object_leaked_violation.go
- unbuffered_io_violation.go
- unsafe_intent_launch_violation.go
- untagged_socket_violation.go
- violation.go
- web_view_method_called_on_wrong_thread_violation.go