Documentation
¶
Overview ¶
Package res provides Go bindings for android.content.res.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type AssetFileDescriptor
- func (m *AssetFileDescriptor) Close() error
- func (m *AssetFileDescriptor) CreateInputStream() (*jni.Object, error)
- func (m *AssetFileDescriptor) CreateOutputStream() (*jni.Object, error)
- func (m *AssetFileDescriptor) DescribeContents() (int32, error)
- func (m *AssetFileDescriptor) GetDeclaredLength() (int64, error)
- func (m *AssetFileDescriptor) GetExtras() (*jni.Object, error)
- func (m *AssetFileDescriptor) GetFileDescriptor() (*jni.Object, error)
- func (m *AssetFileDescriptor) GetLength() (int64, error)
- func (m *AssetFileDescriptor) GetParcelFileDescriptor() (*jni.Object, error)
- func (m *AssetFileDescriptor) GetStartOffset() (int64, error)
- func (m *AssetFileDescriptor) ToString() (string, error)
- func (m *AssetFileDescriptor) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type AssetFileDescriptorAutoCloseInputStream
- func (m *AssetFileDescriptorAutoCloseInputStream) Available() (int32, error)
- func (m *AssetFileDescriptorAutoCloseInputStream) Close() error
- func (m *AssetFileDescriptorAutoCloseInputStream) GetChannel() (*jni.Object, error)
- func (m *AssetFileDescriptorAutoCloseInputStream) Mark(arg0 int32) error
- func (m *AssetFileDescriptorAutoCloseInputStream) MarkSupported() (bool, error)
- func (m *AssetFileDescriptorAutoCloseInputStream) Read0() (int32, error)
- func (m *AssetFileDescriptorAutoCloseInputStream) Read1_1(arg0 *jni.Object) (int32, error)
- func (m *AssetFileDescriptorAutoCloseInputStream) Read3_2(arg0 *jni.Object, arg1 int32, arg2 int32) (int32, error)
- func (m *AssetFileDescriptorAutoCloseInputStream) Skip(arg0 int64) (int64, error)
- type AssetFileDescriptorAutoCloseOutputStream
- type AssetManager
- func (m *AssetManager) Close() error
- func (m *AssetManager) GetLocales() (*jni.Object, error)
- func (m *AssetManager) List(arg0 string) (*jni.Object, error)
- func (m *AssetManager) Open1(arg0 string) (*jni.Object, error)
- func (m *AssetManager) Open2_1(arg0 string, arg1 int32) (*jni.Object, error)
- func (m *AssetManager) OpenFd(arg0 string) (*jni.Object, error)
- func (m *AssetManager) OpenNonAssetFd1_1(arg0 string) (*jni.Object, error)
- func (m *AssetManager) OpenNonAssetFd2(arg0 int32, arg1 string) (*jni.Object, error)
- func (m *AssetManager) OpenXmlResourceParser1_1(arg0 string) (*jni.Object, error)
- func (m *AssetManager) OpenXmlResourceParser2(arg0 int32, arg1 string) (*jni.Object, error)
- type AssetManagerAssetInputStream
- func (m *AssetManagerAssetInputStream) Available() (int32, error)
- func (m *AssetManagerAssetInputStream) Close() error
- func (m *AssetManagerAssetInputStream) Mark(arg0 int32) error
- func (m *AssetManagerAssetInputStream) MarkSupported() (bool, error)
- func (m *AssetManagerAssetInputStream) Read0() (int32, error)
- func (m *AssetManagerAssetInputStream) Read1_1(arg0 *jni.Object) (int32, error)
- func (m *AssetManagerAssetInputStream) Read3_2(arg0 *jni.Object, arg1 int32, arg2 int32) (int32, error)
- func (m *AssetManagerAssetInputStream) Reset() error
- func (m *AssetManagerAssetInputStream) Skip(arg0 int64) (int64, error)
- type ColorStateList
- func (m *ColorStateList) CreateFromXml2(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)
- func (m *ColorStateList) CreateFromXml3_1(arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) (*jni.Object, error)
- func (m *ColorStateList) DescribeContents() (int32, error)
- func (m *ColorStateList) GetChangingConfigurations() (int32, error)
- func (m *ColorStateList) GetColorForState(arg0 *jni.Object, arg1 int32) (int32, error)
- func (m *ColorStateList) GetDefaultColor() (int32, error)
- func (m *ColorStateList) IsOpaque() (bool, error)
- func (m *ColorStateList) IsStateful() (bool, error)
- func (m *ColorStateList) ToString() (string, error)
- func (m *ColorStateList) ValueOf(arg0 int32) (*jni.Object, error)
- func (m *ColorStateList) WithAlpha(arg0 int32) (*jni.Object, error)
- func (m *ColorStateList) WithLStar(arg0 float32) (*jni.Object, error)
- func (m *ColorStateList) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type Configuration
- func (m *Configuration) CompareTo1(arg0 *jni.Object) (int32, error)
- func (m *Configuration) CompareTo1_1(arg0 *jni.Object) (int32, error)
- func (m *Configuration) DescribeContents() (int32, error)
- func (m *Configuration) Diff(arg0 *jni.Object) (int32, error)
- func (m *Configuration) Equals1(arg0 *jni.Object) (bool, error)
- func (m *Configuration) Equals1_1(arg0 *jni.Object) (bool, error)
- func (m *Configuration) GenerateDelta(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)
- func (m *Configuration) GetGrammaticalGender() (int32, error)
- func (m *Configuration) GetLayoutDirection() (int32, error)
- func (m *Configuration) GetLocales() (*jni.Object, error)
- func (m *Configuration) HashCode() (int32, error)
- func (m *Configuration) IsLayoutSizeAtLeast(arg0 int32) (bool, error)
- func (m *Configuration) IsNightModeActive() (bool, error)
- func (m *Configuration) IsScreenHdr() (bool, error)
- func (m *Configuration) IsScreenRound() (bool, error)
- func (m *Configuration) IsScreenWideColorGamut() (bool, error)
- func (m *Configuration) NeedNewResources(arg0 int32, arg1 int32) (bool, error)
- func (m *Configuration) ReadFromParcel(arg0 *jni.Object) error
- func (m *Configuration) SetLayoutDirection(arg0 *jni.Object) error
- func (m *Configuration) SetLocale(arg0 *jni.Object) error
- func (m *Configuration) SetLocales(arg0 *jni.Object) error
- func (m *Configuration) SetTo(arg0 *jni.Object) error
- func (m *Configuration) SetToDefaults() error
- func (m *Configuration) ToString() (string, error)
- func (m *Configuration) UpdateFrom(arg0 *jni.Object) (int32, error)
- func (m *Configuration) WriteToParcel(arg0 *jni.Object, arg1 int32) error
- type FontScaleConverter
- func (m *FontScaleConverter) ConvertDpToSp(arg0 float32) (float32, error)
- func (m *FontScaleConverter) ConvertSpToDp(arg0 float32) (float32, error)
- func (m *FontScaleConverter) ForScale(arg0 float32) (*jni.Object, error)
- func (m *FontScaleConverter) IsNonLinearFontScalingActive(arg0 float32) (bool, error)
- type ObbInfo
- type ObbScanner
- type TypedArray
- func (m *TypedArray) Close() error
- func (m *TypedArray) GetBoolean(arg0 int32, arg1 bool) (bool, error)
- func (m *TypedArray) GetChangingConfigurations() (int32, error)
- func (m *TypedArray) GetColor(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetColorStateList(arg0 int32) (*jni.Object, error)
- func (m *TypedArray) GetDimension(arg0 int32, arg1 float32) (float32, error)
- func (m *TypedArray) GetDimensionPixelOffset(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetDimensionPixelSize(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetDrawable(arg0 int32) (*jni.Object, error)
- func (m *TypedArray) GetFloat(arg0 int32, arg1 float32) (float32, error)
- func (m *TypedArray) GetFont(arg0 int32) (*jni.Object, error)
- func (m *TypedArray) GetFraction(arg0 int32, arg1 int32, arg2 int32, arg3 float32) (float32, error)
- func (m *TypedArray) GetIndex(arg0 int32) (int32, error)
- func (m *TypedArray) GetIndexCount() (int32, error)
- func (m *TypedArray) GetInt(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetInteger(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetLayoutDimension2(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetLayoutDimension2_1(arg0 int32, arg1 string) (int32, error)
- func (m *TypedArray) GetNonResourceString(arg0 int32) (string, error)
- func (m *TypedArray) GetPositionDescription() (string, error)
- func (m *TypedArray) GetResourceId(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetResources() (*jni.Object, error)
- func (m *TypedArray) GetSourceResourceId(arg0 int32, arg1 int32) (int32, error)
- func (m *TypedArray) GetString(arg0 int32) (string, error)
- func (m *TypedArray) GetText(arg0 int32) (*jni.Object, error)
- func (m *TypedArray) GetTextArray(arg0 int32) (*jni.Object, error)
- func (m *TypedArray) GetType(arg0 int32) (int32, error)
- func (m *TypedArray) GetValue(arg0 int32, arg1 *jni.Object) (bool, error)
- func (m *TypedArray) HasValue(arg0 int32) (bool, error)
- func (m *TypedArray) HasValueOrEmpty(arg0 int32) (bool, error)
- func (m *TypedArray) Length() (int32, error)
- func (m *TypedArray) PeekValue(arg0 int32) (*jni.Object, error)
- func (m *TypedArray) Recycle() error
- func (m *TypedArray) ToString() (string, error)
- type XmlResourceParser
Constants ¶
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 Keyboard12key = consts.Keyboard12key KeyboardNokeys = consts.KeyboardNokeys KeyboardQwerty = consts.KeyboardQwerty KeyboardUndefined = consts.KeyboardUndefined MncZero = consts.MncZero 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 )
const (
UnknownLength = consts.UnknownLength
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetFileDescriptor ¶
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 ¶
AssetFileDescriptorAutoCloseInputStream wraps android.content.res.AssetFileDescriptor$AutoCloseInputStream.
func (*AssetFileDescriptorAutoCloseInputStream) Available ¶
func (m *AssetFileDescriptorAutoCloseInputStream) Available() (int32, error)
Available calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.available.
func (*AssetFileDescriptorAutoCloseInputStream) Close ¶
func (m *AssetFileDescriptorAutoCloseInputStream) Close() error
Close calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.close.
func (*AssetFileDescriptorAutoCloseInputStream) GetChannel ¶
func (m *AssetFileDescriptorAutoCloseInputStream) GetChannel() (*jni.Object, error)
GetChannel calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.getChannel.
func (*AssetFileDescriptorAutoCloseInputStream) Mark ¶
func (m *AssetFileDescriptorAutoCloseInputStream) Mark(arg0 int32) error
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 ¶
func (m *AssetFileDescriptorAutoCloseInputStream) Read0() (int32, error)
Read0 calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.read.
func (*AssetFileDescriptorAutoCloseInputStream) Read1_1 ¶
func (m *AssetFileDescriptorAutoCloseInputStream) Read1_1(arg0 *jni.Object) (int32, error)
Read1_1 calls android.content.res.AssetFileDescriptor$AutoCloseInputStream.read.
type AssetFileDescriptorAutoCloseOutputStream ¶
AssetFileDescriptorAutoCloseOutputStream wraps android.content.res.AssetFileDescriptor$AutoCloseOutputStream.
func (*AssetFileDescriptorAutoCloseOutputStream) Write1 ¶
func (m *AssetFileDescriptorAutoCloseOutputStream) Write1(arg0 *jni.Object) error
Write1 calls android.content.res.AssetFileDescriptor$AutoCloseOutputStream.write.
func (*AssetFileDescriptorAutoCloseOutputStream) Write1_2 ¶
func (m *AssetFileDescriptorAutoCloseOutputStream) Write1_2(arg0 int32) error
Write1_2 calls android.content.res.AssetFileDescriptor$AutoCloseOutputStream.write.
type AssetManager ¶
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) 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 ¶
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 ¶
OpenXmlResourceParser2 calls android.content.res.AssetManager.openXmlResourceParser.
type AssetManagerAssetInputStream ¶
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 ¶
func (m *AssetManagerAssetInputStream) Close() error
Close calls android.content.res.AssetManager$AssetInputStream.close.
func (*AssetManagerAssetInputStream) Mark ¶
func (m *AssetManagerAssetInputStream) Mark(arg0 int32) error
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 ¶
func (m *AssetManagerAssetInputStream) Read0() (int32, error)
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 ¶
func (m *AssetManagerAssetInputStream) Reset() error
Reset calls android.content.res.AssetManager$AssetInputStream.reset.
type ColorStateList ¶
ColorStateList wraps android.content.res.ColorStateList.
func NewColorStateList ¶
NewColorStateList creates a new android.content.res.ColorStateList instance.
func (*ColorStateList) CreateFromXml2 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
ObbInfo wraps android.content.res.ObbInfo.
func (*ObbInfo) DescribeContents ¶
DescribeContents calls android.content.res.ObbInfo.describeContents.
type ObbScanner ¶
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 ¶
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) 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 ¶
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.
Source Files
¶
- asset_file_descriptor.go
- asset_file_descriptor_auto_close_input_stream.go
- asset_file_descriptor_auto_close_output_stream.go
- asset_manager.go
- asset_manager_asset_input_stream.go
- color_state_list.go
- configuration.go
- constants.go
- doc.go
- font_scale_converter.go
- init.go
- obb_info.go
- obb_scanner.go
- typed_array.go
- xml_resource_parser.go