animation

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 animation provides Go bindings for android.view.animation.

Index

Constants

View Source
const (
	DirectionBottomToTop    = consts.DirectionBottomToTop
	DirectionHorizontalMask = consts.DirectionHorizontalMask
	DirectionLeftToRight    = consts.DirectionLeftToRight
	DirectionRightToLeft    = consts.DirectionRightToLeft
	DirectionTopToBottom    = consts.DirectionTopToBottom
	DirectionVerticalMask   = consts.DirectionVerticalMask
	PriorityColumn          = consts.PriorityColumn
	PriorityNone            = consts.PriorityNone
	PriorityRow             = consts.PriorityRow
	Absolute                = consts.Absolute
	Infinite                = consts.Infinite
	RelativeToParent        = consts.RelativeToParent
	RelativeToSelf          = consts.RelativeToSelf
	Restart                 = consts.Restart
	Reverse                 = consts.Reverse
	StartOnFirstFrame       = consts.StartOnFirstFrame
	ZorderBottom            = consts.ZorderBottom
	ZorderNormal            = consts.ZorderNormal
	ZorderTop               = consts.ZorderTop
	OrderNormal             = consts.OrderNormal
	OrderRandom             = consts.OrderRandom
	OrderReverse            = consts.OrderReverse
	TypeAlpha               = consts.TypeAlpha
	TypeBoth                = consts.TypeBoth
	TypeIdentity            = consts.TypeIdentity
	TypeMatrix              = consts.TypeMatrix
)

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 AccelerateDecelerateInterpolator

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

AccelerateDecelerateInterpolator wraps android.view.animation.AccelerateDecelerateInterpolator.

func NewAccelerateDecelerateInterpolator

func NewAccelerateDecelerateInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*AccelerateDecelerateInterpolator, error)

NewAccelerateDecelerateInterpolator creates a new android.view.animation.AccelerateDecelerateInterpolator instance.

func (*AccelerateDecelerateInterpolator) GetInterpolation

func (m *AccelerateDecelerateInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.AccelerateDecelerateInterpolator.getInterpolation.

type AccelerateInterpolator

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

AccelerateInterpolator wraps android.view.animation.AccelerateInterpolator.

func NewAccelerateInterpolator

func NewAccelerateInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*AccelerateInterpolator, error)

NewAccelerateInterpolator creates a new android.view.animation.AccelerateInterpolator instance.

func (*AccelerateInterpolator) GetInterpolation

func (m *AccelerateInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.AccelerateInterpolator.getInterpolation.

type AlphaAnimation

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

AlphaAnimation wraps android.view.animation.AlphaAnimation.

func NewAlphaAnimation

func NewAlphaAnimation(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*AlphaAnimation, error)

NewAlphaAnimation creates a new android.view.animation.AlphaAnimation instance.

func (*AlphaAnimation) WillChangeBounds

func (m *AlphaAnimation) WillChangeBounds() (bool, error)

WillChangeBounds calls android.view.animation.AlphaAnimation.willChangeBounds.

func (*AlphaAnimation) WillChangeTransformationMatrix

func (m *AlphaAnimation) WillChangeTransformationMatrix() (bool, error)

WillChangeTransformationMatrix calls android.view.animation.AlphaAnimation.willChangeTransformationMatrix.

type Animation

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

Animation wraps android.view.animation.Animation.

func (*Animation) Cancel

func (m *Animation) Cancel() error

Cancel calls android.view.animation.Animation.cancel.

func (*Animation) ComputeDurationHint

func (m *Animation) ComputeDurationHint() (int64, error)

ComputeDurationHint calls android.view.animation.Animation.computeDurationHint.

func (*Animation) GetBackdropColor

func (m *Animation) GetBackdropColor() (int32, error)

GetBackdropColor calls android.view.animation.Animation.getBackdropColor.

func (*Animation) GetBackgroundColor

func (m *Animation) GetBackgroundColor() (int32, error)

GetBackgroundColor calls android.view.animation.Animation.getBackgroundColor.

func (*Animation) GetDetachWallpaper

func (m *Animation) GetDetachWallpaper() (bool, error)

GetDetachWallpaper calls android.view.animation.Animation.getDetachWallpaper.

func (*Animation) GetDuration

func (m *Animation) GetDuration() (int64, error)

GetDuration calls android.view.animation.Animation.getDuration.

func (*Animation) GetFillAfter

func (m *Animation) GetFillAfter() (bool, error)

GetFillAfter calls android.view.animation.Animation.getFillAfter.

func (*Animation) GetFillBefore

func (m *Animation) GetFillBefore() (bool, error)

GetFillBefore calls android.view.animation.Animation.getFillBefore.

func (*Animation) GetInterpolator

func (m *Animation) GetInterpolator() (*jni.Object, error)

GetInterpolator calls android.view.animation.Animation.getInterpolator.

func (*Animation) GetRepeatCount

func (m *Animation) GetRepeatCount() (int32, error)

GetRepeatCount calls android.view.animation.Animation.getRepeatCount.

func (*Animation) GetRepeatMode

func (m *Animation) GetRepeatMode() (int32, error)

GetRepeatMode calls android.view.animation.Animation.getRepeatMode.

func (*Animation) GetShowBackdrop

func (m *Animation) GetShowBackdrop() (bool, error)

GetShowBackdrop calls android.view.animation.Animation.getShowBackdrop.

func (*Animation) GetStartOffset

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

GetStartOffset calls android.view.animation.Animation.getStartOffset.

func (*Animation) GetStartTime

func (m *Animation) GetStartTime() (int64, error)

GetStartTime calls android.view.animation.Animation.getStartTime.

func (*Animation) GetTransformation2

func (m *Animation) GetTransformation2(arg0 int64, arg1 *jni.Object) (bool, error)

GetTransformation2 calls android.view.animation.Animation.getTransformation.

func (*Animation) GetTransformation3_1

func (m *Animation) GetTransformation3_1(
	arg0 int64,
	arg1 *jni.Object,
	arg2 float32,
) (bool, error)

GetTransformation3_1 calls android.view.animation.Animation.getTransformation.

func (*Animation) GetZAdjustment

func (m *Animation) GetZAdjustment() (int32, error)

GetZAdjustment calls android.view.animation.Animation.getZAdjustment.

func (*Animation) HasEnded

func (m *Animation) HasEnded() (bool, error)

HasEnded calls android.view.animation.Animation.hasEnded.

func (*Animation) HasStarted

func (m *Animation) HasStarted() (bool, error)

HasStarted calls android.view.animation.Animation.hasStarted.

func (*Animation) Initialize

func (m *Animation) Initialize(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

Initialize calls android.view.animation.Animation.initialize.

func (*Animation) IsFillEnabled

func (m *Animation) IsFillEnabled() (bool, error)

IsFillEnabled calls android.view.animation.Animation.isFillEnabled.

func (*Animation) IsInitialized

func (m *Animation) IsInitialized() (bool, error)

IsInitialized calls android.view.animation.Animation.isInitialized.

func (*Animation) Reset

func (m *Animation) Reset() error

Reset calls android.view.animation.Animation.reset.

func (*Animation) RestrictDuration

func (m *Animation) RestrictDuration(arg0 int64) error

RestrictDuration calls android.view.animation.Animation.restrictDuration.

func (*Animation) ScaleCurrentDuration

func (m *Animation) ScaleCurrentDuration(arg0 float32) error

ScaleCurrentDuration calls android.view.animation.Animation.scaleCurrentDuration.

func (*Animation) SetAnimationListener

func (m *Animation) SetAnimationListener(arg0 *jni.Object) error

SetAnimationListener calls android.view.animation.Animation.setAnimationListener.

func (*Animation) SetBackdropColor

func (m *Animation) SetBackdropColor(arg0 int32) error

SetBackdropColor calls android.view.animation.Animation.setBackdropColor.

func (*Animation) SetBackgroundColor

func (m *Animation) SetBackgroundColor(arg0 int32) error

SetBackgroundColor calls android.view.animation.Animation.setBackgroundColor.

func (*Animation) SetDetachWallpaper

func (m *Animation) SetDetachWallpaper(arg0 bool) error

SetDetachWallpaper calls android.view.animation.Animation.setDetachWallpaper.

func (*Animation) SetDuration

func (m *Animation) SetDuration(arg0 int64) error

SetDuration calls android.view.animation.Animation.setDuration.

func (*Animation) SetFillAfter

func (m *Animation) SetFillAfter(arg0 bool) error

SetFillAfter calls android.view.animation.Animation.setFillAfter.

func (*Animation) SetFillBefore

func (m *Animation) SetFillBefore(arg0 bool) error

SetFillBefore calls android.view.animation.Animation.setFillBefore.

func (*Animation) SetFillEnabled

func (m *Animation) SetFillEnabled(arg0 bool) error

SetFillEnabled calls android.view.animation.Animation.setFillEnabled.

func (*Animation) SetInterpolator1_1

func (m *Animation) SetInterpolator1_1(arg0 *jni.Object) error

SetInterpolator1_1 calls android.view.animation.Animation.setInterpolator.

func (*Animation) SetInterpolator2

func (m *Animation) SetInterpolator2(arg0 *jni.Object, arg1 int32) error

SetInterpolator2 calls android.view.animation.Animation.setInterpolator.

func (*Animation) SetRepeatCount

func (m *Animation) SetRepeatCount(arg0 int32) error

SetRepeatCount calls android.view.animation.Animation.setRepeatCount.

func (*Animation) SetRepeatMode

func (m *Animation) SetRepeatMode(arg0 int32) error

SetRepeatMode calls android.view.animation.Animation.setRepeatMode.

func (*Animation) SetShowBackdrop

func (m *Animation) SetShowBackdrop(arg0 bool) error

SetShowBackdrop calls android.view.animation.Animation.setShowBackdrop.

func (*Animation) SetStartOffset

func (m *Animation) SetStartOffset(arg0 int64) error

SetStartOffset calls android.view.animation.Animation.setStartOffset.

func (*Animation) SetStartTime

func (m *Animation) SetStartTime(arg0 int64) error

SetStartTime calls android.view.animation.Animation.setStartTime.

func (*Animation) SetZAdjustment

func (m *Animation) SetZAdjustment(arg0 int32) error

SetZAdjustment calls android.view.animation.Animation.setZAdjustment.

func (*Animation) Start

func (m *Animation) Start() error

Start calls android.view.animation.Animation.start.

func (*Animation) StartNow

func (m *Animation) StartNow() error

StartNow calls android.view.animation.Animation.startNow.

func (*Animation) WillChangeBounds

func (m *Animation) WillChangeBounds() (bool, error)

WillChangeBounds calls android.view.animation.Animation.willChangeBounds.

func (*Animation) WillChangeTransformationMatrix

func (m *Animation) WillChangeTransformationMatrix() (bool, error)

WillChangeTransformationMatrix calls android.view.animation.Animation.willChangeTransformationMatrix.

type AnimationListener

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

AnimationListener wraps android.view.animation.Animation$AnimationListener.

func (*AnimationListener) OnAnimationEnd

func (m *AnimationListener) OnAnimationEnd(arg0 *jni.Object) error

OnAnimationEnd calls android.view.animation.Animation$AnimationListener.onAnimationEnd.

func (*AnimationListener) OnAnimationRepeat

func (m *AnimationListener) OnAnimationRepeat(arg0 *jni.Object) error

OnAnimationRepeat calls android.view.animation.Animation$AnimationListener.onAnimationRepeat.

func (*AnimationListener) OnAnimationStart

func (m *AnimationListener) OnAnimationStart(arg0 *jni.Object) error

OnAnimationStart calls android.view.animation.Animation$AnimationListener.onAnimationStart.

type AnticipateInterpolator

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

AnticipateInterpolator wraps android.view.animation.AnticipateInterpolator.

func NewAnticipateInterpolator

func NewAnticipateInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*AnticipateInterpolator, error)

NewAnticipateInterpolator creates a new android.view.animation.AnticipateInterpolator instance.

func (*AnticipateInterpolator) GetInterpolation

func (m *AnticipateInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.AnticipateInterpolator.getInterpolation.

type AnticipateOvershootInterpolator

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

AnticipateOvershootInterpolator wraps android.view.animation.AnticipateOvershootInterpolator.

func NewAnticipateOvershootInterpolator

func NewAnticipateOvershootInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*AnticipateOvershootInterpolator, error)

NewAnticipateOvershootInterpolator creates a new android.view.animation.AnticipateOvershootInterpolator instance.

func (*AnticipateOvershootInterpolator) GetInterpolation

func (m *AnticipateOvershootInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.AnticipateOvershootInterpolator.getInterpolation.

type BounceInterpolator

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

BounceInterpolator wraps android.view.animation.BounceInterpolator.

func NewBounceInterpolator

func NewBounceInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*BounceInterpolator, error)

NewBounceInterpolator creates a new android.view.animation.BounceInterpolator instance.

func (*BounceInterpolator) GetInterpolation

func (m *BounceInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.BounceInterpolator.getInterpolation.

type CycleInterpolator

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

CycleInterpolator wraps android.view.animation.CycleInterpolator.

func NewCycleInterpolator

func NewCycleInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*CycleInterpolator, error)

NewCycleInterpolator creates a new android.view.animation.CycleInterpolator instance.

func (*CycleInterpolator) GetInterpolation

func (m *CycleInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.CycleInterpolator.getInterpolation.

type DecelerateInterpolator

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

DecelerateInterpolator wraps android.view.animation.DecelerateInterpolator.

func NewDecelerateInterpolator

func NewDecelerateInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*DecelerateInterpolator, error)

NewDecelerateInterpolator creates a new android.view.animation.DecelerateInterpolator instance.

func (*DecelerateInterpolator) GetInterpolation

func (m *DecelerateInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.DecelerateInterpolator.getInterpolation.

type GridLayoutAnimationController

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

GridLayoutAnimationController wraps android.view.animation.GridLayoutAnimationController.

func NewGridLayoutAnimationController

func NewGridLayoutAnimationController(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*GridLayoutAnimationController, error)

NewGridLayoutAnimationController creates a new android.view.animation.GridLayoutAnimationController instance.

func (*GridLayoutAnimationController) GetColumnDelay

func (m *GridLayoutAnimationController) GetColumnDelay() (float32, error)

GetColumnDelay calls android.view.animation.GridLayoutAnimationController.getColumnDelay.

func (*GridLayoutAnimationController) GetDirection

func (m *GridLayoutAnimationController) GetDirection() (int32, error)

GetDirection calls android.view.animation.GridLayoutAnimationController.getDirection.

func (*GridLayoutAnimationController) GetDirectionPriority

func (m *GridLayoutAnimationController) GetDirectionPriority() (int32, error)

GetDirectionPriority calls android.view.animation.GridLayoutAnimationController.getDirectionPriority.

func (*GridLayoutAnimationController) GetRowDelay

func (m *GridLayoutAnimationController) GetRowDelay() (float32, error)

GetRowDelay calls android.view.animation.GridLayoutAnimationController.getRowDelay.

func (*GridLayoutAnimationController) SetColumnDelay

func (m *GridLayoutAnimationController) SetColumnDelay(arg0 float32) error

SetColumnDelay calls android.view.animation.GridLayoutAnimationController.setColumnDelay.

func (*GridLayoutAnimationController) SetDirection

func (m *GridLayoutAnimationController) SetDirection(arg0 int32) error

SetDirection calls android.view.animation.GridLayoutAnimationController.setDirection.

func (*GridLayoutAnimationController) SetDirectionPriority

func (m *GridLayoutAnimationController) SetDirectionPriority(arg0 int32) error

SetDirectionPriority calls android.view.animation.GridLayoutAnimationController.setDirectionPriority.

func (*GridLayoutAnimationController) SetRowDelay

func (m *GridLayoutAnimationController) SetRowDelay(arg0 float32) error

SetRowDelay calls android.view.animation.GridLayoutAnimationController.setRowDelay.

func (*GridLayoutAnimationController) WillOverlap

func (m *GridLayoutAnimationController) WillOverlap() (bool, error)

WillOverlap calls android.view.animation.GridLayoutAnimationController.willOverlap.

type LayoutAnimationController

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

LayoutAnimationController wraps android.view.animation.LayoutAnimationController.

func NewLayoutAnimationController

func NewLayoutAnimationController(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*LayoutAnimationController, error)

NewLayoutAnimationController creates a new android.view.animation.LayoutAnimationController instance.

func (*LayoutAnimationController) GetAnimation

func (m *LayoutAnimationController) GetAnimation() (*jni.Object, error)

GetAnimation calls android.view.animation.LayoutAnimationController.getAnimation.

func (*LayoutAnimationController) GetAnimationForView

func (m *LayoutAnimationController) GetAnimationForView(arg0 *jni.Object) (*jni.Object, error)

GetAnimationForView calls android.view.animation.LayoutAnimationController.getAnimationForView.

func (*LayoutAnimationController) GetDelay

func (m *LayoutAnimationController) GetDelay() (float32, error)

GetDelay calls android.view.animation.LayoutAnimationController.getDelay.

func (*LayoutAnimationController) GetInterpolator

func (m *LayoutAnimationController) GetInterpolator() (*jni.Object, error)

GetInterpolator calls android.view.animation.LayoutAnimationController.getInterpolator.

func (*LayoutAnimationController) GetOrder

func (m *LayoutAnimationController) GetOrder() (int32, error)

GetOrder calls android.view.animation.LayoutAnimationController.getOrder.

func (*LayoutAnimationController) IsDone

func (m *LayoutAnimationController) IsDone() (bool, error)

IsDone calls android.view.animation.LayoutAnimationController.isDone.

func (*LayoutAnimationController) SetAnimation1_1

func (m *LayoutAnimationController) SetAnimation1_1(arg0 *jni.Object) error

SetAnimation1_1 calls android.view.animation.LayoutAnimationController.setAnimation.

func (*LayoutAnimationController) SetAnimation2

func (m *LayoutAnimationController) SetAnimation2(arg0 *jni.Object, arg1 int32) error

SetAnimation2 calls android.view.animation.LayoutAnimationController.setAnimation.

func (*LayoutAnimationController) SetDelay

func (m *LayoutAnimationController) SetDelay(arg0 float32) error

SetDelay calls android.view.animation.LayoutAnimationController.setDelay.

func (*LayoutAnimationController) SetInterpolator1_1

func (m *LayoutAnimationController) SetInterpolator1_1(arg0 *jni.Object) error

SetInterpolator1_1 calls android.view.animation.LayoutAnimationController.setInterpolator.

func (*LayoutAnimationController) SetInterpolator2

func (m *LayoutAnimationController) SetInterpolator2(arg0 *jni.Object, arg1 int32) error

SetInterpolator2 calls android.view.animation.LayoutAnimationController.setInterpolator.

func (*LayoutAnimationController) SetOrder

func (m *LayoutAnimationController) SetOrder(arg0 int32) error

SetOrder calls android.view.animation.LayoutAnimationController.setOrder.

func (*LayoutAnimationController) Start

func (m *LayoutAnimationController) Start() error

Start calls android.view.animation.LayoutAnimationController.start.

func (*LayoutAnimationController) WillOverlap

func (m *LayoutAnimationController) WillOverlap() (bool, error)

WillOverlap calls android.view.animation.LayoutAnimationController.willOverlap.

type LinearInterpolator

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

LinearInterpolator wraps android.view.animation.LinearInterpolator.

func NewLinearInterpolator

func NewLinearInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*LinearInterpolator, error)

NewLinearInterpolator creates a new android.view.animation.LinearInterpolator instance.

func (*LinearInterpolator) GetInterpolation

func (m *LinearInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.LinearInterpolator.getInterpolation.

type OvershootInterpolator

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

OvershootInterpolator wraps android.view.animation.OvershootInterpolator.

func NewOvershootInterpolator

func NewOvershootInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*OvershootInterpolator, error)

NewOvershootInterpolator creates a new android.view.animation.OvershootInterpolator instance.

func (*OvershootInterpolator) GetInterpolation

func (m *OvershootInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.OvershootInterpolator.getInterpolation.

type PathInterpolator

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

PathInterpolator wraps android.view.animation.PathInterpolator.

func NewPathInterpolator

func NewPathInterpolator(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*PathInterpolator, error)

NewPathInterpolator creates a new android.view.animation.PathInterpolator instance.

func (*PathInterpolator) GetInterpolation

func (m *PathInterpolator) GetInterpolation(arg0 float32) (float32, error)

GetInterpolation calls android.view.animation.PathInterpolator.getInterpolation.

type RotateAnimation

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

RotateAnimation wraps android.view.animation.RotateAnimation.

func NewRotateAnimation

func NewRotateAnimation(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*RotateAnimation, error)

NewRotateAnimation creates a new android.view.animation.RotateAnimation instance.

func (*RotateAnimation) Initialize

func (m *RotateAnimation) Initialize(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

Initialize calls android.view.animation.RotateAnimation.initialize.

type ScaleAnimation

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

ScaleAnimation wraps android.view.animation.ScaleAnimation.

func NewScaleAnimation

func NewScaleAnimation(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*ScaleAnimation, error)

NewScaleAnimation creates a new android.view.animation.ScaleAnimation instance.

func (*ScaleAnimation) Initialize

func (m *ScaleAnimation) Initialize(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

Initialize calls android.view.animation.ScaleAnimation.initialize.

type Set

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

Set wraps android.view.animation.AnimationSet.

func NewSet

func NewSet(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*Set, error)

NewSet creates a new android.view.animation.AnimationSet instance.

func (*Set) AddAnimation

func (m *Set) AddAnimation(arg0 *jni.Object) error

AddAnimation calls android.view.animation.AnimationSet.addAnimation.

func (*Set) ComputeDurationHint

func (m *Set) ComputeDurationHint() (int64, error)

ComputeDurationHint calls android.view.animation.AnimationSet.computeDurationHint.

func (*Set) GetDuration

func (m *Set) GetDuration() (int64, error)

GetDuration calls android.view.animation.AnimationSet.getDuration.

func (*Set) GetStartTime

func (m *Set) GetStartTime() (int64, error)

GetStartTime calls android.view.animation.AnimationSet.getStartTime.

func (*Set) GetTransformation

func (m *Set) GetTransformation(arg0 int64, arg1 *jni.Object) (bool, error)

GetTransformation calls android.view.animation.AnimationSet.getTransformation.

func (*Set) Initialize

func (m *Set) Initialize(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

Initialize calls android.view.animation.AnimationSet.initialize.

func (*Set) Reset

func (m *Set) Reset() error

Reset calls android.view.animation.AnimationSet.reset.

func (*Set) RestrictDuration

func (m *Set) RestrictDuration(arg0 int64) error

RestrictDuration calls android.view.animation.AnimationSet.restrictDuration.

func (*Set) ScaleCurrentDuration

func (m *Set) ScaleCurrentDuration(arg0 float32) error

ScaleCurrentDuration calls android.view.animation.AnimationSet.scaleCurrentDuration.

func (*Set) SetDuration

func (m *Set) SetDuration(arg0 int64) error

SetDuration calls android.view.animation.AnimationSet.setDuration.

func (*Set) SetFillAfter

func (m *Set) SetFillAfter(arg0 bool) error

SetFillAfter calls android.view.animation.AnimationSet.setFillAfter.

func (*Set) SetFillBefore

func (m *Set) SetFillBefore(arg0 bool) error

SetFillBefore calls android.view.animation.AnimationSet.setFillBefore.

func (*Set) SetRepeatMode

func (m *Set) SetRepeatMode(arg0 int32) error

SetRepeatMode calls android.view.animation.AnimationSet.setRepeatMode.

func (*Set) SetStartOffset

func (m *Set) SetStartOffset(arg0 int64) error

SetStartOffset calls android.view.animation.AnimationSet.setStartOffset.

func (*Set) SetStartTime

func (m *Set) SetStartTime(arg0 int64) error

SetStartTime calls android.view.animation.AnimationSet.setStartTime.

func (*Set) WillChangeBounds

func (m *Set) WillChangeBounds() (bool, error)

WillChangeBounds calls android.view.animation.AnimationSet.willChangeBounds.

func (*Set) WillChangeTransformationMatrix

func (m *Set) WillChangeTransformationMatrix() (bool, error)

WillChangeTransformationMatrix calls android.view.animation.AnimationSet.willChangeTransformationMatrix.

type Transformation

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

Transformation wraps android.view.animation.Transformation.

func NewTransformation

func NewTransformation(vm *jni.VM) (*Transformation, error)

NewTransformation creates a new android.view.animation.Transformation instance.

func (*Transformation) Clear

func (m *Transformation) Clear() error

Clear calls android.view.animation.Transformation.clear.

func (*Transformation) Compose

func (m *Transformation) Compose(arg0 *jni.Object) error

Compose calls android.view.animation.Transformation.compose.

func (*Transformation) GetAlpha

func (m *Transformation) GetAlpha() (float32, error)

GetAlpha calls android.view.animation.Transformation.getAlpha.

func (*Transformation) GetMatrix

func (m *Transformation) GetMatrix() (*jni.Object, error)

GetMatrix calls android.view.animation.Transformation.getMatrix.

func (*Transformation) GetTransformationType

func (m *Transformation) GetTransformationType() (int32, error)

GetTransformationType calls android.view.animation.Transformation.getTransformationType.

func (*Transformation) Set

func (m *Transformation) Set(arg0 *jni.Object) error

Set calls android.view.animation.Transformation.set.

func (*Transformation) SetAlpha

func (m *Transformation) SetAlpha(arg0 float32) error

SetAlpha calls android.view.animation.Transformation.setAlpha.

func (*Transformation) SetTransformationType

func (m *Transformation) SetTransformationType(arg0 int32) error

SetTransformationType calls android.view.animation.Transformation.setTransformationType.

func (*Transformation) ToShortString

func (m *Transformation) ToShortString() (string, error)

ToShortString calls android.view.animation.Transformation.toShortString.

func (*Transformation) ToString

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

ToString calls android.view.animation.Transformation.toString.

type TranslateAnimation

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

TranslateAnimation wraps android.view.animation.TranslateAnimation.

func NewTranslateAnimation

func NewTranslateAnimation(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*TranslateAnimation, error)

NewTranslateAnimation creates a new android.view.animation.TranslateAnimation instance.

func (*TranslateAnimation) Initialize

func (m *TranslateAnimation) Initialize(
	arg0 int32,
	arg1 int32,
	arg2 int32,
	arg3 int32,
) error

Initialize calls android.view.animation.TranslateAnimation.initialize.

type Utils

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

Utils wraps android.view.animation.AnimationUtils.

func NewUtils

func NewUtils(vm *jni.VM) (*Utils, error)

NewUtils creates a new android.view.animation.AnimationUtils instance.

func (*Utils) CurrentAnimationTimeMillis

func (m *Utils) CurrentAnimationTimeMillis() (int64, error)

CurrentAnimationTimeMillis calls android.view.animation.AnimationUtils.currentAnimationTimeMillis.

func (*Utils) LoadAnimation

func (m *Utils) LoadAnimation(arg0 *jni.Object, arg1 int32) (*jni.Object, error)

LoadAnimation calls android.view.animation.AnimationUtils.loadAnimation.

func (*Utils) LoadInterpolator

func (m *Utils) LoadInterpolator(arg0 *jni.Object, arg1 int32) (*jni.Object, error)

LoadInterpolator calls android.view.animation.AnimationUtils.loadInterpolator.

func (*Utils) LoadLayoutAnimation

func (m *Utils) LoadLayoutAnimation(arg0 *jni.Object, arg1 int32) (*jni.Object, error)

LoadLayoutAnimation calls android.view.animation.AnimationUtils.loadLayoutAnimation.

func (*Utils) MakeInAnimation

func (m *Utils) MakeInAnimation(arg0 *jni.Object, arg1 bool) (*jni.Object, error)

MakeInAnimation calls android.view.animation.AnimationUtils.makeInAnimation.

func (*Utils) MakeInChildBottomAnimation

func (m *Utils) MakeInChildBottomAnimation(arg0 *jni.Object) (*jni.Object, error)

MakeInChildBottomAnimation calls android.view.animation.AnimationUtils.makeInChildBottomAnimation.

func (*Utils) MakeOutAnimation

func (m *Utils) MakeOutAnimation(arg0 *jni.Object, arg1 bool) (*jni.Object, error)

MakeOutAnimation calls android.view.animation.AnimationUtils.makeOutAnimation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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