displayhash

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package displayhash provides Go bindings for android.view.displayhash.

Index

Constants

View Source
const (
	Creator                              = consts.Creator
	DisplayHashErrorInvalidBounds        = consts.DisplayHashErrorInvalidBounds
	DisplayHashErrorInvalidHashAlgorithm = consts.DisplayHashErrorInvalidHashAlgorithm
	DisplayHashErrorMissingWindow        = consts.DisplayHashErrorMissingWindow
	DisplayHashErrorNotVisibleOnScreen   = consts.DisplayHashErrorNotVisibleOnScreen
	DisplayHashErrorTooManyRequests      = consts.DisplayHashErrorTooManyRequests
	DisplayHashErrorUnknown              = consts.DisplayHashErrorUnknown
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type DisplayHash

type DisplayHash struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DisplayHash wraps android.view.displayhash.DisplayHash.

func (*DisplayHash) DescribeContents

func (m *DisplayHash) DescribeContents() (int32, error)

DescribeContents calls android.view.displayhash.DisplayHash.describeContents.

func (*DisplayHash) ToString

func (m *DisplayHash) ToString() (string, error)

ToString calls android.view.displayhash.DisplayHash.toString.

func (*DisplayHash) WriteToParcel

func (m *DisplayHash) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.view.displayhash.DisplayHash.writeToParcel.

type DisplayHashManager

type DisplayHashManager struct {
	VM  *jni.VM
	Ctx *app.Context
	Obj *jni.GlobalRef
}

DisplayHashManager wraps android.view.displayhash.DisplayHashManager.

func NewDisplayHashManager

func NewDisplayHashManager(ctx *app.Context) (*DisplayHashManager, error)

NewDisplayHashManager obtains android.view.displayhash.DisplayHashManager from the Android system service manager.

func (*DisplayHashManager) Close

func (m *DisplayHashManager) Close()

Close releases the global reference to the underlying Java object. After Close, the DisplayHashManager must not be used.

func (*DisplayHashManager) GetSupportedHashAlgorithms added in v0.0.8

func (m *DisplayHashManager) GetSupportedHashAlgorithms() (*jni.Object, error)

GetSupportedHashAlgorithms calls android.view.displayhash.DisplayHashManager.getSupportedHashAlgorithms.

func (*DisplayHashManager) ToString added in v0.0.8

func (m *DisplayHashManager) ToString() (string, error)

ToString calls android.view.displayhash.DisplayHashManager.toString.

func (*DisplayHashManager) VerifyDisplayHash

func (m *DisplayHashManager) VerifyDisplayHash(arg0 *jni.Object) (*jni.Object, error)

VerifyDisplayHash calls android.view.displayhash.DisplayHashManager.verifyDisplayHash.

type DisplayHashResultCallback

type DisplayHashResultCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DisplayHashResultCallback wraps android.view.displayhash.DisplayHashResultCallback.

func (*DisplayHashResultCallback) OnDisplayHashError

func (m *DisplayHashResultCallback) OnDisplayHashError(arg0 int32) error

OnDisplayHashError calls android.view.displayhash.DisplayHashResultCallback.onDisplayHashError.

func (*DisplayHashResultCallback) OnDisplayHashResult

func (m *DisplayHashResultCallback) OnDisplayHashResult(arg0 *jni.Object) error

OnDisplayHashResult calls android.view.displayhash.DisplayHashResultCallback.onDisplayHashResult.

func (*DisplayHashResultCallback) ToString added in v0.0.8

func (m *DisplayHashResultCallback) ToString() (string, error)

ToString calls android.view.displayhash.DisplayHashResultCallback.toString.

type VerifiedDisplayHash

type VerifiedDisplayHash struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

VerifiedDisplayHash wraps android.view.displayhash.VerifiedDisplayHash.

func NewVerifiedDisplayHash

func NewVerifiedDisplayHash(vm *jni.VM, arg0 int64, arg1 *jni.Object, arg2 string, arg3 *jni.Object) (*VerifiedDisplayHash, error)

NewVerifiedDisplayHash creates a new android.view.displayhash.VerifiedDisplayHash instance.

func (*VerifiedDisplayHash) DescribeContents

func (m *VerifiedDisplayHash) DescribeContents() (int32, error)

DescribeContents calls android.view.displayhash.VerifiedDisplayHash.describeContents.

func (*VerifiedDisplayHash) GetBoundsInWindow

func (m *VerifiedDisplayHash) GetBoundsInWindow() (*jni.Object, error)

GetBoundsInWindow calls android.view.displayhash.VerifiedDisplayHash.getBoundsInWindow.

func (*VerifiedDisplayHash) GetHashAlgorithm

func (m *VerifiedDisplayHash) GetHashAlgorithm() (string, error)

GetHashAlgorithm calls android.view.displayhash.VerifiedDisplayHash.getHashAlgorithm.

func (*VerifiedDisplayHash) GetImageHash

func (m *VerifiedDisplayHash) GetImageHash() (*jni.Object, error)

GetImageHash calls android.view.displayhash.VerifiedDisplayHash.getImageHash.

func (*VerifiedDisplayHash) GetTimeMillis

func (m *VerifiedDisplayHash) GetTimeMillis() (int64, error)

GetTimeMillis calls android.view.displayhash.VerifiedDisplayHash.getTimeMillis.

func (*VerifiedDisplayHash) ToString

func (m *VerifiedDisplayHash) ToString() (string, error)

ToString calls android.view.displayhash.VerifiedDisplayHash.toString.

func (*VerifiedDisplayHash) WriteToParcel

func (m *VerifiedDisplayHash) WriteToParcel(arg0 *jni.Object, arg1 int32) error

WriteToParcel calls android.view.displayhash.VerifiedDisplayHash.writeToParcel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL