res

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Package res provides Go bindings for android.content.res.

Index

Constants

View Source
const (
	ColorModeHdrMask                 = consts.ColorModeHdrMask
	ColorModeHdrNo                   = consts.ColorModeHdrNo
	ColorModeHdrShift                = consts.ColorModeHdrShift
	ColorModeHdrUndefined            = consts.ColorModeHdrUndefined
	ColorModeHdrYes                  = consts.ColorModeHdrYes
	ColorModeUndefined               = consts.ColorModeUndefined
	ColorModeWideColorGamutMask      = consts.ColorModeWideColorGamutMask
	ColorModeWideColorGamutNo        = consts.ColorModeWideColorGamutNo
	ColorModeWideColorGamutUndefined = consts.ColorModeWideColorGamutUndefined
	ColorModeWideColorGamutYes       = consts.ColorModeWideColorGamutYes
	Creator                          = consts.Creator
	DensityDpiUndefined              = consts.DensityDpiUndefined
	FontWeightAdjustmentUndefined    = consts.FontWeightAdjustmentUndefined
	GrammaticalGenderFeminine        = consts.GrammaticalGenderFeminine
	GrammaticalGenderMasculine       = consts.GrammaticalGenderMasculine
	GrammaticalGenderNeutral         = consts.GrammaticalGenderNeutral
	GrammaticalGenderNotSpecified    = consts.GrammaticalGenderNotSpecified
	HardkeyboardhiddenNo             = consts.HardkeyboardhiddenNo
	HardkeyboardhiddenUndefined      = consts.HardkeyboardhiddenUndefined
	HardkeyboardhiddenYes            = consts.HardkeyboardhiddenYes
	KeyboardhiddenNo                 = consts.KeyboardhiddenNo
	KeyboardhiddenUndefined          = consts.KeyboardhiddenUndefined
	KeyboardhiddenYes                = consts.KeyboardhiddenYes
	Keyboard12key                    = consts.Keyboard12key
	KeyboardNokeys                   = consts.KeyboardNokeys
	KeyboardQwerty                   = consts.KeyboardQwerty
	KeyboardUndefined                = consts.KeyboardUndefined
	MncZero                          = consts.MncZero
	NavigationhiddenNo               = consts.NavigationhiddenNo
	NavigationhiddenUndefined        = consts.NavigationhiddenUndefined
	NavigationhiddenYes              = consts.NavigationhiddenYes
	NavigationDpad                   = consts.NavigationDpad
	NavigationNonav                  = consts.NavigationNonav
	NavigationTrackball              = consts.NavigationTrackball
	NavigationUndefined              = consts.NavigationUndefined
	NavigationWheel                  = consts.NavigationWheel
	OrientationLandscape             = consts.OrientationLandscape
	OrientationPortrait              = consts.OrientationPortrait
	OrientationSquare                = consts.OrientationSquare
	OrientationUndefined             = consts.OrientationUndefined
	ScreenlayoutLayoutdirLtr         = consts.ScreenlayoutLayoutdirLtr
	ScreenlayoutLayoutdirMask        = consts.ScreenlayoutLayoutdirMask
	ScreenlayoutLayoutdirRtl         = consts.ScreenlayoutLayoutdirRtl
	ScreenlayoutLayoutdirShift       = consts.ScreenlayoutLayoutdirShift
	ScreenlayoutLayoutdirUndefined   = consts.ScreenlayoutLayoutdirUndefined
	ScreenlayoutLongMask             = consts.ScreenlayoutLongMask
	ScreenlayoutLongNo               = consts.ScreenlayoutLongNo
	ScreenlayoutLongUndefined        = consts.ScreenlayoutLongUndefined
	ScreenlayoutLongYes              = consts.ScreenlayoutLongYes
	ScreenlayoutRoundMask            = consts.ScreenlayoutRoundMask
	ScreenlayoutRoundNo              = consts.ScreenlayoutRoundNo
	ScreenlayoutRoundUndefined       = consts.ScreenlayoutRoundUndefined
	ScreenlayoutRoundYes             = consts.ScreenlayoutRoundYes
	ScreenlayoutSizeLarge            = consts.ScreenlayoutSizeLarge
	ScreenlayoutSizeMask             = consts.ScreenlayoutSizeMask
	ScreenlayoutSizeNormal           = consts.ScreenlayoutSizeNormal
	ScreenlayoutSizeSmall            = consts.ScreenlayoutSizeSmall
	ScreenlayoutSizeUndefined        = consts.ScreenlayoutSizeUndefined
	ScreenlayoutSizeXlarge           = consts.ScreenlayoutSizeXlarge
	ScreenlayoutUndefined            = consts.ScreenlayoutUndefined
	ScreenHeightDpUndefined          = consts.ScreenHeightDpUndefined
	ScreenWidthDpUndefined           = consts.ScreenWidthDpUndefined
	SmallestScreenWidthDpUndefined   = consts.SmallestScreenWidthDpUndefined
	TouchscreenFinger                = consts.TouchscreenFinger
	TouchscreenNotouch               = consts.TouchscreenNotouch
	TouchscreenStylus                = consts.TouchscreenStylus
	TouchscreenUndefined             = consts.TouchscreenUndefined
	UiModeNightMask                  = consts.UiModeNightMask
	UiModeNightNo                    = consts.UiModeNightNo
	UiModeNightUndefined             = consts.UiModeNightUndefined
	UiModeNightYes                   = consts.UiModeNightYes
	UiModeTypeAppliance              = consts.UiModeTypeAppliance
	UiModeTypeCar                    = consts.UiModeTypeCar
	UiModeTypeDesk                   = consts.UiModeTypeDesk
	UiModeTypeMask                   = consts.UiModeTypeMask
	UiModeTypeNormal                 = consts.UiModeTypeNormal
	UiModeTypeTelevision             = consts.UiModeTypeTelevision
	UiModeTypeUndefined              = consts.UiModeTypeUndefined
	UiModeTypeVrHeadset              = consts.UiModeTypeVrHeadset
	UiModeTypeWatch                  = consts.UiModeTypeWatch
	ObbOverlay                       = consts.ObbOverlay
	AccessBuffer                     = consts.AccessBuffer
	AccessRandom                     = consts.AccessRandom
	AccessStreaming                  = consts.AccessStreaming
	AccessUnknown                    = consts.AccessUnknown
)
View Source
const (
	UnknownLength = consts.UnknownLength
)

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 AssetFileDescriptor

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

AssetFileDescriptor wraps android.content.res.AssetFileDescriptor.

func NewAssetFileDescriptor

func NewAssetFileDescriptor(vm *jni.VM, arg0 *jni.Object, arg1 int64, arg2 int64) (*AssetFileDescriptor, error)

NewAssetFileDescriptor creates a new android.content.res.AssetFileDescriptor instance.

func (*AssetFileDescriptor) Close

func (m *AssetFileDescriptor) Close() error

Close calls android.content.res.AssetFileDescriptor.close.

func (*AssetFileDescriptor) CreateInputStream

func (m *AssetFileDescriptor) CreateInputStream() (*jni.Object, error)

CreateInputStream calls android.content.res.AssetFileDescriptor.createInputStream.

func (*AssetFileDescriptor) CreateOutputStream

func (m *AssetFileDescriptor) CreateOutputStream() (*jni.Object, error)

CreateOutputStream calls android.content.res.AssetFileDescriptor.createOutputStream.

func (*AssetFileDescriptor) DescribeContents

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

DescribeContents calls android.content.res.AssetFileDescriptor.describeContents.

func (*AssetFileDescriptor) GetDeclaredLength

func (m *AssetFileDescriptor) GetDeclaredLength() (int64, error)

GetDeclaredLength calls android.content.res.AssetFileDescriptor.getDeclaredLength.

func (*AssetFileDescriptor) GetExtras

func (m *AssetFileDescriptor) GetExtras() (*jni.Object, error)

GetExtras calls android.content.res.AssetFileDescriptor.getExtras.

func (*AssetFileDescriptor) GetFileDescriptor

func (m *AssetFileDescriptor) GetFileDescriptor() (*jni.Object, error)

GetFileDescriptor calls android.content.res.AssetFileDescriptor.getFileDescriptor.

func (*AssetFileDescriptor) GetLength

func (m *AssetFileDescriptor) GetLength() (int64, error)

GetLength calls android.content.res.AssetFileDescriptor.getLength.

func (*AssetFileDescriptor) GetParcelFileDescriptor

func (m *AssetFileDescriptor) GetParcelFileDescriptor() (*jni.Object, error)

GetParcelFileDescriptor calls android.content.res.AssetFileDescriptor.getParcelFileDescriptor.

func (*AssetFileDescriptor) GetStartOffset

func (m *AssetFileDescriptor) GetStartOffset() (int64, error)

GetStartOffset calls android.content.res.AssetFileDescriptor.getStartOffset.

func (*AssetFileDescriptor) ToString

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

ToString calls android.content.res.AssetFileDescriptor.toString.

func (*AssetFileDescriptor) WriteToParcel

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

WriteToParcel calls android.content.res.AssetFileDescriptor.writeToParcel.

type AssetFileDescriptorAutoCloseInputStream

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

AssetFileDescriptorAutoCloseInputStream wraps android.content.res.AssetFileDescriptor$AutoCloseInputStream.

func (*AssetFileDescriptorAutoCloseInputStream) Available

Available calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.available.

func (*AssetFileDescriptorAutoCloseInputStream) Close

Close calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.close.

func (*AssetFileDescriptorAutoCloseInputStream) GetChannel

GetChannel calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.getChannel.

func (*AssetFileDescriptorAutoCloseInputStream) Mark

Mark calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.mark.

func (*AssetFileDescriptorAutoCloseInputStream) MarkSupported

func (m *AssetFileDescriptorAutoCloseInputStream) MarkSupported() (bool, error)

MarkSupported calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.markSupported.

func (*AssetFileDescriptorAutoCloseInputStream) Read0

Read0 calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.read.

func (*AssetFileDescriptorAutoCloseInputStream) Read1_1

Read1_1 calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.read.

func (*AssetFileDescriptorAutoCloseInputStream) Read3_2

func (m *AssetFileDescriptorAutoCloseInputStream) Read3_2(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) (int32, error)

Read3_2 calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.read.

func (*AssetFileDescriptorAutoCloseInputStream) Skip

Skip calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.skip.

type AssetFileDescriptorAutoCloseOutputStream

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

AssetFileDescriptorAutoCloseOutputStream wraps android.content.res.AssetFileDescriptor$AutoCloseOutputStream.

func (*AssetFileDescriptorAutoCloseOutputStream) Write1

Write1 calls android.content.res.AssetFileDescriptor$AutoCloseOutputStream.write.

func (*AssetFileDescriptorAutoCloseOutputStream) Write1_2

Write1_2 calls android.content.res.AssetFileDescriptor$AutoCloseOutputStream.write.

func (*AssetFileDescriptorAutoCloseOutputStream) Write3_1

func (m *AssetFileDescriptorAutoCloseOutputStream) Write3_1(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) error

Write3_1 calls android.content.res.AssetFileDescriptor$AutoCloseOutputStream.write.

type AssetManager

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

AssetManager wraps android.content.res.AssetManager.

func (*AssetManager) Close

func (m *AssetManager) Close() error

Close calls android.content.res.AssetManager.close.

func (*AssetManager) GetLocales

func (m *AssetManager) GetLocales() (*jni.Object, error)

GetLocales calls android.content.res.AssetManager.getLocales.

func (*AssetManager) List

func (m *AssetManager) List(arg0 string) (*jni.Object, error)

List calls android.content.res.AssetManager.list.

func (*AssetManager) Open1

func (m *AssetManager) Open1(arg0 string) (*jni.Object, error)

Open1 calls android.content.res.AssetManager.open.

func (*AssetManager) Open2_1

func (m *AssetManager) Open2_1(arg0 string, arg1 int32) (*jni.Object, error)

Open2_1 calls android.content.res.AssetManager.open.

func (*AssetManager) OpenFd

func (m *AssetManager) OpenFd(arg0 string) (*jni.Object, error)

OpenFd calls android.content.res.AssetManager.openFd.

func (*AssetManager) OpenNonAssetFd1_1

func (m *AssetManager) OpenNonAssetFd1_1(arg0 string) (*jni.Object, error)

OpenNonAssetFd1_1 calls android.content.res.AssetManager.openNonAssetFd.

func (*AssetManager) OpenNonAssetFd2

func (m *AssetManager) OpenNonAssetFd2(arg0 int32, arg1 string) (*jni.Object, error)

OpenNonAssetFd2 calls android.content.res.AssetManager.openNonAssetFd.

func (*AssetManager) OpenXmlResourceParser1_1

func (m *AssetManager) OpenXmlResourceParser1_1(arg0 string) (*jni.Object, error)

OpenXmlResourceParser1_1 calls android.content.res.AssetManager.openXmlResourceParser.

func (*AssetManager) OpenXmlResourceParser2

func (m *AssetManager) OpenXmlResourceParser2(arg0 int32, arg1 string) (*jni.Object, error)

OpenXmlResourceParser2 calls android.content.res.AssetManager.openXmlResourceParser.

type AssetManagerAssetInputStream

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

AssetManagerAssetInputStream wraps android.content.res.AssetManager$AssetInputStream.

func (*AssetManagerAssetInputStream) Available

func (m *AssetManagerAssetInputStream) Available() (int32, error)

Available calls android.content.res.AssetManager$AssetInputStream.available.

func (*AssetManagerAssetInputStream) Close

Close calls android.content.res.AssetManager$AssetInputStream.close.

func (*AssetManagerAssetInputStream) Mark

Mark calls android.content.res.AssetManager$AssetInputStream.mark.

func (*AssetManagerAssetInputStream) MarkSupported

func (m *AssetManagerAssetInputStream) MarkSupported() (bool, error)

MarkSupported calls android.content.res.AssetManager$AssetInputStream.markSupported.

func (*AssetManagerAssetInputStream) Read0

Read0 calls android.content.res.AssetManager$AssetInputStream.read.

func (*AssetManagerAssetInputStream) Read1_1

func (m *AssetManagerAssetInputStream) Read1_1(arg0 *jni.Object) (int32, error)

Read1_1 calls android.content.res.AssetManager$AssetInputStream.read.

func (*AssetManagerAssetInputStream) Read3_2

func (m *AssetManagerAssetInputStream) Read3_2(
	arg0 *jni.Object,
	arg1 int32,
	arg2 int32,
) (int32, error)

Read3_2 calls android.content.res.AssetManager$AssetInputStream.read.

func (*AssetManagerAssetInputStream) Reset

Reset calls android.content.res.AssetManager$AssetInputStream.reset.

func (*AssetManagerAssetInputStream) Skip

func (m *AssetManagerAssetInputStream) Skip(arg0 int64) (int64, error)

Skip calls android.content.res.AssetManager$AssetInputStream.skip.

type ColorStateList

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

ColorStateList wraps android.content.res.ColorStateList.

func NewColorStateList

func NewColorStateList(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*ColorStateList, error)

NewColorStateList creates a new android.content.res.ColorStateList instance.

func (*ColorStateList) CreateFromXml2

func (m *ColorStateList) CreateFromXml2(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

CreateFromXml2 calls android.content.res.ColorStateList.createFromXml.

func (*ColorStateList) CreateFromXml3_1

func (m *ColorStateList) CreateFromXml3_1(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) (*jni.Object, error)

CreateFromXml3_1 calls android.content.res.ColorStateList.createFromXml.

func (*ColorStateList) DescribeContents

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

DescribeContents calls android.content.res.ColorStateList.describeContents.

func (*ColorStateList) GetChangingConfigurations

func (m *ColorStateList) GetChangingConfigurations() (int32, error)

GetChangingConfigurations calls android.content.res.ColorStateList.getChangingConfigurations.

func (*ColorStateList) GetColorForState

func (m *ColorStateList) GetColorForState(arg0 *jni.Object, arg1 int32) (int32, error)

GetColorForState calls android.content.res.ColorStateList.getColorForState.

func (*ColorStateList) GetDefaultColor

func (m *ColorStateList) GetDefaultColor() (int32, error)

GetDefaultColor calls android.content.res.ColorStateList.getDefaultColor.

func (*ColorStateList) IsOpaque

func (m *ColorStateList) IsOpaque() (bool, error)

IsOpaque calls android.content.res.ColorStateList.isOpaque.

func (*ColorStateList) IsStateful

func (m *ColorStateList) IsStateful() (bool, error)

IsStateful calls android.content.res.ColorStateList.isStateful.

func (*ColorStateList) ToString

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

ToString calls android.content.res.ColorStateList.toString.

func (*ColorStateList) ValueOf

func (m *ColorStateList) ValueOf(arg0 int32) (*jni.Object, error)

ValueOf calls android.content.res.ColorStateList.valueOf.

func (*ColorStateList) WithAlpha

func (m *ColorStateList) WithAlpha(arg0 int32) (*jni.Object, error)

WithAlpha calls android.content.res.ColorStateList.withAlpha.

func (*ColorStateList) WithLStar

func (m *ColorStateList) WithLStar(arg0 float32) (*jni.Object, error)

WithLStar calls android.content.res.ColorStateList.withLStar.

func (*ColorStateList) WriteToParcel

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

WriteToParcel calls android.content.res.ColorStateList.writeToParcel.

type Configuration

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

Configuration wraps android.content.res.Configuration.

func NewConfiguration

func NewConfiguration(vm *jni.VM) (*Configuration, error)

NewConfiguration creates a new android.content.res.Configuration instance.

func (*Configuration) CompareTo1

func (m *Configuration) CompareTo1(arg0 *jni.Object) (int32, error)

CompareTo1 calls android.content.res.Configuration.compareTo.

func (*Configuration) CompareTo1_1

func (m *Configuration) CompareTo1_1(arg0 *jni.Object) (int32, error)

CompareTo1_1 calls android.content.res.Configuration.compareTo.

func (*Configuration) DescribeContents

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

DescribeContents calls android.content.res.Configuration.describeContents.

func (*Configuration) Diff

func (m *Configuration) Diff(arg0 *jni.Object) (int32, error)

Diff calls android.content.res.Configuration.diff.

func (*Configuration) Equals1

func (m *Configuration) Equals1(arg0 *jni.Object) (bool, error)

Equals1 calls android.content.res.Configuration.equals.

func (*Configuration) Equals1_1

func (m *Configuration) Equals1_1(arg0 *jni.Object) (bool, error)

Equals1_1 calls android.content.res.Configuration.equals.

func (*Configuration) GenerateDelta

func (m *Configuration) GenerateDelta(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

GenerateDelta calls android.content.res.Configuration.generateDelta.

func (*Configuration) GetGrammaticalGender

func (m *Configuration) GetGrammaticalGender() (int32, error)

GetGrammaticalGender calls android.content.res.Configuration.getGrammaticalGender.

func (*Configuration) GetLayoutDirection

func (m *Configuration) GetLayoutDirection() (int32, error)

GetLayoutDirection calls android.content.res.Configuration.getLayoutDirection.

func (*Configuration) GetLocales

func (m *Configuration) GetLocales() (*jni.Object, error)

GetLocales calls android.content.res.Configuration.getLocales.

func (*Configuration) HashCode

func (m *Configuration) HashCode() (int32, error)

HashCode calls android.content.res.Configuration.hashCode.

func (*Configuration) IsLayoutSizeAtLeast

func (m *Configuration) IsLayoutSizeAtLeast(arg0 int32) (bool, error)

IsLayoutSizeAtLeast calls android.content.res.Configuration.isLayoutSizeAtLeast.

func (*Configuration) IsNightModeActive

func (m *Configuration) IsNightModeActive() (bool, error)

IsNightModeActive calls android.content.res.Configuration.isNightModeActive.

func (*Configuration) IsScreenHdr

func (m *Configuration) IsScreenHdr() (bool, error)

IsScreenHdr calls android.content.res.Configuration.isScreenHdr.

func (*Configuration) IsScreenRound

func (m *Configuration) IsScreenRound() (bool, error)

IsScreenRound calls android.content.res.Configuration.isScreenRound.

func (*Configuration) IsScreenWideColorGamut

func (m *Configuration) IsScreenWideColorGamut() (bool, error)

IsScreenWideColorGamut calls android.content.res.Configuration.isScreenWideColorGamut.

func (*Configuration) NeedNewResources

func (m *Configuration) NeedNewResources(arg0 int32, arg1 int32) (bool, error)

NeedNewResources calls android.content.res.Configuration.needNewResources.

func (*Configuration) ReadFromParcel

func (m *Configuration) ReadFromParcel(arg0 *jni.Object) error

ReadFromParcel calls android.content.res.Configuration.readFromParcel.

func (*Configuration) SetLayoutDirection

func (m *Configuration) SetLayoutDirection(arg0 *jni.Object) error

SetLayoutDirection calls android.content.res.Configuration.setLayoutDirection.

func (*Configuration) SetLocale

func (m *Configuration) SetLocale(arg0 *jni.Object) error

SetLocale calls android.content.res.Configuration.setLocale.

func (*Configuration) SetLocales

func (m *Configuration) SetLocales(arg0 *jni.Object) error

SetLocales calls android.content.res.Configuration.setLocales.

func (*Configuration) SetTo

func (m *Configuration) SetTo(arg0 *jni.Object) error

SetTo calls android.content.res.Configuration.setTo.

func (*Configuration) SetToDefaults

func (m *Configuration) SetToDefaults() error

SetToDefaults calls android.content.res.Configuration.setToDefaults.

func (*Configuration) ToString

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

ToString calls android.content.res.Configuration.toString.

func (*Configuration) UpdateFrom

func (m *Configuration) UpdateFrom(arg0 *jni.Object) (int32, error)

UpdateFrom calls android.content.res.Configuration.updateFrom.

func (*Configuration) WriteToParcel

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

WriteToParcel calls android.content.res.Configuration.writeToParcel.

type FontScaleConverter

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

FontScaleConverter wraps android.content.res.FontScaleConverter.

func (*FontScaleConverter) ConvertDpToSp

func (m *FontScaleConverter) ConvertDpToSp(arg0 float32) (float32, error)

ConvertDpToSp calls android.content.res.FontScaleConverter.convertDpToSp.

func (*FontScaleConverter) ConvertSpToDp

func (m *FontScaleConverter) ConvertSpToDp(arg0 float32) (float32, error)

ConvertSpToDp calls android.content.res.FontScaleConverter.convertSpToDp.

func (*FontScaleConverter) ForScale

func (m *FontScaleConverter) ForScale(arg0 float32) (*jni.Object, error)

ForScale calls android.content.res.FontScaleConverter.forScale.

func (*FontScaleConverter) IsNonLinearFontScalingActive

func (m *FontScaleConverter) IsNonLinearFontScalingActive(arg0 float32) (bool, error)

IsNonLinearFontScalingActive calls android.content.res.FontScaleConverter.isNonLinearFontScalingActive.

type ObbInfo

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

ObbInfo wraps android.content.res.ObbInfo.

func (*ObbInfo) DescribeContents

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

DescribeContents calls android.content.res.ObbInfo.describeContents.

func (*ObbInfo) ToString

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

ToString calls android.content.res.ObbInfo.toString.

func (*ObbInfo) WriteToParcel

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

WriteToParcel calls android.content.res.ObbInfo.writeToParcel.

type ObbScanner

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

ObbScanner wraps android.content.res.ObbScanner.

func (*ObbScanner) GetObbInfo

func (m *ObbScanner) GetObbInfo(arg0 string) (*jni.Object, error)

GetObbInfo calls android.content.res.ObbScanner.getObbInfo.

type TypedArray

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

TypedArray wraps android.content.res.TypedArray.

func (*TypedArray) Close

func (m *TypedArray) Close() error

Close calls android.content.res.TypedArray.close.

func (*TypedArray) GetBoolean

func (m *TypedArray) GetBoolean(arg0 int32, arg1 bool) (bool, error)

GetBoolean calls android.content.res.TypedArray.getBoolean.

func (*TypedArray) GetChangingConfigurations

func (m *TypedArray) GetChangingConfigurations() (int32, error)

GetChangingConfigurations calls android.content.res.TypedArray.getChangingConfigurations.

func (*TypedArray) GetColor

func (m *TypedArray) GetColor(arg0 int32, arg1 int32) (int32, error)

GetColor calls android.content.res.TypedArray.getColor.

func (*TypedArray) GetColorStateList

func (m *TypedArray) GetColorStateList(arg0 int32) (*jni.Object, error)

GetColorStateList calls android.content.res.TypedArray.getColorStateList.

func (*TypedArray) GetDimension

func (m *TypedArray) GetDimension(arg0 int32, arg1 float32) (float32, error)

GetDimension calls android.content.res.TypedArray.getDimension.

func (*TypedArray) GetDimensionPixelOffset

func (m *TypedArray) GetDimensionPixelOffset(arg0 int32, arg1 int32) (int32, error)

GetDimensionPixelOffset calls android.content.res.TypedArray.getDimensionPixelOffset.

func (*TypedArray) GetDimensionPixelSize

func (m *TypedArray) GetDimensionPixelSize(arg0 int32, arg1 int32) (int32, error)

GetDimensionPixelSize calls android.content.res.TypedArray.getDimensionPixelSize.

func (*TypedArray) GetDrawable

func (m *TypedArray) GetDrawable(arg0 int32) (*jni.Object, error)

GetDrawable calls android.content.res.TypedArray.getDrawable.

func (*TypedArray) GetFloat

func (m *TypedArray) GetFloat(arg0 int32, arg1 float32) (float32, error)

GetFloat calls android.content.res.TypedArray.getFloat.

func (*TypedArray) GetFont

func (m *TypedArray) GetFont(arg0 int32) (*jni.Object, error)

GetFont calls android.content.res.TypedArray.getFont.

func (*TypedArray) GetFraction

func (m *TypedArray) GetFraction(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 float32,
) (float32, error)

GetFraction calls android.content.res.TypedArray.getFraction.

func (*TypedArray) GetIndex

func (m *TypedArray) GetIndex(arg0 int32) (int32, error)

GetIndex calls android.content.res.TypedArray.getIndex.

func (*TypedArray) GetIndexCount

func (m *TypedArray) GetIndexCount() (int32, error)

GetIndexCount calls android.content.res.TypedArray.getIndexCount.

func (*TypedArray) GetInt

func (m *TypedArray) GetInt(arg0 int32, arg1 int32) (int32, error)

GetInt calls android.content.res.TypedArray.getInt.

func (*TypedArray) GetInteger

func (m *TypedArray) GetInteger(arg0 int32, arg1 int32) (int32, error)

GetInteger calls android.content.res.TypedArray.getInteger.

func (*TypedArray) GetLayoutDimension2

func (m *TypedArray) GetLayoutDimension2(arg0 int32, arg1 int32) (int32, error)

GetLayoutDimension2 calls android.content.res.TypedArray.getLayoutDimension.

func (*TypedArray) GetLayoutDimension2_1

func (m *TypedArray) GetLayoutDimension2_1(arg0 int32, arg1 string) (int32, error)

GetLayoutDimension2_1 calls android.content.res.TypedArray.getLayoutDimension.

func (*TypedArray) GetNonResourceString

func (m *TypedArray) GetNonResourceString(arg0 int32) (string, error)

GetNonResourceString calls android.content.res.TypedArray.getNonResourceString.

func (*TypedArray) GetPositionDescription

func (m *TypedArray) GetPositionDescription() (string, error)

GetPositionDescription calls android.content.res.TypedArray.getPositionDescription.

func (*TypedArray) GetResourceId

func (m *TypedArray) GetResourceId(arg0 int32, arg1 int32) (int32, error)

GetResourceId calls android.content.res.TypedArray.getResourceId.

func (*TypedArray) GetResources

func (m *TypedArray) GetResources() (*jni.Object, error)

GetResources calls android.content.res.TypedArray.getResources.

func (*TypedArray) GetSourceResourceId

func (m *TypedArray) GetSourceResourceId(arg0 int32, arg1 int32) (int32, error)

GetSourceResourceId calls android.content.res.TypedArray.getSourceResourceId.

func (*TypedArray) GetString

func (m *TypedArray) GetString(arg0 int32) (string, error)

GetString calls android.content.res.TypedArray.getString.

func (*TypedArray) GetText

func (m *TypedArray) GetText(arg0 int32) (*jni.Object, error)

GetText calls android.content.res.TypedArray.getText.

func (*TypedArray) GetTextArray

func (m *TypedArray) GetTextArray(arg0 int32) (*jni.Object, error)

GetTextArray calls android.content.res.TypedArray.getTextArray.

func (*TypedArray) GetType

func (m *TypedArray) GetType(arg0 int32) (int32, error)

GetType calls android.content.res.TypedArray.getType.

func (*TypedArray) GetValue

func (m *TypedArray) GetValue(arg0 int32, arg1 *jni.Object) (bool, error)

GetValue calls android.content.res.TypedArray.getValue.

func (*TypedArray) HasValue

func (m *TypedArray) HasValue(arg0 int32) (bool, error)

HasValue calls android.content.res.TypedArray.hasValue.

func (*TypedArray) HasValueOrEmpty

func (m *TypedArray) HasValueOrEmpty(arg0 int32) (bool, error)

HasValueOrEmpty calls android.content.res.TypedArray.hasValueOrEmpty.

func (*TypedArray) Length

func (m *TypedArray) Length() (int32, error)

Length calls android.content.res.TypedArray.length.

func (*TypedArray) PeekValue

func (m *TypedArray) PeekValue(arg0 int32) (*jni.Object, error)

PeekValue calls android.content.res.TypedArray.peekValue.

func (*TypedArray) Recycle

func (m *TypedArray) Recycle() error

Recycle calls android.content.res.TypedArray.recycle.

func (*TypedArray) ToString

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

ToString calls android.content.res.TypedArray.toString.

type XmlResourceParser

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

XmlResourceParser wraps android.content.res.XmlResourceParser.

func (*XmlResourceParser) Close

func (m *XmlResourceParser) Close() error

Close calls android.content.res.XmlResourceParser.close.

func (*XmlResourceParser) GetAttributeNamespace

func (m *XmlResourceParser) GetAttributeNamespace(arg0 int32) (string, error)

GetAttributeNamespace calls android.content.res.XmlResourceParser.getAttributeNamespace.

Directories

Path Synopsis
Package loader provides Go bindings for android.content.res.loader.
Package loader provides Go bindings for android.content.res.loader.

Jump to

Keyboard shortcuts

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